.itte-root {
    --itte-active-line: #835008;
    --itte-active-line-size: 0px;
    --itte-divider: #e9e5dc;
    --itte-divider-size: 1px;
    --itte-mobile-tab-width: 168px;
    --itte-scrollbar-thumb: #835008;
    --itte-scrollbar-track: #eee9df;
    width: 100%;
    min-width: 0;
}

.itte-tabs-nav {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    box-sizing: border-box;
    background: #faf7ef;
    border: var(--itte-divider-size) solid var(--itte-divider);
    border-radius: 20px;
    overflow: hidden;
}

.itte-desktop-equal .itte-tab {
    flex: 1 1 0;
    min-width: 0;
}

.itte-desktop-auto .itte-tabs-nav {
    justify-content: center;
}

.itte-desktop-auto .itte-tab {
    flex: 0 0 auto;
}

.itte-tab {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-right: var(--itte-divider-size) solid var(--itte-divider);
    border-radius: 0;
    box-shadow: none;
    background: #faf7ef;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 154px;
    padding: 18px 20px;
    margin: 0;
    font: inherit;
    text-align: center;
    white-space: normal;
    box-sizing: border-box;
    transition: background-color .22s ease, color .22s ease;
}

.itte-tab:last-child {
    border-right: 0;
}

.itte-tab:hover {
    background-color: #835008;
}

.itte-tab.is-active {
    background-color: #835008;
}

.itte-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: var(--itte-active-line-size);
    background: var(--itte-active-line);
    opacity: 0;
    transform: scaleX(.45);
    transform-origin: center;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.itte-tab.is-active::before {
    opacity: 1;
    transform: scaleX(1);
}

.itte-tab:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
    z-index: 2;
}

.itte-icon-top .itte-tab {
    flex-direction: column;
}

.itte-icon-right .itte-tab {
    flex-direction: row-reverse;
}

.itte-tab-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #835008;
    background: #fff5df;
    padding: 12px;
    border-radius: 11px;
    box-sizing: border-box;
    transition: color .22s ease, background-color .22s ease;
}

.itte-tab-icon i {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.itte-tab-icon svg {
    display: block;
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.itte-tab-image {
    display: block;
    width: 30px;
    height: 30px;
    max-width: none;
    object-fit: contain;
}

.itte-tab-label {
    min-width: 0;
    color: #292724;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    transition: color .22s ease;
}

.itte-tab:hover .itte-tab-label,
.itte-tab.is-active .itte-tab-label {
    color: #ffffff;
}

.itte-tab:hover .itte-tab-icon,
.itte-tab.is-active .itte-tab-icon {
    color: #835008;
    background: #fff5df;
}

.itte-panels {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.itte-panel {
    width: 100%;
    min-width: 0;
}

.itte-panel[hidden] {
    display: none !important;
}

.itte-empty-template {
    padding: 24px;
    border: 1px dashed #c8ced8;
    background: #f7f8fa;
    color: #687080;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .itte-tabs-nav {
        justify-content: flex-start !important;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--itte-scrollbar-thumb) var(--itte-scrollbar-track);
        scroll-snap-type: x proximity;
    }

    .itte-tabs-nav::-webkit-scrollbar {
        height: 7px;
    }

    .itte-tabs-nav::-webkit-scrollbar-track {
        background: var(--itte-scrollbar-track);
    }

    .itte-tabs-nav::-webkit-scrollbar-thumb {
        background: var(--itte-scrollbar-thumb);
        border-radius: 999px;
    }

    .itte-tab,
    .itte-desktop-equal .itte-tab,
    .itte-desktop-auto .itte-tab {
        flex: 0 0 var(--itte-mobile-tab-width);
        width: var(--itte-mobile-tab-width);
        min-width: var(--itte-mobile-tab-width);
        scroll-snap-align: start;
        white-space: normal;
    }

    .itte-hide-scrollbar .itte-tabs-nav {
        scrollbar-width: none;
    }

    .itte-hide-scrollbar .itte-tabs-nav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itte-tab,
    .itte-tab::before,
    .itte-tab-icon,
    .itte-tab-label {
        transition: none !important;
    }
}
