/* ── [wcp_popup] trigger buttons ─────────────────────────────────────── */
.wcp-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: filter .15s, transform .15s;
    /* colours set via inline style (bg, color, border-color) */
}
.wcp-popup-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.wcp-popup-btn:active { transform: translateY(0); }

.wcp-popup-btn--solid {
    padding: 11px 22px;
    border-radius: 8px;
}
.wcp-popup-btn--outline {
    padding: 10px 20px;
    border-radius: 8px;
    border-width: 1.5px;
    border-style: solid;
    background: transparent !important;
}
.wcp-popup-btn--link {
    padding: 0;
    background: transparent !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    border: none !important;
}
.wcp-popup-btn svg { flex-shrink: 0; }

/* ── Modal overlay ───────────────────────────────────────────────────── */
.wcp-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
.wcp-popup-overlay.wcp-popup-open {
    display: flex;
    animation: wcpPopupFadeIn .2s ease;
}
@keyframes wcpPopupFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.wcp-popup-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    animation: wcpPopupSlideUp .25s ease;
}
@keyframes wcpPopupSlideUp {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.wcp-popup-modal-inner {
    padding: 32px 36px 36px;
}

/* Header bar */
.wcp-popup-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-radius: 14px 14px 0 0;
}
.wcp-popup-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}
.wcp-popup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,.07);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
    margin-left: auto;
}
.wcp-popup-close:hover { background: rgba(0,0,0,.14); }
.wcp-popup-close svg { width: 14px; height: 14px; }

/* When there's no title, close btn sits sticky top-right */
.wcp-popup-modal.no-title .wcp-popup-modal-header {
    border-bottom: none;
    position: absolute;
    top: 0; right: 0;
    padding: 12px;
    background: transparent;
}
.wcp-popup-modal.no-title .wcp-popup-modal-inner {
    padding-top: 48px;
}

@media (max-width: 640px) {
    .wcp-popup-overlay { padding: 12px; align-items: flex-end; }
    .wcp-popup-modal   { border-radius: 14px 14px 0 0; max-height: 92vh; }
    .wcp-popup-modal-inner { padding: 20px 20px 28px; }
}

/* ── Layout: shared section body ─────────────────────────────────────── */
.wcp-section-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 20px 0 6px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.wcp-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.wcp-section-body { font-size: 14px; line-height: 1.7; color: #444; margin-bottom: 4px; }
.wcp-section-body p  { margin-bottom: 10px; }
.wcp-section-body p:last-child { margin-bottom: 0; }
.wcp-section-body ul, .wcp-section-body ol { padding-left: 20px; margin-bottom: 10px; }
.wcp-section-body li { margin-bottom: 4px; }
.wcp-section-body h4 { font-size: 14px; font-weight: 500; color: #1a1a1a; margin: 12px 0 4px; }
.wcp-section-body iframe, .wcp-section-body video {
    width: 100%; border-radius: 8px; margin: 8px 0; border: none;
}
.wcp-section-body img { max-width: 100%; border-radius: 6px; margin: 6px 0; }

/* ── Layout: tabs ────────────────────────────────────────────────────── */
.wcp-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1.5px solid #eee;
    margin: -32px -36px 20px;
    padding: 0 36px;
    flex-wrap: wrap;
}
.wcp-tab-btn {
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #888;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    cursor: pointer;
    transition: color .15s;
    white-space: nowrap;
}
.wcp-tab-btn:hover { color: #444; }
.wcp-tab-btn.wcp-tab-active {
    color: #e8601c;
    border-bottom-color: #e8601c;
    font-weight: 500;
}

/* ── Layout: accordion ───────────────────────────────────────────────── */
.wcp-accordion { margin: 0 -36px; }
.wcp-acc-item { border-bottom: 1px solid #f0f0f0; }
.wcp-acc-item:last-child { border-bottom: none; }
.wcp-acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 36px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 8px;
    transition: background .12s;
}
.wcp-acc-head:hover { background: #fafafa; }
.wcp-acc-icon {
    font-size: 16px;
    color: #aaa;
    flex-shrink: 0;
    transition: transform .2s;
}
.wcp-acc-open .wcp-acc-icon { transform: rotate(180deg); color: #e8601c; }
.wcp-acc-body { padding: 0 36px 16px; }

/* ── WowAddons tooltip intercept ─────────────────────────────────────── */
/* Hide the plain text box when a rich popup is mapped */
.prad-tooltip-container.wcp-has-popup .prad-tooltip-box {
    display: none !important;
}
/* Style the ? icon differently once mapped to a popup */
.prad-tooltip-icon.wcp-popup-trigger {
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.prad-tooltip-icon.wcp-popup-trigger:hover {
    transform: scale(1.15);
}
