/* ═══════════════════════════════════════════════════════════
   AGITA Quick Checkout — Style sidebar produit
   Palette : #0F4EA3 (bleu), #FF8A00 (orange), #1E293B (texte)
   ═══════════════════════════════════════════════════════════ */

:root {
    --agita-blue:       #0F4EA3;
    --agita-blue-dark:  #0A3570;
    --agita-orange:     #FF8A00;
    --agita-white:      #FFFFFF;
    --agita-bg:         #F5F7FA;
    --agita-text:       #1E293B;
    --agita-muted:      #000000;
    --agita-border:     #E2E8F0;
    --agita-success:    #16A34A;
    --agita-error:      #DC2626;
    --agita-radius:     10px;
    --agita-shadow:     0 4px 24px rgba(15, 78, 163, 0.10);
}

/* ── BOX PRINCIPALE ─────────────────────────────────────── */
.agita-qc-box {
    background: var(--agita-white);
    border: 1.5px solid var(--agita-border);
    border-radius: 14px;
    padding: 24px 22px 20px;
    margin-top: 24px;
    box-shadow: var(--agita-shadow);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* ── EN-TÊTE ─────────────────────────────────────────────── */
.agita-qc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.agita-qc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--agita-blue);
    border-radius: 8px;
    color: var(--agita-white);
    flex-shrink: 0;
}

.agita-qc-icon svg {
    width: 18px;
    height: 18px;
}

.agita-qc-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--agita-text);
    letter-spacing: -0.2px;
}

.agita-qc-subtitle {
    font-size: 13px;
    color: var(--agita-muted);
    margin: 0 0 18px 0;
    line-height: 1.5;
}

/* ── FORMULAIRE ──────────────────────────────────────────── */
.agita-qc-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── CHAMP ───────────────────────────────────────────────── */
.agita-qc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agita-qc-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--agita-text);
    margin: 0;
}

.agita-qc-field label .req {
    color: var(--agita-blue);
    margin-left: 2px;
}

/* Inputs */
.agita-qc-field input[type="text"],
.agita-qc-field input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--agita-border);
    border-radius: var(--agita-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--agita-text);
    background: var(--agita-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.agita-qc-field input:focus {
    border-color: var(--agita-blue);
    box-shadow: 0 0 0 3px rgba(15, 78, 163, 0.10);
}

.agita-qc-field input.agita-error,
.agita-qc-field select.agita-error {
    border-color: var(--agita-error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
    animation: agitaShake 0.35s ease;
}

/* Placeholder */
.agita-qc-field input::placeholder {
    color: #A8B4C2;
    font-size: 13px;
}

/* ── CHAMP TÉLÉPHONE avec icône ──────────────────────────── */
.agita-tel-wrap {
    position: relative;
}

.agita-tel-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--agita-blue);
    display: flex;
    align-items: center;
}

.agita-tel-icon svg {
    width: 15px;
    height: 15px;
}

.agita-tel-wrap input {
    padding-left: 38px !important;
}

/* ── SELECT CUSTOM ───────────────────────────────────────── */
.agita-select-wrap {
    position: relative;
}

.agita-select-wrap select {
    width: 100%;
    padding: 11px 36px 11px 14px;
    border: 1.5px solid var(--agita-border);
    border-radius: var(--agita-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--agita-text);
    background: var(--agita-white);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.agita-select-wrap select:focus {
    border-color: var(--agita-blue);
    box-shadow: 0 0 0 3px rgba(15, 78, 163, 0.10);
}

.agita-select-wrap select:disabled {
    background: var(--agita-bg);
    color: #A8B4C2;
    cursor: not-allowed;
}

.agita-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--agita-blue);
    pointer-events: none;
    font-size: 16px;
    line-height: 1;
}

/* ── RÉCAPITULATIF DES PRIX ──────────────────────────────── */
.agita-price-summary {
    background: var(--agita-bg);
    border: 1.5px solid var(--agita-border);
    border-radius: var(--agita-radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.agita-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.agita-price-label {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.agita-price-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--agita-text);
    white-space: nowrap;
}

.agita-price-value--free {
    color: var(--agita-success) !important;
}

.agita-price-row--delivery .agita-price-value {
    color: var(--agita-blue);
}

.agita-price-divider {
    height: 1px;
    background: var(--agita-border);
    margin: 2px 0;
}

.agita-price-label--total {
    font-size: 14px;
    font-weight: 700;
    color: var(--agita-text);
}

.agita-price-value--total {
    font-size: 19px;
    font-weight: 800;
    color: var(--agita-blue);
    letter-spacing: -0.3px;
    transition: all 0.25s ease;
}

/* ── INFO LIVRAISON ──────────────────────────────────────── */
.agita-delivery-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 10px 14px;
    animation: agitaSlideIn 0.25s ease;
}

.agita-delivery-label {
    font-size: 13px;
    color: var(--agita-blue-dark);
    font-weight: 500;
}

.agita-delivery-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--agita-blue);
}

/* ── BOUTON COMMANDER ────────────────────────────────────── */
.agita-qc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--agita-blue);
    color: var(--agita-white);
    border: none;
    border-radius: var(--agita-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 14px rgba(15, 78, 163, 0.30);
    letter-spacing: 0.2px;
    margin-top: 4px;
}

.agita-qc-btn:hover {
    background: var(--agita-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 78, 163, 0.38);
}

.agita-qc-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(15, 78, 163, 0.25);
}

.agita-qc-btn:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.agita-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Loading state */
.agita-qc-btn .agita-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: agitaSpin 0.7s linear infinite;
}

/* ── BADGE PAIEMENT ──────────────────────────────────────── */
.agita-payment-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color:rgb(86 86 86)!important;
    font-size: 12.5px;
    margin-top: 4px;
}

.agita-payment-badge svg {
    width: 14px;
    height: 14px;
    color: var(--agita-blue);
}

/* ── MESSAGE FEEDBACK ────────────────────────────────────── */
.agita-qc-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    animation: agitaSlideIn 0.25s ease;
}

.agita-qc-message.agita-success {
    background: #DCFCE7;
    border: 1px solid #86EFAC;
    color: #166534;
}

.agita-qc-message.agita-error-msg {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

/* ── "Commander maintenant" bouton sur la fiche produit ─── */
.agita-buy-now-btn {
    background: var(--agita-blue) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.25s, transform 0.2s !important;
    box-shadow: 0 4px 12px rgba(15, 78, 163, 0.28) !important;
    font-family: 'Poppins', sans-serif !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.agita-buy-now-btn:hover {
    background: var(--agita-blue-dark) !important;
    transform: translateY(-2px) !important;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes agitaSpin {
    to { transform: rotate(360deg); }
}

@keyframes agitaSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes agitaShake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
    .agita-qc-box {
        margin-top: 32px;
    }
}

@media (max-width: 640px) {
    .agita-qc-box {
        padding: 20px 16px;
    }

    .agita-qc-title {
        font-size: 16px;
    }

    .agita-qc-btn {
        font-size: 14px;
        padding: 13px 16px;
    }
}

/* ── ACCESSIBILITÉ ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}