/* ITS Tabs Stacked Widget */

/* ========================================
   GROUP LAYOUT
   ======================================== */

.its-tabs-stacked__wrapper {
    display: flex;
    flex-direction: column;
}

.its-tabs-stacked__group {
    margin-bottom: 2em;
}

.its-tabs-stacked__group:last-child {
    margin-bottom: 0;
}

.its-tabs-stacked__group-title {
    margin: 0 0 0.5em 0;
}

/* ========================================
   TAB LAYOUT (Vertical)
   ======================================== */

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

.its-tabs-stacked__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-stacked__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-stacked__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-stacked__tab:last-child {
    border-bottom: none;
}

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

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

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

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

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

@media (max-width: 767px) {
    .its-tabs-stacked {
        flex-direction: column;
    }

    .its-tabs-stacked__list {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .its-tabs-stacked__tab {
        width: 100%;
        border-bottom: 1px solid currentColor;
        padding: 10px 12px;
    }

    .its-tabs-stacked__tab:last-child {
        border-bottom: 1px solid currentColor;
    }

    .its-tabs-stacked__tab--active::after {
        display: none;
    }

    .its-tabs-stacked__panels {
        padding: 16px;
        width: 100%;
        margin-left: 0;
    }
}
