.wplt-atc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-family: inherit;
}

.wplt-atc-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Dark overlay */
.wplt-atc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* Popup container */
.wplt-atc-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 15px;
    background: var(--background-color);
    border-radius: 10px;
    padding: 30px; /* Final Padding */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    text-align: center;
}

/* ----------------------------------------------------------
   CLOSE ICON (X) – FIXED SIZE + NO HOVER BACKGROUND
----------------------------------------------------------- */
.wplt-atc-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 26px !important;         /* BIGGER ICON */
    line-height: 1 !important;
    background: transparent !important; /* REMOVE BACKGROUND */
    border: none !important;
    padding: 0 !important;
    color: var(--paragraph-color) !important;
    width: auto !important;
    height: auto !important;
    cursor: pointer;
}

/* No hover background, no color change */
.wplt-atc-close:hover,
.wplt-atc-close:focus,
.wplt-atc-close:active {
    background: transparent !important;
    color: var(--paragraph-color) !important;
    box-shadow: none !important;
}

/* Title */
.wplt-atc-title {
    margin: 15px 0 22px;
    font-size: 22px;
    font-weight: 600;
    color: var(--headline-color);
}

/* Buttons wrapper */
.wplt-atc-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Base button style */
.wplt-atc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 42px;
    padding: 0 20px;
    border-radius: 3px; /* FINAL BUTTON RADIUS */
    border: none;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

/* Continue Shopping button */
.wplt-atc-continue {
    background: var(--primary-color);
    color: var(--background-color) !important; /* ALWAYS WHITE */
}

/* No hover color change */
.wplt-atc-continue:hover,
.wplt-atc-continue:focus,
.wplt-atc-continue:active {
    background: var(--primary-color);
    color: var(--background-color) !important;
}

/* View Cart button */
.wplt-atc-view-cart {
    background: var(--secondary-color);
    color: var(--background-color) !important; /* ALWAYS WHITE */
}

/* No hover color change */
.wplt-atc-view-cart:hover,
.wplt-atc-view-cart:focus,
.wplt-atc-view-cart:active {
    background: var(--secondary-color);
    color: var(--background-color) !important;
}

/* ---------------------------
   MOBILE STYLES
---------------------------- */
@media (max-width: 480px) {
    .wplt-atc-dialog {
        padding: 26px;
    }

    .wplt-atc-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .wplt-atc-actions {
        flex-direction: column;
        gap: 10px;
    }

    .wplt-atc-btn {
        width: 100%;
        min-width: 0;
    }
}
