/* =========================================================
   WooCommerce External Redirect — Styles
   ========================================================= */

/* ── Hide price ─────────────────────────────────────────── */
/* (Also handled via PHP wp_head for reliability) */
.wer-hide-price .woocommerce .price,
.wer-hide-price .woocommerce-Price-amount {
    display: none !important;
}

/* ── Redirect button ────────────────────────────────────── */
.wer-redirect-btn {
    background-color: #2271b1 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    text-decoration: none !important;
}

.wer-redirect-btn:hover,
.wer-redirect-btn:focus {
    background-color: #135e96 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.wer-single-btn-wrap {
    margin-top: 1em;
}

/* ── Modal overlay ──────────────────────────────────────── */
#wer-modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 16px;
}

#wer-modal-overlay.wer-visible {
    opacity: 1;
    visibility: visible;
}

/* ── Modal box ──────────────────────────────────────────── */
#wer-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

#wer-modal-overlay.wer-visible #wer-modal-box {
    transform: translateY(0);
}

#wer-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

#wer-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e1e1e;
    margin: 0 0 14px;
    line-height: 1.3;
}

#wer-modal-message {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* ── Modal buttons ──────────────────────────────────────── */
#wer-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.wer-btn {
    padding: 11px 28px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-width: 130px;
    line-height: 1.4;
}

.wer-btn:focus {
    outline: 3px solid #2271b1;
    outline-offset: 2px;
}

.wer-btn-cancel {
    background-color: #f0f0f0;
    color: #333;
}

.wer-btn-cancel:hover {
    background-color: #ddd;
}

.wer-btn-confirm {
    background-color: #2271b1;
    color: #fff;
}

.wer-btn-confirm:hover {
    background-color: #135e96;
    transform: translateY(-1px);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
    #wer-modal-box {
        padding: 28px 20px 22px;
    }

    #wer-modal-buttons {
        flex-direction: column;
    }

    .wer-btn {
        width: 100%;
    }
}
