/* ITS Tabs Widget */

/* ========================================
   HORIZONTAL ORIENTATION (default)
   ======================================== */

/* Tab row */
.its-tabs--horizontal .its-tabs__list {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid currentColor;
}

/* Tab button */
.its-tabs--horizontal .its-tabs__tab {
    appearance: none;
    border: 1px solid currentColor;
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 12px 16px;
    margin: 0;
    line-height: 1.25;
    cursor: pointer;
    position: relative;
    top: 1px;
    /* background: none; */
    font-family: inherit;
    font-size: inherit;
    /* color: inherit; */
}

/* Active tab */
.its-tabs--horizontal .its-tabs__tab[aria-selected="true"] {
    border-bottom: 1px solid transparent;
}

/* Panel area */
.its-tabs--horizontal .its-tabs__panels {
    border: 1px solid currentColor;
    border-top: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 18px;
    /* background: none; */
}

/* ========================================
   VERTICAL ORIENTATION
   ======================================== */

.its-tabs--vertical {
    display: flex;
    align-items: stretch;
}

.its-tabs--vertical .its-tabs__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border: none;
    flex-shrink: 0;
    width: 400px;
    max-width: 400px;
    overflow: visible;
}

.its-tabs--vertical .its-tabs__tab {
    appearance: none;
    border: none;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    padding: 12px 16px;
    margin: 0;
    line-height: 1.25;
    cursor: pointer;
    position: relative;
    left: 0;
    top: 0;
    /* background: none; */
    font-family: inherit;
    font-size: inherit;
    /* color: inherit; */
    text-align: left;
    overflow: visible;
}

.its-tabs--vertical .its-tabs__tab--active::after {
    content: "\f0da";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-size: 22px;
}

.its-tabs--vertical .its-tabs__tab:last-child {
    border-bottom: none;
}

.its-tabs--vertical .its-tabs__tab[aria-selected="true"] {
    border-right: none;
}

.its-tabs--vertical .its-tabs__panels {
    /* border: none; */
    /* border: 1px solid currentColor; */
    border-radius: 0;
    padding: 18px;
    background: none;
    flex-grow: 1;
    margin-left: 20px;
}

/* ========================================
   SHARED STYLES
   ======================================== */

.its-tabs__panel[hidden] {
    display: none !important;
}

/* ========================================
   ACCORDION (hidden on desktop)
   ======================================== */

.its-tabs-accordion {
    display: none;
}

.its-tabs-accordion__trigger {
    appearance: none;
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    padding: 10px 12px;
    margin: 0;
    line-height: 1.25;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
}

.its-tabs-accordion__panel {
    padding: 16px;
}

.its-tabs-accordion__panel[hidden] {
    display: none !important;
}

/* ========================================
   MOBILE (<= 767px)
   ======================================== */

@media (max-width: 767px) {
    /* Hide the desktop tabs, show the accordion */
    .its-tabs {
        display: none !important;
    }

    .its-tabs-accordion {
        display: block;
    }
}
