/* WP Responsive Tabs — Modern Engine (dependency-free) */

.wrt-modern {
    box-sizing: border-box;
    font-family: inherit;
    caret-color: transparent;
}
.wrt-modern *,
.wrt-modern *::before,
.wrt-modern *::after {
    box-sizing: border-box;
}

/* ---------- Horizontal & Vertical shared nav/panel shell ---------- */
.wrt-modern__nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.wrt-modern__tab {
    appearance: none;
    background: var(--wrt-inactive-bg, #00aadd);
    color: var(--wrt-tab-color, #ffffff);
    border: 1px solid var(--wrt-border-color, #81d742);
    cursor: pointer;
    font: inherit;
    padding: 10px 16px;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.wrt-modern__tab i.fa,
.wrt-modern__tab i.fas,
.wrt-modern__tab i.far,
.wrt-modern__tab i.fab {
    vertical-align: middle;
    line-height: 1;
    margin-right: 6px;
    font-size: 0.95em;
}
.wrt-modern__tab:hover {
    background: var(--wrt-active-bg, #ffffff);
    color: var(--wrt-active-color, #428bca);
}
.wrt-modern__tab[aria-selected="true"] {
    background: var(--wrt-active-bg, #ffffff);
    color: var(--wrt-active-color, #428bca);
}
.wrt-modern__tab:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(66, 139, 202, .5);
}
.wrt-modern__tab:focus:not(:focus-visible) {
    outline: none;
}
.wrt-modern__more-btn:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(66, 139, 202, .5);
}
.wrt-modern__more-btn:focus:not(:focus-visible) {
    outline: none;
}
.wrt-modern__panels {
    border: 1px solid var(--wrt-border-color, #81d742);
    border-top: none;
    background: var(--wrt-active-bg, #ffffff);
}
.wrt-modern__panel {
    display: none;
    padding: 16px;
    color: var(--wrt-content-color, #000000);
}
.wrt-modern__panel.is-active {
    display: block;
}
.wrt-modern__panel .wrt-modern__loading {
    opacity: .6;
    font-style: italic;
}
.wrt-modern__spinner {
    width: 26px;
    height: 26px;
    margin: 24px auto;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, .12);
    border-top-color: var(--wrt-active-color, #428bca);
    animation: wrt-modern-spin .7s linear infinite;
}
@keyframes wrt-modern-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Horizontal ---------- */
.wrt-modern--horizontal {
    position: relative;
    isolation: isolate;
}
.wrt-modern--horizontal[data-scrollable="1"] {
    overflow: hidden;
}
.wrt-modern--horizontal .wrt-modern__nav {
    border-bottom: 1px solid var(--wrt-border-color, #81d742);
}
.wrt-modern--horizontal[data-scrollable="1"] .wrt-modern__nav {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.wrt-modern--horizontal[data-scrollable="1"] .wrt-modern__nav::-webkit-scrollbar {
    display: none;
    height: 0;
}
.wrt-modern--horizontal[data-scrollable="0"] .wrt-modern__nav {
    overflow: hidden;
    flex-wrap: nowrap;
}
.wrt-modern__more-btn {
    display: none;
    flex: 0 0 auto;
    border: 1px solid var(--wrt-border-color, #81d742);
    background: var(--wrt-inactive-bg, #00aadd);
    color: var(--wrt-tab-color, #ffffff);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
}
.wrt-modern__more-btn.is-visible {
    display: block;
}
.wrt-modern__more-btn:hover {
    background: var(--wrt-active-bg, #ffffff);
    color: var(--wrt-active-color, #428bca);
}
.wrt-modern__more-menu {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    min-width: 200px;
    max-height: 320px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #ffffff !important;
    border: 1px solid var(--wrt-border-color, #81d742);
    border-radius: 0;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}
.wrt-modern--tabstyle-pills .wrt-modern__more-menu {
    border-radius: 16px;
    background-color: #f0f0f1 !important;
}
.wrt-modern--tabstyle-pills .wrt-modern__more-menu .wrt-modern__tab {
    background-color: transparent !important;
    background-image: none !important;
    color: #50575e !important;
}
.wrt-modern--tabstyle-pills .wrt-modern__more-menu .wrt-modern__tab:hover,
.wrt-modern--tabstyle-pills .wrt-modern__more-menu .wrt-modern__tab[aria-selected="true"] {
    background-color: #ffffff !important;
    background-image: none !important;
    color: var(--wrt-active-color, #428bca) !important;
}
.wrt-modern__more-menu.is-open {
    display: block;
}
.wrt-modern__more-menu .wrt-modern__tab {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--wrt-border-color, #81d742);
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    background-image: linear-gradient(var(--wrt-inactive-bg, #ffffff), var(--wrt-inactive-bg, #ffffff));
    color: var(--wrt-tab-color, #1e1e1e);
}
.wrt-modern__more-menu .wrt-modern__tab:hover,
.wrt-modern__more-menu .wrt-modern__tab[aria-selected="true"] {
    background-color: #ffffff;
    background-image: linear-gradient(var(--wrt-active-bg, #f0f0f1), var(--wrt-active-bg, #f0f0f1));
    color: var(--wrt-active-color, #428bca);
}
.wrt-modern__more-menu .wrt-modern__tab:last-child {
    border-bottom: none;
}
.wrt-modern__scroll-btn {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd !important;
    z-index: 3;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #333333 !important;
    font-weight: 700;
    background: #ffffff !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.wrt-modern__scroll-btn--next {
    left: auto;
    right: 0;
}
.wrt-modern--scrollable .wrt-modern__scroll-btn {
    display: flex;
}
.wrt-modern--scrollable .wrt-modern__nav {
    padding-left: 24px;
    padding-right: 24px;
    cursor: grab;
}
.wrt-modern__nav.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}
.wrt-modern__scroll-btn:hover:not(:disabled) {
    background: #f0f0f1 !important;
}
.wrt-modern__scroll-btn:disabled {
    background: #f0f0f1 !important;
    color: #333333 !important;
    cursor: default;
    opacity: 1 !important;
}
.wrt-modern--horizontal .wrt-modern__tab {
    flex: 0 0 auto;
    border-right: none;
}
.wrt-modern--horizontal .wrt-modern__tab:first-child {
    border-top-left-radius: 3px;
}
.wrt-modern--horizontal .wrt-modern__tab:last-child {
    border-right: 1px solid var(--wrt-border-color, #81d742);
}
.wrt-modern__active-cover {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    background: var(--wrt-active-bg, #ffffff);
    pointer-events: none;
    z-index: 2;
}
.wrt-modern--horizontal .wrt-modern__active-cover,
.wrt-modern--vertical .wrt-modern__active-cover {
    display: block;
}

/* ---------- Vertical ---------- */
.wrt-modern--vertical {
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}
.wrt-modern--vertical .wrt-modern__nav {
    flex-direction: column;
    flex: 0 0 220px;
}
.wrt-modern--vertical .wrt-modern__tab {
    border-bottom: none;
    border-right: none;
    text-align: left;
}
.wrt-modern--vertical .wrt-modern__tab:last-child {
    border-bottom: 1px solid var(--wrt-border-color, #81d742);
}
.wrt-modern--vertical .wrt-modern__panels {
    flex: 1 1 auto;
    border-left: 1px solid var(--wrt-border-color, #81d742);
    border-top: 1px solid var(--wrt-border-color, #81d742);
}
@media only screen and (max-width: 768px) {
    .wrt-modern--vertical.wrt-modern--mobile-accordion {
        flex-direction: column;
        overflow: visible;
    }
    .wrt-modern--vertical.wrt-modern--mobile-accordion .wrt-modern__nav {
        flex-direction: column;
        overflow: visible;
        border-bottom: none;
        width: 100%;
        flex: 1 1 auto;
    }
    .wrt-modern--vertical.wrt-modern--mobile-accordion .wrt-modern__tab {
        display: block;
        width: 100%;
        text-align: left;
        border: 1px solid var(--wrt-border-color, #81d742);
        border-top: none;
        position: relative;
    }
    .wrt-modern--vertical.wrt-modern--mobile-accordion .wrt-modern__tab:first-child {
        border-top: 1px solid var(--wrt-border-color, #81d742);
    }
    .wrt-modern--vertical.wrt-modern--mobile-accordion .wrt-modern__tab::after {
        content: "+";
        position: absolute;
        right: 16px;
    }
    .wrt-modern--vertical.wrt-modern--mobile-accordion .wrt-modern__tab[aria-selected="true"]::after {
        content: "\2212";
    }
    .wrt-modern--vertical.wrt-modern--mobile-accordion .wrt-modern__panel {
        border: 1px solid var(--wrt-border-color, #81d742);
        border-top: none;
        background: var(--wrt-active-bg, #ffffff);
    }
    .wrt-modern--vertical.wrt-modern--mobile-accordion .wrt-modern__panels {
        display: none;
    }
    .wrt-modern--vertical.wrt-modern--mobile-accordion .wrt-modern__active-cover {
        display: none;
    }
}

/* ---------- Accordion ---------- */
.wrt-modern--accordion .wrt-modern__item {
    border: 1px solid var(--wrt-border-color, #81d742);
    border-top: none;
}
.wrt-modern--accordion .wrt-modern__item:first-child {
    border-top: 1px solid var(--wrt-border-color, #81d742);
}
.wrt-modern--accordion .wrt-modern__tab {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    position: relative;
}
.wrt-modern--accordion .wrt-modern__tab::after {
    content: "+";
    position: absolute;
    right: 16px;
}
.wrt-modern--accordion .wrt-modern__tab[aria-selected="true"]::after {
    content: "\2212";
}
.wrt-modern--accordion .wrt-modern__panel {
    border: none;
    background: var(--wrt-active-bg, #ffffff);
}

/* ---------- Tab Styles (Pro) ---------- */

/* Underline / Line — plain text, sliding bar under the active tab */
.wrt-modern--tabstyle-underline .wrt-modern__tab {
    background: transparent !important;
    border: none !important;
    /* Deliberately NOT var(--wrt-tab-color): that color is calibrated
       for text sitting on the theme's colored tab background, which
       this style removes — reusing it here often makes the text nearly
       invisible against the page background (e.g. white-on-white). */
    color: #50575e;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
}
.wrt-modern--tabstyle-underline .wrt-modern__tab:hover {
    background: transparent !important;
    color: var(--wrt-active-color, #428bca);
}
.wrt-modern--tabstyle-underline .wrt-modern__tab[aria-selected="true"] {
    background: transparent !important;
    color: var(--wrt-active-color, #428bca);
    border-bottom-color: var(--wrt-active-color, #428bca) !important;
}
.wrt-modern--tabstyle-underline.wrt-modern--horizontal .wrt-modern__nav {
    border-bottom: 1px solid #e0e0e0 !important;
}
.wrt-modern--tabstyle-underline .wrt-modern__more-btn {
    border: none !important;
    background: transparent !important;
    color: #50575e !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
}
.wrt-modern--tabstyle-underline .wrt-modern__more-btn:hover,
.wrt-modern--tabstyle-underline .wrt-modern__more-btn[aria-expanded="true"] {
    background: transparent !important;
    color: var(--wrt-active-color, #428bca) !important;
    border-bottom-color: var(--wrt-active-color, #428bca) !important;
}
.wrt-modern--tabstyle-underline .wrt-modern__more-menu .wrt-modern__tab {
    color: #50575e !important;
}
.wrt-modern--tabstyle-underline.wrt-modern--horizontal .wrt-modern__panels,
.wrt-modern--tabstyle-underline.wrt-modern--horizontal .wrt-modern__panel {
    border: none !important;
}
.wrt-modern--tabstyle-underline .wrt-modern__active-cover {
    display: none !important;
}

/* Pill / Segmented — rounded track, active tab fills solid with shadow */
.wrt-modern--tabstyle-pills.wrt-modern--horizontal .wrt-modern__nav {
    background: #f0f0f1;
    border-radius: 999px !important;
    border-bottom: none !important;
    padding: 4px;
    gap: 4px;
}
.wrt-modern--tabstyle-pills.wrt-modern--vertical .wrt-modern__nav {
    background: #f0f0f1;
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
}
.wrt-modern--tabstyle-pills .wrt-modern__more-btn {
    border: none !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #50575e !important;
}
.wrt-modern--tabstyle-pills .wrt-modern__more-btn:hover,
.wrt-modern--tabstyle-pills .wrt-modern__more-btn[aria-expanded="true"] {
    background: #ffffff !important;
    color: var(--wrt-active-color, #428bca) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.wrt-modern--tabstyle-pills:not(.wrt-modern--accordion) .wrt-modern__tab {
    border: none !important;
    border-radius: 999px !important;
    background-color: transparent !important;
    /* Deliberately NOT var(--wrt-tab-color): see Underline style note —
       that color is calibrated for the theme's solid tab background,
       which Pills removes. */
    color: #50575e;
}
.wrt-modern--tabstyle-pills:not(.wrt-modern--accordion) .wrt-modern__tab:hover {
    background-color: rgba(0, 0, 0, .05) !important;
}
.wrt-modern--tabstyle-pills:not(.wrt-modern--accordion) .wrt-modern__tab[aria-selected="true"] {
    background-color: #ffffff !important;
    background-image: linear-gradient(var(--wrt-active-bg, #ffffff), var(--wrt-active-bg, #ffffff)) !important;
    color: var(--wrt-active-color, #428bca);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.wrt-modern--tabstyle-pills.wrt-modern--horizontal .wrt-modern__panels {
    border: 1px solid var(--wrt-border-color, #e0e0e0);
    border-radius: 6px;
    margin-top: 10px;
}
.wrt-modern--tabstyle-pills.wrt-modern--vertical .wrt-modern__panels {
    border: 1px solid var(--wrt-border-color, #e0e0e0) !important;
    border-radius: 6px;
    margin-left: 14px;
}
.wrt-modern--tabstyle-pills .wrt-modern__active-cover {
    display: none !important;
}

/* Contained / Boxed — rectangular blocks, high-contrast active fill.
   Scoped away from accordion — the gap between rows + active fill don't
   suit a connected, stacked expanding list. */
.wrt-modern--tabstyle-contained:not(.wrt-modern--accordion) .wrt-modern__nav {
    gap: 6px;
    border-bottom: none !important;
}
.wrt-modern--tabstyle-contained:not(.wrt-modern--accordion) .wrt-modern__tab {
    border: 1px solid var(--wrt-border-color, #e0e0e0) !important;
}
.wrt-modern--tabstyle-contained:not(.wrt-modern--accordion) .wrt-modern__tab[aria-selected="true"] {
    background: var(--wrt-active-color, #428bca) !important;
    color: var(--wrt-active-bg, #ffffff) !important;
    border-color: var(--wrt-active-color, #428bca) !important;
}
.wrt-modern--tabstyle-contained:not(.wrt-modern--accordion) .wrt-modern__panels {
    border-top: 1px solid var(--wrt-border-color, #e0e0e0);
}
.wrt-modern--tabstyle-contained .wrt-modern__active-cover {
    display: none !important;
}



/* Dropdown ("More") menu rows always stay plain rectangles, regardless
   of any tab-style-specific border-radius (Pill's 999px, etc). Placed
   at the very end of the stylesheet — with equal specificity + !important
   on both sides, source order is the only remaining tiebreaker, so this
   has to be last to reliably win against every current and future style. */
.wrt-modern__more-menu .wrt-modern__tab {
    border-radius: 0 !important;
}
