/* ==========================================================================
   GS Single-Cart Confirmation Modal
   ========================================================================== */

/* Overlay */
#gs-replace-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#gs-replace-cart-overlay.gs-modal-visible {
    display: flex;
    animation: gsOverlayFadeIn .22s ease forwards;
}
@keyframes gsOverlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal card */
#gs-replace-cart-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
    text-align: center;
    animation: gsModalSlideIn .28s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
@keyframes gsModalSlideIn {
    from { transform: scale(.88) translateY(16px); opacity: 0; }
    to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

/* Icon */
.gs-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff4e5;
    color: #e67e22;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* Typography */
#gs-replace-cart-modal h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}
#gs-replace-cart-modal p {
    margin: 0 0 28px;
    font-size: .95rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Buttons */
.gs-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gs-btn-primary,
.gs-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, opacity .15s ease, box-shadow .15s ease;
    line-height: 1;
}
.gs-btn-primary {
    background: var(--e-global-color-primary, #e74c3c) !important;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}
.gs-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
}
.gs-btn-primary:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.gs-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}
.gs-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

@media (min-width: 480px) {
    .gs-modal-actions {
        flex-direction: row;
    }
}
