/**
 * SHIYAO - Styles du système de commande
 */

/* Modal Checkout - Style Drawer comme le panier */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.checkout-modal-content {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 550px;
    max-width: 90vw;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.checkout-modal.active .checkout-modal-content {
    transform: translateX(0);
}

.checkout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.checkout-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.checkout-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.checkout-modal-close:active {
    background: #d1d5db;
    transform: scale(0.95);
}

/* Progress Bar */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
}

.progress-step.active .progress-number {
    background: #B8461F;
    color: white;
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.3);
}

.progress-step.completed .progress-number {
    background: #B8461F;
    color: white;
}

.progress-step span {
    font-size: 12px;
    color: #666;
}

.progress-step.active span {
    color: #B8461F;
    font-weight: 600;
}

.progress-line {
    width: 80px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 10px;
    margin-bottom: 20px;
}

.progress-line.completed {
    background: linear-gradient(90deg, #B8461F 0%, #9a3819 100%);
}

/* Modal Body */
.checkout-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 30px;
}

.checkout-section {
    margin-bottom: 30px;
}

.checkout-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.section-header-with-icon h3 {
    display: flex;
    align-items: center;
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.section-header-with-icon p {
    margin: 0 0 12px 0;
    padding-left: 28px;
    font-size: 12px;
    color: #888;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #B8461F;
    box-shadow: 0 0 0 3px rgba(184, 70, 31, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Bouton localiser sur la carte */
.btn-locate-map {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #B8461F 0%, #9a3819 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.btn-locate-map:hover {
    background: linear-gradient(135deg, #9a3819 0%, #7d2e14 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.3);
}

.btn-locate-map:active {
    transform: translateY(0);
}

/* Shipping Info */
.shipping-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shipping-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.shipping-details p {
    margin: 5px 0;
    font-size: 14px;
}

/* Map Container */
.map-container {
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    margin-top: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.map-placeholder p {
    color: #666;
    font-size: 14px;
}

/* Payment Container */
.payment-container {
    padding: 20px;
}

#paypal-button-container {
    width: 100%;
}

/* Payment Fully Covered Message */
.payment-fully-covered {
    padding: 24px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15);
}

.payment-success-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.payment-success-message > i {
    font-size: 48px;
    color: #16a34a;
    flex-shrink: 0;
}

.payment-success-message h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #16a34a;
}

.payment-success-message p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Payment Placeholder */
.payment-placeholder {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payment-placeholder i {
    font-size: 64px;
    color: #B8461F;
    margin-bottom: 20px;
}

.payment-placeholder h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.payment-placeholder p {
    margin: 5px 0;
    color: #666;
}

/* Shipping Summary - Compact Version */
.shipping-summary-compact {
    padding: 14px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-left: 3px solid #B8461F;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #B8461F;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shipping-summary-compact p {
    margin: 6px 0;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-summary-compact p i {
    color: #B8461F;
    width: 16px;
    text-align: center;
}

/* Order Summary Box */
.order-summary-box {
    padding: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.order-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    color: #333;
}

.order-summary-line span:first-child {
    font-weight: 500;
}

.order-summary-amount {
    font-weight: 600;
    color: #666;
}

.order-summary-line.gift-card-deduction {
    color: #16a34a;
}

.order-summary-line.gift-card-deduction span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-summary-line.gift-card-deduction i {
    flex-shrink: 0;
}

.gift-card-amount {
    color: #16a34a !important;
    font-weight: 700;
}

.order-summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
    margin: 14px 0;
}

.order-summary-line.total {
    padding: 14px 0 0 0;
    font-size: 18px;
    font-weight: 700;
}

.order-summary-total {
    color: #B8461F !important;
    font-size: 24px;
    font-weight: 800;
}

@keyframes priceUpdate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Old shipping summary - keep for compatibility */
.shipping-summary {
    padding: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shipping-summary p {
    margin: 5px 0;
    font-size: 14px;
}

/* Confirmation */
.confirmation-success {
    text-align: center;
    padding: 20px;
}

.confirmation-success i {
    font-size: 80px;
    color: #B8461F;
    margin-bottom: 20px;
}

.confirmation-success h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.order-details {
    margin: 30px 0;
    text-align: left;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-detail-item {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-detail-item:last-child {
    border-bottom: none;
}

.order-detail-item span {
    color: #666;
    font-size: 14px;
}

.order-detail-item strong {
    color: #B8461F;
    font-size: 16px;
    font-weight: 600;
}

.confirmation-note {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

/* Success Modal - Modern Design */
.checkout-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px !important;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.checkout-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.checkout-success p {
    font-size: 15px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

/* Payment Method Card */
.payment-method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.08) 0%, rgba(88, 101, 242, 0.04) 100%);
    border: 1.5px solid rgba(88, 101, 242, 0.2);
    border-radius: 16px;
    margin: 24px 0;
    width: 100%;
    max-width: 400px;
}

.payment-method-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.payment-method-icon i {
    font-size: 24px;
    color: white;
}

.payment-method-info {
    flex: 1;
    text-align: left;
}

.payment-method-info strong {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.payment-method-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Discord Channel Button */
.btn-discord-channel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
    margin-bottom: 16px;
}

.btn-discord-channel:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3c45a5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.45);
}

.btn-discord-channel i {
    font-size: 20px;
}

/* Close Button */
.btn-close-checkout {
    width: 100%;
    max-width: 400px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.3);
}

.btn-close-checkout:hover {
    background: linear-gradient(135deg, #9a3819 0%, #7d2e14 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 70, 31, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkout-success {
        padding: 30px 20px !important;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .success-icon i {
        font-size: 35px;
    }
    
    .checkout-success h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .checkout-success p {
        font-size: 14px;
    }
    
    .payment-method-card {
        padding: 16px;
        margin: 20px 0;
        max-width: 100%;
    }
    
    .payment-method-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .payment-method-icon i {
        font-size: 22px;
    }
    
    .payment-method-info strong {
        font-size: 15px;
    }
    
    .payment-method-info p {
        font-size: 12px;
    }
    
    .btn-discord-channel,
    .btn-close-checkout {
        max-width: 100%;
        padding: 16px 24px;
        font-size: 15px;
    }
    
    .btn-discord-channel {
        margin-bottom: 12px;
    }
}

/* Bouton Back - Même style que Checkout du panier */
.btn-checkout-back {
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.3) !important;
}

.btn-checkout-back:hover {
    background: linear-gradient(135deg, #9a3819 0%, #7d2e14 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 70, 31, 0.4) !important;
}

.btn-checkout-back:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.3) !important;
}

/* Bouton Discord - Bleu Discord */
.btn-checkout-next.discord-btn {
    background: #5865F2 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35) !important;
}

.btn-checkout-next.discord-btn:hover {
    background: #4752C4 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.45) !important;
}

.btn-checkout-next.discord-btn:active {
    background: #3c45a5 !important;
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.3) !important;
}

.btn-checkout-next.discord-btn:disabled {
    background: #9ca3af !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* Modal Footer */
.checkout-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    flex-shrink: 0;
}

.checkout-modal-footer button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9a3819 0%, #7d2e14 100%);
    box-shadow: 0 6px 16px rgba(184, 70, 31, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    background: linear-gradient(135deg, #7d2e14 0%, #6a2511 100%);
    transform: scale(0.98) translateY(0);
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.3);
}

.btn-secondary {
    background: rgba(184, 70, 31, 0.1);
    color: #B8461F;
    border: 1px solid rgba(184, 70, 31, 0.2);
}

.btn-secondary:hover {
    background: rgba(184, 70, 31, 0.15);
    border-color: rgba(184, 70, 31, 0.3);
}

.btn-secondary:active {
    background: rgba(184, 70, 31, 0.2);
    transform: scale(0.98);
}

/* Loader */
.checkout-loader,
.paypal-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.loader-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive - Mobile en bottom sheet */
@media (max-width: 768px) {
    .checkout-modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        max-width: 100%;
        height: 92vh;
        max-height: 92vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;
        visibility: hidden;
    }
    

    .checkout-modal.active .checkout-modal-content {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
    }

    .checkout-modal-header,
    .checkout-modal-body {
        padding: 20px;
    }
    
    /* Footer avec deux boutons côte à côte */
    .checkout-modal-footer {
        flex-direction: row !important;
        padding: 16px 20px calc(20px + env(safe-area-inset-bottom)) !important;
        gap: 12px;
    }
    
    .checkout-modal-footer button {
        flex: 1 !important;
        width: auto !important;
        padding: 16px 14px;
        font-size: 14px;
    }
    
    .checkout-modal-footer a.btn-checkout-next {
        flex: 1 !important;
        width: auto !important;
        padding: 16px 14px;
        font-size: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-progress {
        padding: 20px 10px;
    }

    .progress-line {
        width: 40px;
    }

    .progress-step span {
        font-size: 10px;
    }
}


/* Fond blanc en bas pour la barre iOS - derrière la modale */
@media (max-width: 768px) {
    .checkout-modal-content::before {
        content: '';
        position: absolute;
        bottom: -120px;
        left: 0;
        right: 0;
        height: 120px;
        background: #ffffff;
        z-index: 1;
        pointer-events: none;
    }
}

/* Extension du fond blanc sous la modale pour Safari iOS */
@media (max-width: 768px) {
    .checkout-modal-content::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 200px;
        background: #ffffff;
        z-index: -1;
        pointer-events: none;
        transform: translateY(100%);
    }
}

/* Gift Card Section - Premium Design */
.gift-card-section {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.gift-card-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.gift-card-input {
    flex: 1;
    padding: 14px 20px 14px 48px;
    background: white;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gift-card-input::placeholder {
    color: #999;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Icône par défaut - pas d'icône */
.gift-card-input-group::before {
    display: none;
}

/* Icône cadeau pour les cartes cadeaux */
.giftcard-input-group::before {
    content: '\f06b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #B8461F;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* Icône tag pour les codes promo */
.promo-input-group::before {
    content: '\f02b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #B8461F;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.gift-card-input:focus {
    outline: none;
    border-color: #B8461F;
    box-shadow: 0 0 0 4px rgba(184, 70, 31, 0.12), 0 4px 16px rgba(184, 70, 31, 0.15);
    transform: translateY(-1px);
}

.gift-card-input:disabled {
    background: #f9fafb;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #e5e7eb;
}

.btn-apply-gift-card {
    padding: 14px 32px;
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(184, 70, 31, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-apply-gift-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-apply-gift-card:hover:not(:disabled)::before {
    left: 100%;
}

.btn-apply-gift-card:hover:not(:disabled) {
    background: linear-gradient(135deg, #9a3819 0%, #7d2e14 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 70, 31, 0.35);
}

.btn-apply-gift-card:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.3);
}

.btn-apply-gift-card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.gift-card-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gift-card-message i {
    font-size: 16px;
}

.gift-card-message.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.08) 100%);
    color: #16a34a;
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.gift-card-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.08) 100%);
    color: #dc2626;
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.gift-card-message.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #2563eb;
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.gift-card-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    animation: slideDown 0.3s ease;
}

.gift-card-applied-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 600;
}

.gift-card-applied-info i {
    font-size: 20px;
    animation: checkPulse 0.5s ease;
}

@keyframes checkPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.btn-remove-gift-card {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.12);
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.btn-remove-gift-card:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
}

.btn-remove-gift-card:active {
    transform: rotate(90deg) scale(0.9);
}

/* Collapsible Sections */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.collapsible-header:hover {
    background: linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.collapsible-icon {
    color: #6b7280;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.collapsible-content {
    padding: 16px 0 0 0;
    animation: slideDown 0.3s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .gift-card-section {
        padding: 16px;
    }
    
    .gift-card-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Repositionner les icônes pour qu'elles restent dans l'input sur mobile */
    .giftcard-input-group::before,
    .promo-input-group::before {
        top: 24px; /* Centré dans l'input qui est maintenant en haut */
        left: 16px;
        font-size: 16px;
    }
    
    .gift-card-input {
        padding: 16px 20px 16px 44px; /* Garder le padding-left pour l'icône */
        font-size: 16px; /* Évite le zoom sur iOS */
        width: 100%;
        box-sizing: border-box;
    }
    
    .btn-apply-gift-card {
        width: 100%;
        padding: 16px 24px;
    }
    
    .gift-card-applied {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .gift-card-applied-info {
        flex: 1;
        min-width: 0;
    }
    
    .gift-card-applied-info span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .gift-card-section {
        padding: 14px;
        border-radius: 10px;
    }
    
    .giftcard-input-group::before,
    .promo-input-group::before {
        top: 22px;
        left: 14px;
        font-size: 15px;
    }
    
    .gift-card-input {
        padding: 14px 16px 14px 40px;
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .btn-apply-gift-card {
        padding: 14px 20px;
        font-size: 14px;
    }
}


/* Confirm Order Button - Gift Card Full Coverage */
.btn-confirm-gift-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(184, 70, 31, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-confirm-gift-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-confirm-gift-card:hover::before {
    left: 100%;
}

.btn-confirm-gift-card:hover {
    background: linear-gradient(135deg, #c95424 0%, #9a3819 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(184, 70, 31, 0.5);
}

.btn-confirm-gift-card:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(184, 70, 31, 0.4);
}

.btn-confirm-gift-card i {
    font-size: 18px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .btn-confirm-gift-card {
        width: 100%;
        padding: 18px 32px;
        font-size: 16px;
        border-radius: 50px;
    }
}


/* Gift Card Success Box - Order Fully Covered */
.gift-card-success-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.gift-card-success-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.gift-card-success-icon i {
    color: white;
    font-size: 24px;
}

.gift-card-success-content {
    flex: 1;
}

.gift-card-success-content h4 {
    color: #16a34a;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.gift-card-success-content p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .gift-card-success-box {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    
    .gift-card-success-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .gift-card-success-icon i {
        font-size: 22px;
    }
    
    .gift-card-success-content h4 {
        font-size: 17px;
    }
    
    .gift-card-success-content p {
        font-size: 13px;
    }
}


/* ============================================
   CHECKOUT - MODERN REDESIGN
   ============================================ */

/* Form inputs - Plus arrondis et modernes */
.checkout-section .form-group input {
    border-radius: 14px !important;
    border: 1.5px solid #e5e7eb !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #fafbfc !important;
}

.checkout-section .form-group input:focus {
    border-color: #B8461F !important;
    box-shadow: 0 0 0 4px rgba(184, 70, 31, 0.1) !important;
    background: #fff !important;
}

.checkout-section .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

/* Info Cards - Design moderne arrondi */
.checkout-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e8eaed;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.checkout-info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.checkout-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(184, 70, 31, 0.1) 0%, rgba(184, 70, 31, 0.05) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-info-icon i {
    font-size: 20px;
    color: #B8461F;
}

.checkout-info-icon.discord {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.12) 0%, rgba(88, 101, 242, 0.06) 100%);
}

.checkout-info-icon.discord i {
    color: #5865F2;
}

.checkout-info-content {
    flex: 1;
}

.checkout-info-content strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.checkout-info-content p {
    font-size: 13px;
    color: #86868b;
    margin: 0;
    line-height: 1.5;
}

/* Mini Map - Plus grande avec Leaflet */
.checkout-map {
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8eaed 100%);
    margin-top: 20px;
    border: 1px solid #e5e7eb;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.checkout-map #leaflet-map {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.checkout-map .map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #86868b;
    gap: 12px;
    padding: 20px;
    text-align: center;
}

.checkout-map .map-placeholder i {
    font-size: 36px;
    color: #B8461F;
    opacity: 0.7;
}

.checkout-map .map-placeholder span {
    font-size: 14px;
    font-weight: 500;
}

/* Map avec localisation active */
.checkout-map.has-location {
    border: 2px solid rgba(184, 70, 31, 0.3);
    box-shadow: 0 4px 20px rgba(184, 70, 31, 0.15);
}

/* Summary Box - Style moderne */
.checkout-summary-box {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f7 100%);
    border-radius: 20px;
    padding: 22px 26px;
    margin: 24px 0;
    border: 1px solid #e8eaed;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.checkout-summary-box .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    color: #1d1d1f;
}

.checkout-summary-box .summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
    margin: 12px 0;
}

.checkout-summary-box .summary-total {
    font-weight: 700;
    font-size: 18px;
    padding-top: 14px;
}

.checkout-summary-box .summary-total span:last-child {
    color: #B8461F;
    font-size: 22px;
    font-weight: 800;
}

/* Discord Info Bubble - Modernisé */
.discord-info-bubble {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e8eaed;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.discord-info-bubble:hover {
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.2);
}

.discord-bubble-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.12) 0%, rgba(88, 101, 242, 0.06) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-bubble-icon i {
    font-size: 22px;
    color: #5865F2;
}

.discord-bubble-content strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.discord-bubble-content p {
    font-size: 13px;
    color: #86868b;
    margin: 0;
    line-height: 1.5;
}

/* Hide old discord info box */
.discord-payment-info,
.discord-info-box {
    display: none !important;
}

/* Hide progress bar */
.checkout-progress {
    display: none !important;
}

/* Compact form */
.checkout-section h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #1d1d1f;
    letter-spacing: -0.2px;
}

/* Footer - Style moderne avec fond gris et deux boutons */
.checkout-modal-footer {
    background: linear-gradient(180deg, #f5f5f7 0%, #e8eaed 100%) !important;
    border-top: 1px solid #d1d5db !important;
    padding: 20px 28px 28px !important;
    display: flex;
    gap: 14px;
}

.checkout-modal-footer button {
    flex: 1;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Bouton Back/Cancel - Style rouge/orange comme Checkout du panier */
.btn-checkout-back {
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.3) !important;
}

.btn-checkout-back:hover {
    background: linear-gradient(135deg, #9a3819 0%, #7d2e14 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 70, 31, 0.4) !important;
}

.btn-checkout-back:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.3) !important;
}

/* Bouton Discord - Style principal */
.btn-checkout-next.discord-btn {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35) !important;
}

.btn-checkout-next.discord-btn:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3c45a5 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.45) !important;
}

.btn-checkout-next.discord-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(88, 101, 242, 0.3) !important;
}

.btn-checkout-next.discord-btn:disabled {
    background: #9ca3af !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none;
}

/* Mobile */
@media (max-width: 768px) {
    .checkout-map {
        height: 180px;
        border-radius: 16px;
    }
    
    .checkout-info-card,
    .discord-info-bubble {
        padding: 16px 18px;
        border-radius: 16px;
    }
    
    .checkout-info-icon,
    .discord-bubble-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 12px;
    }
    
    .checkout-summary-box {
        padding: 18px 20px;
        margin: 20px 0;
        border-radius: 16px;
    }
    
    /* Footer avec deux boutons côte à côte */
    .checkout-modal-footer {
        flex-direction: row !important;
        padding: 16px 20px 24px !important;
        gap: 12px;
    }
    
    .checkout-modal-footer button {
        flex: 1 !important;
        width: auto !important;
        padding: 16px 14px;
        border-radius: 14px;
        font-size: 14px;
    }
    
    .checkout-modal-footer a.btn-checkout-next {
        flex: 1 !important;
        width: auto !important;
        padding: 16px 14px;
        border-radius: 14px;
        font-size: 14px;
    }
}

/* Leaflet custom marker */
.leaflet-marker-icon.custom-marker {
    background: none;
    border: none;
}

.map-marker-pin {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.4);
    animation: markerBounce 0.5s ease-out;
}

.map-marker-pin::after {
    content: '';
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes markerBounce {
    0% {
        transform: rotate(-45deg) translateY(-20px);
        opacity: 0;
    }
    60% {
        transform: rotate(-45deg) translateY(5px);
    }
    100% {
        transform: rotate(-45deg) translateY(0);
        opacity: 1;
    }
}


/* Success Page Styles */
.checkout-success {
    text-align: center;
    padding: 30px 20px;
}

.checkout-success .success-icon {
    margin-bottom: 20px;
}

.checkout-success .success-icon i {
    font-size: 72px;
    color: #22c55e;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.checkout-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 12px 0;
}

.checkout-success p {
    color: #6b7280;
    font-size: 15px;
    margin: 8px 0;
}

.btn-discord-channel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 32px;
    margin-top: 20px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.btn-discord-channel:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3c45a5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.45);
    color: white;
}

.btn-close-checkout {
    display: block;
    width: 100%;
    padding: 16px 24px;
    margin-top: 14px;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8eaed 100%);
    color: #1d1d1f;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-checkout:hover {
    background: linear-gradient(135deg, #e8eaed 0%, #d1d5db 100%);
}

/* Leaflet overrides */
.leaflet-container {
    font-family: inherit;
    border-radius: 20px;
}

.leaflet-control-attribution {
    display: none;
}


/* ============================================
   ADDRESS AUTOCOMPLETE
   ============================================ */
.address-autocomplete-wrapper {
    position: relative;
    z-index: 100;
}

.address-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f0f4ff;
}

.suggestion-item i {
    color: #B8461F;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.suggestion-item span {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
}

.suggestion-item.no-results {
    color: #9ca3af;
    cursor: default;
    justify-content: center;
}

.suggestion-item.no-results:hover {
    background: white;
}

/* ============================================
   PAYMENT METHOD CARD
   ============================================ */
.payment-method-section {
    margin-top: 8px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #5865F2;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.12);
    transition: all 0.2s ease;
}

.payment-method-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.payment-method-icon i {
    font-size: 24px;
    color: white;
}

.payment-method-info {
    flex: 1;
}

.payment-method-info strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.payment-method-info p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.payment-method-check {
    color: #5865F2;
    font-size: 24px;
}

/* Mobile */
@media (max-width: 768px) {
    .payment-method-card {
        padding: 16px 18px;
        border-radius: 14px;
    }
    
    .payment-method-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 12px;
    }
    
    .payment-method-icon i {
        font-size: 20px;
    }
    
    .payment-method-info strong {
        font-size: 15px;
    }
    
    /* Footer avec deux boutons côte à côte comme sur PC */
    .checkout-modal-footer {
        flex-direction: row !important;
        padding: 16px 20px 24px !important;
        gap: 12px;
        background: linear-gradient(180deg, #f0f0f2 0%, #e5e5e7 100%) !important;
    }
    
    .checkout-modal-footer button {
        flex: 1 !important;
        width: auto !important;
        padding: 16px 16px;
        border-radius: 14px;
        font-size: 14px;
    }
    
    .checkout-modal-footer a.btn-checkout-next {
        flex: 1 !important;
        width: auto !important;
        padding: 16px 16px;
        border-radius: 14px;
        font-size: 14px;
    }
    
    .address-suggestions {
        max-height: 200px;
    }
    
    .suggestion-item {
        padding: 12px 14px;
    }
}


/* ============================================
   FIELD ERROR STYLES
   ============================================ */

/* Champs en erreur - bordure rouge */
.field-error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
    animation: shake 0.4s ease;
}

.field-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* Animation shake pour les erreurs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Label en rouge pour les champs en erreur */
.form-group:has(.field-error) label {
    color: #ef4444 !important;
}


/* Success Step - Compact Design */
.checkout-success-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px !important;
    justify-content: center;
}

.success-icon-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon-small i {
    font-size: 28px;
    color: white;
}

.checkout-success-compact h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.checkout-success-compact p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.discord-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(88, 101, 242, 0.05) 100%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 12px;
    margin-top: 20px;
    width: 100%;
    max-width: 320px;
}

.discord-info-card i {
    font-size: 22px;
    color: #5865F2;
}

.discord-info-card span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Footer button as link */
.checkout-modal-footer a.btn-checkout-next {
    flex: 1;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    box-sizing: border-box;
}

/* Mobile */
@media (max-width: 768px) {
    .checkout-success-compact {
        padding: 30px 20px !important;
    }
    
    .success-icon-small {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }
    
    .success-icon-small i {
        font-size: 24px;
    }
    
    .checkout-success-compact h3 {
        font-size: 18px;
    }
    
    .checkout-success-compact p {
        font-size: 13px;
    }
    
    .discord-info-card {
        padding: 12px 16px;
        margin-top: 16px;
        max-width: 100%;
    }
    
    .discord-info-card i {
        font-size: 20px;
    }
    
    .discord-info-card span {
        font-size: 13px;
    }
}


/* ============================================
   SUCCESS MODAL - COMPACT MOBILE STYLE
   Same structure as cart/checkout modals
   ============================================ */

.checkout-success-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    flex: 1;
}

.success-icon-small {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon-small i {
    font-size: 32px;
    color: white;
}

.checkout-success-compact h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 10px 0;
}

.checkout-success-compact p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.discord-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.08) 0%, rgba(88, 101, 242, 0.04) 100%);
    border: 1.5px solid rgba(88, 101, 242, 0.2);
    border-radius: 14px;
    margin-top: 24px;
    width: 100%;
    max-width: 320px;
}

.discord-info-card i {
    font-size: 24px;
    color: #5865F2;
}

.discord-info-card span {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Mobile - Modale compacte */
@media (max-width: 768px) {
    .checkout-success-compact {
        padding: 30px 20px;
        justify-content: flex-start;
        padding-top: 50px;
    }
    
    .success-icon-small {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    
    .success-icon-small i {
        font-size: 28px;
    }
    
    .checkout-success-compact h3 {
        font-size: 20px;
    }
    
    .checkout-success-compact p {
        font-size: 14px;
    }
    
    .discord-info-card {
        padding: 14px 16px;
        margin-top: 20px;
        max-width: 100%;
    }
    
    .discord-info-card i {
        font-size: 22px;
    }
    
    .discord-info-card span {
        font-size: 13px;
    }
}
