/**
 * RDW Product Tabs — front-end styles.
 *
 * @package RDW_Store_Suite
 * @since   1.10.0
 */

.rdw-tabs { width: 100%; }

/* ---- Tab bar ---- */
.rdw-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e96e20;
    list-style: none;
    /* Allow horizontal scrolling when the overflow control is set to "nowrap",
       with the scrollbar hidden (swipe / drag still works). */
    overflow-x: auto;
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE / old Edge */
    -webkit-overflow-scrolling: touch;
}
.rdw-tabs__nav::-webkit-scrollbar { display: none; height: 0; width: 0; } /* Chrome / Safari */
.rdw-tabs__tab {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: #f3f4f6;
    color: #1f2a44;
    font: inherit;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 14px 22px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
    line-height: 1.2;
    flex-shrink: 0; /* keep full width when the bar scrolls horizontally */
}
.rdw-tabs__tab:hover { background: #e9ebef; }
.rdw-tabs__tab.is-active {
    background: #e96e20;
    color: #fff;
    box-shadow: inset 0 -3px 0 #e96e20;
}
.rdw-tabs__tab:focus-visible { outline: 2px solid #1f2a44; outline-offset: 2px; }

/* ---- Panels ---- */
.rdw-tabs__panels {
    background: #f6f7f9;
    padding: 28px;
    border-radius: 0 0 14px 14px;
}
.rdw-tabs__panel { color: #33404f; line-height: 1.65; }
.rdw-tabs__panel[hidden] { display: none; }
.rdw-tabs__panel > *:first-child { margin-top: 0; }
.rdw-tabs__panel > *:last-child { margin-bottom: 0; }
.rdw-tabs__empty { color: #8a94a3; font-style: italic; }

/* Description multi-column (column count set by the widget's Description control) */
.rdw-tabs__panel--desc { column-gap: 32px; }
.rdw-tabs__panel--desc img { max-width: 100%; height: auto; }
.rdw-tabs__panel--desc > *:first-child { margin-top: 0; }

/* ---- Spec table ---- */
.rdw-specs { display: flex; flex-direction: column; }
.rdw-specs__row {
    display: flex;
    gap: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid #e3e6ea;
}
.rdw-specs__row:last-child { border-bottom: 0; }
.rdw-specs__row--pair .rdw-specs__label {
    flex: 0 0 40%;
    max-width: 40%;
    font-weight: 700;
    color: #1f2a44;
}
.rdw-specs__row--pair .rdw-specs__value { flex: 1 1 auto; color: #33404f; }
/* Value-only rows: a clean full-width paragraph (no bullet, no columns). */
.rdw-specs__row--para { display: block; }
.rdw-specs__row--para .rdw-specs__para { display: block; color: #33404f; line-height: 1.7; }
.rdw-specs__row--statement .rdw-specs__statement { position: relative; padding-left: 20px; color: #33404f; }
.rdw-specs__row--statement .rdw-specs__statement::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e96e20;
}

/* ---- FAQ accordion (line-separated, like the reference) ---- */
.rdw-faq { display: flex; flex-direction: column; gap: 0; }
.rdw-faq__group {
    margin: 26px 0 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1f2a44;
}
.rdw-faq__group:first-child { margin-top: 0; }
.rdw-faq__item {
    background: transparent;
    border: 0;
    border-bottom: 2px solid #e6b800; /* gold divider under each item */
    border-radius: 0;
}
.rdw-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    font-size: 18px;
    color: #1f2a44;
    padding: 20px 2px;
    cursor: pointer;
    line-height: 1.4;
}
/* Keep the FAQ question button transparent in EVERY state. The active theme
   paints `[type="button"]:hover, [type="button"]:focus { background: #cc3366 }`,
   and the FAQ question is a <button type="button"> that KEEPS focus after being
   clicked — so an OPEN item showed a pink fill, and hovering any question showed
   pink too. Force it transparent (item too) so no fill appears in hover, focus,
   active or open states. */
.rdw-tabs .rdw-faq .rdw-faq__q,
.rdw-tabs .rdw-faq .rdw-faq__q:hover,
.rdw-tabs .rdw-faq .rdw-faq__q:focus,
.rdw-tabs .rdw-faq .rdw-faq__q:focus-visible,
.rdw-tabs .rdw-faq .rdw-faq__q:active,
.rdw-tabs .rdw-faq .rdw-faq__item.is-open .rdw-faq__q,
.rdw-tabs .rdw-faq .rdw-faq__item:hover,
.rdw-tabs .rdw-faq .rdw-faq__item.is-open:hover { background: transparent !important; }
.rdw-faq__icon {
    flex: 0 0 auto;
    position: relative;
    width: 22px;
    height: 22px;
    color: #1f2a44;
    transition: transform .25s ease;
}
.rdw-faq__icon::before,
.rdw-faq__icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 2px;
}
.rdw-faq__icon::before { left: 0; top: 10px; width: 22px; height: 2px; }  /* horizontal bar */
.rdw-faq__icon::after  { left: 10px; top: 0; width: 2px; height: 22px; }  /* vertical bar */
.rdw-faq__q[aria-expanded="true"] .rdw-faq__icon { transform: rotate(45deg); } /* + becomes x */
.rdw-faq__a {
    padding: 0 2px 22px;
    color: #55606e;
    line-height: 1.7;
}
.rdw-faq__a[hidden] { display: none; }
.rdw-faq__a > *:first-child { margin-top: 0; }
.rdw-faq__a > *:last-child { margin-bottom: 0; }

/* ---- Blog-post FAQ section (title = question, ACF answer, Read More button) ---- */
.rdw-faq--blog { margin-top: 8px; }
.rdw-faq__group--blog { margin-top: 30px; }
.rdw-faq__more-wrap { margin-top: 14px; }
.rdw-faq__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffca00;
    color: #1a2744;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 999px;
    line-height: 1;
    transition: background-color .15s ease, color .15s ease, filter .15s ease, transform .15s ease;
}
.rdw-faq__more:hover { filter: brightness(.95); transform: translateY(-1px); color: #1a2744; }
.rdw-faq__more-arrow { font-size: 18px; line-height: 1; font-weight: 700; }

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .rdw-tabs__tab { padding: 11px 15px; font-size: 13px; }
    .rdw-tabs__panels { padding: 18px; }
    .rdw-specs__row { flex-direction: column; gap: 4px; }
    .rdw-specs__row--pair .rdw-specs__label { flex-basis: auto; max-width: none; }
}

/* ---------- Downloads tab (v1.17.0) ---------- */
.rdw-downloads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rdw-downloads__item { margin: 0; }
.rdw-downloads__link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e6e8ec; border-radius: 10px;
    background: #f7f8fa; color: inherit; text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.rdw-downloads__link:hover { background: #fdf3d6; }
.rdw-downloads__icon { width: 24px; height: 24px; flex: 0 0 auto; color: #0d3577; }
.rdw-downloads__title { flex: 1 1 auto; font-weight: 600; }
.rdw-downloads__meta {
    flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: #8a8f99; border: 1px solid currentColor; border-radius: 4px; padding: 2px 6px;
}
