/**
 * L'Album du Club — Styles sélecteur vignettes & posters
 */

/* ── Cacher quantité EPO native ── */
.tm-quantity.tc-top { display: none !important; }

/* ── Wrapper général ── */
.ladc-ui {
    max-width: 100%;
    margin: 0 0 16px 0;
    font-family: inherit;
    font-size: 14px;
}

/* ── Barre du haut (vignettes) ── */
.ladc-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* ── Barre recherche ── */
.ladc-search-wrap {
    flex: 1;
    min-width: 180px;
    position: relative;
    display: flex;
    align-items: center;
}
.ladc-search-icon {
    position: absolute;
    left: 10px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0.45;
}
.ladc-search-input,
.ladc-poster-search {
    width: 100%;
    padding: 8px 30px 8px 30px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ladc-search-input:focus,
.ladc-poster-search:focus {
    border-color: #1a3c6b;
    box-shadow: 0 0 0 2px rgba(26,60,107,0.1);
}
.ladc-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 12px;
    padding: 0;
    line-height: 1;
}
.ladc-search-clear:hover { color: #333; }

/* ── Compteur ── */
.ladc-counter {
    white-space: nowrap;
    font-size: 12px;
    color: #555;
    background: #f0f4ff;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #d0daf0;
}
.ladc-counter-val,
.ladc-counter-prix { font-weight: 700; color: #1a3c6b; }

/* ── Grille scrollable ── */
.ladc-grid-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #e4e8f0;
    border-radius: 8px;
    padding: 10px 34px;
    margin-bottom: 12px;
}
.ladc-grid-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #c0c8d8 transparent;
}
.ladc-grid-viewport::-webkit-scrollbar { height: 4px; }
.ladc-grid-viewport::-webkit-scrollbar-thumb { background: #c0c8d8; border-radius: 2px; }
.ladc-grid {
    display: grid;
    grid-template-rows: repeat(5, 34px);
    grid-auto-flow: column;
    grid-auto-columns: 54px;
    gap: 5px;
    padding: 4px 2px;
}

/* ── Cellule vignette ── */
.ladc-cell {
    width: 54px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid #dde3ee;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: background 0.12s, border-color 0.12s, transform 0.1s, color 0.12s;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 3px;
    box-sizing: border-box;
}
.ladc-cell:hover {
    background: #e8f0fb;
    border-color: #1a3c6b;
    color: #1a3c6b;
    transform: scale(1.07);
    z-index: 2;
}
.ladc-cell.ladc-cell-selected {
    background: #1a3c6b;
    border-color: #1a3c6b;
    color: #fff;
}
.ladc-cell.ladc-cell-selected:hover {
    background: #2a5298;
    border-color: #2a5298;
    color: #fff;
    transform: scale(1.07);
}
.ladc-cell-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #f89903;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    z-index: 3;
    line-height: 1;
}
.ladc-cell.ladc-cell-hidden { display: none; }

/* ── Flèches ── */
.ladc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: #fff;
    border: 1px solid #dde3ee;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    z-index: 5;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: background 0.15s;
    line-height: 1;
}
.ladc-arrow:hover { background: #e8f0fb; }
.ladc-arrow-left  { left: 4px; }
.ladc-arrow-right { right: 4px;}
.ladc-arrow.ladc-arrow-hidden { opacity: 0.2; pointer-events: none; }

/* ── Dropdown posters ── */
.ladc-poster-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ladc-poster-option {
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}
.ladc-poster-option:hover { background: #f0f4ff; color: #1a3c6b; }
.ladc-poster-option:last-child { border-bottom: none; }

/* ── Récap commun ── */
.ladc-recap,
.ladc-poster-recap {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}
.ladc-recap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    background: #f0f4ff;
    border-bottom: 1px solid #e4e8f0;
}
.ladc-recap-title {
    font-weight: 700;
    color: #1a3c6b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ladc-recap-clear,
.ladc-poster-clear {
    background: none;
    color: #153e75;
	background-color: #f39718 !important;
	border: none !important;
	font-weight: 700;
    border-radius: 3px;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.ladc-recap-clear:hover,
.ladc-poster-clear:hover { background: #f39718; color: #153e75; }

.ladc-recap-list,
.ladc-poster-list {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 200px;
    overflow-y: auto;
}
.ladc-recap-line {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    background: #fafbff;
    border: 1px solid #edf0f8;
    border-radius: 4px;
    font-size: 13px;
}
.ladc-recap-label {
    flex: 1;
    font-weight: 600;
    color: #1a3c6b;
    min-width: 50px;
}
.ladc-recap-qty { display: flex; align-items: center; gap: 3px; }
.ladc-qty-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f0f4ff !important;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background 0.1s;
}
.ladc-qty-btn:hover { background: #e8f0fb; border-color: #1a3c6b; }
.ladc-qty-input {
    width: 36px;
    height: 22px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    padding: 0;
    -moz-appearance: textfield;
}
.ladc-qty-input::-webkit-outer-spin-button,
.ladc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ladc-recap-price {
    min-width: 52px;
    text-align: right;
    color: #555;
    font-size: 12px;
}
.ladc-recap-remove {
    background: #f39718 !important;
    border: none;
    color: #1a3c6b !important;
    cursor: pointer;
    font-size: 12px;
    padding: 1px 3px;
    border-radius: 2px;
    transition: color 0.1s;
    line-height: 1;
	font-weight: 800 !important;
}
.ladc-recap-remove:hover { color: #e00; }

.ladc-recap-total {
    padding: 8px 14px;
    text-align: right;
    font-size: 13px;
    color: #333;
    border-top: 1px solid #e4e8f0;
    background: #f7f9fc;
}
.ladc-recap-total-val,
.ladc-poster-total-val { color: #1a3c6b; font-weight: 700; font-size: 15px; }

/* ── Popup confirmation ── */
.ladc-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ladc-confirm-box {
    background: #fff;
    border-radius: 8px;
    padding: 26px 30px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    text-align: center;
}
.ladc-confirm-title { font-size: 16px; font-weight: 700; color: #c0392b; margin: 0 0 10px 0; }
.ladc-confirm-msg { font-size: 13px; color: #444; margin: 0 0 18px 0; line-height: 1.5; }
.ladc-confirm-btns { display: flex; gap: 10px; justify-content: center; }
.ladc-confirm-yes {
    background: #c0392b; color: #fff; border: none;
    border-radius: 4px; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ladc-confirm-yes:hover { background: #a93226; }
.ladc-confirm-no {
    background: #f5f5f5; color: #333; border: 1px solid #ccc;
    border-radius: 4px; padding: 8px 18px; font-size: 13px; cursor: pointer;
}
.ladc-confirm-no:hover { background: #e8e8e8; }

/* ── Poster UI ── */
.ladc-poster-ui .ladc-search-wrap { min-width: 100%; }
.ladc-poster-ui { margin-bottom: 12px; }

/* ── Responsive ── */
@media (max-width: 520px) {
    .ladc-grid { grid-template-rows: repeat(4, 34px); }
    .ladc-topbar { flex-direction: column; align-items: stretch; }
    .ladc-counter { text-align: center; }
    .ladc-recap-line { flex-wrap: wrap; }
    .ladc-recap-label { flex: 100%; }
}

/* ── Prix unitaire dans le titre ── */
.tm-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ladc-prix-titre {
    font-size: 13px;
    font-weight: 600;
    color: #1a3c6b;
    background: #e8f0fb;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto;
    white-space: nowrap;
}

/* ── Sélecteur quantité (collection + pochettes) ── */
.ladc-qty-selector {
    margin: 8px 0 4px 0;
    padding: 12px 14px;
    background: #f7f9fc;
    border: 1px solid #e4e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ladc-qty-selector-label {
    font-size: 13px;
    color: #444;
    flex: 1;
    min-width: 180px;
}
.ladc-qty-selector-control {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ladc-qs-select {
    height: 30px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1a3c6b;
    background: #fff;
    cursor: pointer;
    min-width: 60px;
    outline: none;
}
.ladc-qs-select:focus { border-color: #1a3c6b; }
.ladc-qty-selector-total {
    font-weight: 700;
    color: #1a3c6b;
    font-size: 15px;
    min-width: 70px;
    text-align: right;
}

/* ── Cacher quantité EPO native ── */
.tm-quantity.tc-top,
.tm-quantity.tc-right { display: none !important; }

/* ── Dropdown quantité collection + pochettes ── */
.ladc-qs-wrap {
    margin: 8px 0 4px 0;
    padding: 10px 14px;
    background: #f7f9fc;
    border: 1px solid #e4e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ladc-qs-label {
    font-size: 13px;
    color: #444;
    flex: 1;
    min-width: 180px;
}
.ladc-qs-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ladc-qs-select {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1a3c6b;
    background: #fff;
    cursor: pointer;
    min-width: 64px;
    outline: none;
}
.ladc-qs-select:focus { border-color: #1a3c6b; }
.ladc-qs-total {
    font-weight: 700;
    color: #1a3c6b;
    font-size: 15px;
    min-width: 70px;
    text-align: right;
}

/* ── Prix unitaire dans les titres h3 ── */
h3.tm-section-label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}



.ladc-prix-titre {
    font-size: 12px;
    font-weight: 600;
    color: #1a3c6b;
    background: #e8f0fb;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Cacher quantité EPO native (bottom aussi) ── */
.tm-quantity.tc-bottom { display: none !important; }

h3.tm-epo-element-label,
h3.tm-section-label {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 8px;
}
 
/* La pastille colle au texte, alignée à gauche */
.ladc-prix-titre {
    font-size: 12px !important;
    font-weight: 600;
    color: #1a3c6b;
    background: #e8f0fb;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0 !important;
	order : 999;
	margin-top : -3px;
}

#tc-epo-form-72510-2 {
	margin-top : 12px;
}

