/* ── Pack Configurateur — Styles front-office ── */

.cp-title {
    font-size: 16px;
    font-weight: 700;
    color: #00868d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px 0 8px;
    padding-left: 12px;
    border-left: 4px solid #00b0b9;
}

.custompack-configurator {
    margin: 24px 0;
    font-family: inherit;
}

/* Barre de progression */
.cp-progress-wrap {
    margin-bottom: 16px;
}
.cp-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
}
.cp-progress-label strong {
    color: #00868d;
}
.cp-progress-bar-bg {
    height: 8px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}
.cp-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b0b9, #00d4dd);
    border-radius: 10px;
    transition: width 0.35s ease;
}

/* Lignes produits */
.cp-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.cp-product-row.cp-active {
    border-color: #00b0b9;
    background: #f0fbfc;
}
.cp-product-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f5f5f5;
}
.cp-no-img {
    background: #e8f7f8;
}
.cp-product-info {
    flex: 1;
}
.cp-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}
.cp-product-attr {
    font-size: 12px;
    color: #00868d;
    margin-top: 2px;
}
.cp-product-ref {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}
.cp-product-price {
    font-size: 13px;
    font-weight: 700;
    color: #00868d;
    white-space: nowrap;
}

/* Contrôles quantité */
.cp-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.cp-qty-btn {
    width: 30px;
    height: 30px;
    border: 1.5px solid #00b0b9;
    background: #fff;
    color: #00b0b9;
    font-size: 18px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    line-height: 1;
    padding: 0;
}
.cp-qty-btn:hover {
    background: #00b0b9;
    color: #fff;
}
.cp-qty-val {
    width: 34px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

/* Alerte */
.cp-alert {
    background: #fff8e6;
    border: 1px solid #f5c842;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #9a6e00;
    margin-top: 12px;
}
.cp-alert::before {
    content: '⚠️ ';
}

/* Bloc total */
.cp-total-block {
    background: #f8feff;
    border: 1.5px solid #00b0b9;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 14px;
}
.cp-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}
.cp-total-row:last-child {
    margin-bottom: 0;
}
.cp-discount-row {
    color: #c0392b;
    font-weight: 600;
}
.cp-final-row {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid #e0e0e0;
}
.cp-final-row span:last-child {
    color: #00868d;
}

/* Bouton */
.cp-atc-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    background: #00b0b9;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.2px;
}
.cp-atc-btn:not(:disabled):hover {
    background: #009aa2;
}
.cp-atc-btn:disabled {
    background: #b0dde0;
    cursor: not-allowed;
}
