.tabs-container {
    width: 100%;
    position: relative;
    overflow: visible;
}

.mobile-select-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: static;
    overflow: visible;
    will-change: auto;
}

.mobile-select-label {
    font-size: 17.143px;
    font-weight: 600;
    color: #101820;
}

/* Mobile Select - shown on mobile only */
.tabs-container .tabs-select {
    display: block;
    width: 100%;
    max-width: 237px;
    height: 36px;
    padding: 0 40px 0 16px;
    font-size: 17.143px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    color: #46494F;
    background-color: #fff;
    border: 1px solid #46494F;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232020B3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 20px;
    box-sizing: border-box;
}

.tabs-container .tabs-select:focus {
    outline: 1px solid #2020B3;
    outline-offset: 1px;
}

/* Desktop Tabs - hidden on mobile */
.tabs-container .tabs-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}

/* Spaced tabs - puts special tab on opposite side */
.tabs-container .tabs-list.tabs-list-spaced {
    justify-content: space-between;
}

/* Main tabs group container */
.tabs-container .tabs-group-main {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}




/* Show tabs list on desktop, hide select */
@media (min-width: 768px) {
    .tabs-container .mobile-select-container {
        display: none;
    }

    .tabs-container .tabs-list {
        display: flex;
    }


}

.tabs-container .tabs-list .tab {
    list-style: none;
}

@media (max-width: 768px) {

    .tabs-container .tabs-list {
        width: 100%;
        gap: 8px;
        align-items: stretch;
    }

    .tabs-container .tabs-list.tabs-list-spaced {
        flex-wrap: wrap;
    }

    .tabs-container .tabs-group-main {
        width: 100%;
        gap: 8px;
    }

    .tabs-container .tabs-list .tab {
        flex: 1;
        min-width: 0;
        display: flex;
    }

    /* Hide special tab on mobile - shown as mobile-special-tab button instead */
    .tab-special {
        display: none !important;
    }

    .hide-on-mobile {
        display: none !important;
    }
}

/* Mobile Special Tab - Only visible on mobile */
.mobile-special-tab {
    display: none;
}

@media (max-width: 768px) {
    .mobile-special-tab {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px 12px;
        background-color: #E8E8FF;
        color: #101820;
        border: none;
        border-radius: 38px;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 34.286px;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .mobile-special-tab:hover {
        background-color: #2020B3;
        color: #fff;
    }

    .mobile-special-tab.active {
        background-color: #2020B3;
        color: #fff;
    }
}

.tabs-container .tab-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;

    max-width: fit-content;

    border: none;
    padding: 3px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #101820;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;

    border-radius: 60px;
    background: #E8E8FF;

    margin-bottom: -2px;
    position: relative;
}

@media (max-width: 768px) {
    .tabs-container .tab-link {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 15px;
        width: 100%;
        height: 100%;
        max-width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
    }
}

/* Tab icon styles */
.tabs-container .tab-link .tab-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tabs-container .tab-link:hover {
    color: #fff;
    background-color: #2020B3;
}

.tabs-container .tab-link.active {
    color: #fff;
    background-color: #2020B3;
    /* Use text-shadow to simulate bold without changing width */
    text-shadow: 0.3px 0 0 currentColor, -0.3px 0 0 currentColor;
}

/* Primary tab variant - same colors as regular tabs */
.tabs-container .tab-link.tab-link-primary {
    background: #E8E8FF;
    color: #101820;
}

.tabs-container .tab-link.tab-link-primary:hover {
    background-color: #2020B3;
    color: #fff;
}

.tabs-container .tab-link.tab-link-primary.active {
    background-color: #2020B3;
    color: #fff;
}

/* Special tab positioning */
.tabs-container .tab-special {
    margin-right: auto;
}

.tabs-container .tabs-content {
    padding: 24px 0;
}

.tabs-container .tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tabs-container .tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
