/* -------------------------------------------------------
   KH Tabs Block — Frontend styles v2.4.6
------------------------------------------------------- */

.kh-tabs {
    margin-bottom: 24px;
    position: relative;
}

/* Outer nav row — arrows + scrollable bar sit side by side */
.kh-tab-bar-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}

/* Tab bar — scrollable, takes remaining space */
.kh-tab-bar {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    flex: 1;
    margin-bottom: 0;
}
.kh-tab-bar::-webkit-scrollbar { display: none; }

/* Arrow buttons — chevron-only (no circle), sit outside the bar */
.kh-tab-arrow {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    color: #439bc0 !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    align-self: center !important;
    transition: color 0.15s ease;
    box-shadow: none !important;
}
.kh-tab-arrow:hover         { color: #347ea0 !important; background: transparent !important; }
.kh-tab-arrow:focus,
.kh-tab-arrow:active,
.kh-tab-arrow:focus-visible { outline: none !important; box-shadow: none !important; }
.kh-tab-arrow[hidden]       { display: none; }

/* Tab buttons */
.kh-tab-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0 !important;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.15s ease;
    font-family: inherit;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}
.kh-tab-btn:hover,
.kh-tab-btn:focus,
.kh-tab-btn:active,
.kh-tab-btn:focus-visible {
    color: #439bc0;
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.kh-tab-btn.is-active {
    color: #439bc0;
    border-bottom-color: #439bc0;
    background: none !important;
}

/* Panels — opacity-based hiding so child elements cannot escape */
.kh-tab-panel { width: 100%; }

/* Mobile dropdown */
.kh-tab-select {
    display: none;
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #313131;
    background: #fff;
    border: 1.5px solid #439bc0;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    -webkit-appearance: auto;
    appearance: auto;
}

@media (max-width: 640px) {
    .kh-tab-bar-wrap { display: none; }
    .kh-tab-select   { display: block; }
}
