/* ============================================================
   CPS Price Calculator — Stickere holografice (Produs ID 1116)
   Brand: verde #1a6b3c | CTA portocaliu #f5a623 | Font: Inter
   ============================================================ */

#cps-calculator {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    max-width: 640px;
    margin: 24px 0;
    color: #1a202c;
}

/* ── Secțiuni ─────────────────────────────────────────────── */
.cps-calc-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 14px;
}

.cps-calc-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #718096;
    margin: 0 0 13px;
}

/* ── Preseturi dimensiune ─────────────────────────────────── */
.cps-preset-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.cps-preset-btn {
    flex: 1;
    min-width: 64px;
    padding: 9px 6px;
    border: 2px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s, color .15s;
}

.cps-preset-btn:hover {
    border-color: #1a6b3c;
    color: #1a6b3c;
}

.cps-preset-btn.active {
    border-color: #1a6b3c;
    background: #1a6b3c;
    color: #fff;
}

/* ── Câmpuri lățime × înălțime ───────────────────────────── */
.cps-size-inputs {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.cps-input-group {
    flex: 1;
}

.cps-input-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cps-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cps-input-wrap input[type="number"] {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 7px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    background: #fff;
    outline: none;
    transition: border-color .15s;
    -moz-appearance: textfield;
}

.cps-input-wrap input[type="number"]::-webkit-inner-spin-button,
.cps-input-wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.cps-input-wrap input[type="number"]:focus {
    border-color: #1a6b3c;
}

.cps-input-unit {
    position: absolute;
    right: 11px;
    font-size: 12px;
    font-weight: 600;
    color: #a0aec0;
    pointer-events: none;
}

.cps-times-sep {
    font-size: 20px;
    font-weight: 300;
    color: #a0aec0;
    padding-bottom: 10px;
    flex-shrink: 0;
}

.cps-area-info {
    margin-top: 10px;
    font-size: 12px;
    color: #718096;
}

.cps-area-info span {
    font-weight: 700;
    color: #1a6b3c;
}


/* ── Butoane tip tăiere & laminare ───────────────────────── */
.cps-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cps-option-btn {
    padding: 9px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}

.cps-option-btn:hover {
    border-color: #1a6b3c;
    color: #1a6b3c;
}

.cps-option-btn.active {
    border-color: #1a6b3c;
    background: #1a6b3c;
    color: #fff;
}

.cps-option-hint {
    margin-top: 10px;
    font-size: 11px;
    color: #a0aec0;
    line-height: 1.5;
}

/* ── Tabel cantități ──────────────────────────────────────── */
.cps-qty-table {
    width: 100%;
    border-collapse: collapse;
}

.cps-qty-table thead th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #a0aec0;
    padding: 0 10px 10px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.cps-qty-table thead th:last-child {
    text-align: right;
}

.cps-qty-row {
    cursor: pointer;
    border-radius: 7px;
    transition: background .12s;
}

.cps-qty-row:hover td {
    background: #f0faf4;
}

.cps-qty-row.selected td {
    background: #f0faf4;
}

.cps-qty-row.selected td:first-child {
    border-left: 3px solid #1a6b3c;
    border-radius: 7px 0 0 7px;
}

.cps-qty-row td {
    padding: 12px 10px;
    border-bottom: 1px solid #f7fafc;
    vertical-align: middle;
}

.cps-qty-row:last-child td {
    border-bottom: none;
}

/* Radio */
.cps-qty-radio-cell {
    width: 36px;
}

.cps-qty-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .15s;
}

.cps-qty-row.selected .cps-qty-radio {
    border-color: #1a6b3c;
}

.cps-qty-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a6b3c;
    opacity: 0;
    transition: opacity .15s;
}

.cps-qty-row.selected .cps-qty-radio-dot {
    opacity: 1;
}

/* Cantitate label */
.cps-qty-label {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    width: 80px;
}

/* Preț total + per bucată */
.cps-qty-price-cell {
    text-align: left;
}

.cps-qty-total {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.cps-qty-per {
    display: block;
    font-size: 14px;
    color: #4a5568;
    margin-top: 2px;
}

/* Economisire */
.cps-qty-savings-cell {
    text-align: right;
    width: 88px;
}

.cps-savings-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e6f4ec;
    color: #1a6b3c;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* ── Footer: sumar + CTA ──────────────────────────────────── */
.cps-calc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0 4px;
}

.cps-selected-summary {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

.cps-selected-summary strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 4px;
}

.cps-summary-qty {
    font-weight: 700;
    color: #1a202c;
}

.cps-summary-sep {
    margin: 0 5px;
    color: #cbd5e0;
}

.cps-summary-opt {
    color: #4a5568;
}

.cps-cta-btn {
    flex-shrink: 0;
    padding: 14px 28px;
    background: #f5a623;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .15s, transform .1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cps-cta-btn:hover {
    background: #e09412;
    transform: translateY(-1px);
}

.cps-cta-btn:active {
    transform: translateY(0);
}

.cps-cta-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.cps-cta-arrow {
    font-size: 18px;
    line-height: 1;
}

/* ── Notă dimensiune personalizată ───────────────────────── */
.cps-custom-note {
    margin-top: 6px;
    font-size: 11px;
    color: #a0aec0;
    font-style: italic;
}

/* ── Mesaj eroare (dimensiune > 48 cm) ───────────────────── */
.cps-size-error {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 7px;
    font-size: 13px;
    color: #c53030;
    line-height: 1.4;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .cps-calc-section {
        padding: 16px;
    }

    .cps-size-inputs {
        flex-wrap: wrap;
    }

    .cps-times-sep {
        display: none;
    }

    .cps-input-group {
        flex: 1 1 calc(50% - 5px);
    }

    .cps-calc-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cps-cta-btn {
        justify-content: center;
    }

    .cps-qty-table thead th:last-child {
        display: none;
    }

    .cps-qty-savings-cell {
        display: none;
    }
}

/* CPS CUSTOM QTY STICKERE START */
.cps-custom-qty {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e0e0e0;
}
.cps-custom-qty > label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
}
.cps-custom-qty > label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a6b3c;
    cursor: pointer;
}
#cps-custom-input {
    display: block;
    margin-top: 10px;
    width: 140px;
    max-width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease;
    -moz-appearance: textfield;
    appearance: textfield;
}
#cps-custom-input::-webkit-outer-spin-button,
#cps-custom-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#cps-custom-input:focus {
    border-color: #1a6b3c;
}
.cps-hint {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 8px 0 0;
}
/* CPS CUSTOM QTY STICKERE END */
