.item_part {
    display: flex;
    max-width: 1200px;
    padding: 24px;
    flex-direction: column;
    /* align-items: flex-start; */
    border-radius: 12px;
    border: 1px solid #3C3C3C;
    background: #212121;
    margin: 0 auto;
    margin-bottom: 32px;
}

.items_nav,
.nav-tabs {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    padding: 0 65px 0 0;
    margin-bottom: 16px;
}

.items_nav {
    padding-left: 65px;
}

.nav_link,
.nav-link {
    display: flex;
    padding: 12px 32px;
    align-items: center;
    font-family: 'Montserrat';
    line-height: normal;
    border-radius: 100px;
    background: #30303066;
    backdrop-filter: blur(4px);
    color: #FFF;
    white-space: nowrap;
    cursor: pointer;
    font-size: 16px;
}

.nav_link.active,
.nav-link.active {
    border: 1px solid var(--wiki-primary)52;
    background: #61e5b31f;
    color: var(--wiki-primary);
}

.item_head {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    padding: 0 0 16px;
    width: 100%;
}

.item_head > .item-icon {
    width: 64px;
    min-width: 64px;
    height: 64px;
}

.item_head > .item-icon img {
    width: 64px;
    min-width: 64px;
    height: 64px;
}

.soul_crystal_dropdown {
    display: inline-flex;
    vertical-align: middle;
}

.item_part .dropdown-menu {
    padding: 16px;
    border-color: #3C3C3C;
    background-color: #212121;
    min-width: 228px;
    font-size: 18px;
    border-radius: 6px;
    top: 16px;
    left: 16px;
}

.item_part .dropdown-menu.pos-right {
    left: auto;
    right: 16px;
}

.item_part .dropdown-menu.pos-bottom {
    top: auto;
    bottom: 16px;
}

.soul_crystal_dropdown_menu .item-name {
    border-bottom: 1px solid #3C3C3C;
    padding: 8px 0;
}

.soul_crystal_dropdown_menu .item-name:first-child {
    padding-top: 0;
}

.soul_crystal_dropdown_menu .item-name:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.soul_crystal_dropdown_menu .item-icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
}

.soul_crystal_step {
    width: 24px;
    text-align: center;
}

.soul_crystal_chance {
    color: var(--wiki-primary);
    margin-left: auto;
}

.soul_crystal_divider {
    background: url('data:image/svg+xml,<svg width="14" height="8" viewBox="0 0 14 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M-0.003606 3.69231L11.8402 3.69231L8.60947 0.461538L9.01562 -1.74846e-07L13.0156 4L9.01562 8L8.60947 7.53846L11.8402 4.30769L-0.00360603 4.30769L-0.003606 3.69231Z" fill="%237C7C7C"/></svg>');
    width: 13px;
    height: 8px;
    display: inline-flex;
    vertical-align: middle;
}

.item_head .item-name__content {
    font-size: 24px;
    line-height: normal;
}

.item_head h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--wiki-primary);
}

.item_title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-name__type {
    color: #ffffff66;
    line-height: normal;
}

.item-name__class-2 {
	color: #FFFF00;
}

.item-name__class-3 {
	color: #FF4141;
}

.item-name__class-4 {
	color: #1F9FFA;
}

.item-name__class-5 {
	color: #E200E2;
}

.item_title_location {
    margin-left: auto;
    display: flex;
}

.location_button {
    border-radius: 100px;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    display: flex;
    padding: 10px 24px;
}

.location_pin {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    margin-right: 8px;
    background-color: #1F3D32;
    border: 1px solid #33FFA7;
}

.location_dropdown {
    top: 55px;
    right: 0;
    left: auto;
    padding: 16px;
}

.location_button img {
    height: 20px;
}

.location_additional {
    opacity: .32;
}

.stat_line {
    display: flex;
    flex-direction: row;
    gap: 64px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid #3C3C3C;
    width: 100%;
}

.stat_line:last-child {
    padding-bottom: 0;
}

.stat_name {
    width: 360px;
    min-width: 360px;
    color: #ffffffa3;
    line-height: normal;
}

#result-stats {
    width: 100%;
}

.stat_line .item-name__additional {
    color: var(--wiki-primary);
}

.stat_describe {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.stat_restrictions {
    flex-direction: row;
}

.collapser {
    overflow: hidden;
    max-height: 96px;
    position: relative;
}

.hidden-toggler {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(35,35,35,0.8), rgb(35,35,35));
    height: 32px;
    line-height: 32px;
    cursor: pointer;
}

.item-name {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #FFF;
    line-height: normal;
    vertical-align: middle;
    text-decoration: none !important;
}

.find_block .item-name {
    font-size: 18px;
    gap: 16px;
}

.item-name__small {
    gap: 8px;
    font-size: 13px;
}

.item-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.item-icon img {
    vertical-align: initial;
}

.item-name__small .item-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.item-icon .item-icon__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

.item-name__additional {
    margin-left: 4px;
    color: var(--wiki-primary);
}

.item-grade,
.item-class {
    padding: 4px;
    border-radius: 2px;
    background: #293832;
    color: #FFF;
    font-size: 14px;
    line-height: 10px;
    height: 18px;
    display: inline-block;
}

.item_restrictions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item_restriction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.skill_dropdown {
    padding: 16px;
}

.skill_dropdown .skill_description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #3C3C3C;
}

.drop_group_divider {
    font-size: 14px;
    opacity: .7;
    margin: 16px 0 8px;
}

.item_part_additional .item_head {
    border-bottom: 1px solid #3C3C3C;
}

.recipe_content {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
    padding: 24px 0;
    width: 100%;
}

.recipe_content > div {
    width: 50%;
}

.recipe_content_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.recipe_content_header input {
    border-radius: 5px;
    background: #2F2F2F;
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    padding: 4px 24px;
    text-align: center;
    color: #fff;
}

.recipe_result {
    border-radius: 12px;
    background: #2A2A2A;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.recipe_result .stat_line {
    border-top: none;
    border-bottom: 1px solid #3C3C3C;
}

.recipe_result .stat_line:last-child {
    padding-bottom: 16px;
}

.recipe_result .stat_name {
    color: #fff;
    width: auto;
    min-width: auto;
}

.recipe_result .stat_value {
    margin-left: auto;
}

.recipe_result .stat_describe {
    width: auto;
    display: inline-flex;
    margin-left: auto;
}

.accordion .accordion {
    padding-left: 32px;
}

.accordion-header {
    border-bottom: 1px solid #3C3C3C;
    padding: 16px 0;
}

.accordion-button {
    font-family: inherit;
    background: inherit;
    font-size: inherit;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
}

button.accordion-button {
    cursor: pointer;
}

.accordion-button__right {
    margin-left: auto;
}

button.accordion-button::after {
    display: flex;
    margin-left: 8px;
    content: url('data:image/svg+xml,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.945312 0.941406L4.94531 4.94141L8.94531 0.941406" stroke="white" stroke-width="1.33333" stroke-linecap="square" stroke-linejoin="round"/></svg>');
    width: 10px;
    height: 6px;
}

.accordion-collapse.collapse {
    display: none;
}

.skill_table .flex-cell {
    width: 50%;
}

.skill_table .flex-cell:first-child {
    padding-right: 64px;
}

.skill_enchant_nav {
    border-bottom: #3C3C3C solid 1px;
    padding-bottom: 24px;
}

.skill_enchant_icon {
    width: 24px;
    height: 24px;
    background-size: 46px;
    margin-right: 12px;
}

@media (max-width: 1330px) {
    .items_nav {
        padding: 0;
    }

    .item_head > .item-icon {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .item_head > .item-icon img {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .item_head .item-name__content {
        font-size: 16px;
    }

    .item_title {
        gap: 6px;
    }

    .soul_crystal_dropdown .item-icon {
        width: 24px;
        height: 24px;
    }

    .soul_crystal_dropdown .item-icon {
        width: 24px;
        min-width: 24px;
        height: 24px;
    }

    .item_title_location {
        display: none;
    }

    .stat_line {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .stat_name {
        width: auto;
        min-width: auto;
    }

    .stat_restrictions {
        flex-direction: column;
    }

    .item_restriction img {
        width: 16px;
        height: 16px;
    }

    .nav-link,
    .nav_link {
        padding: 6px 14px;
        font-size: 14px;
    }
    
    .recipe_content {
        flex-direction: column;
    }

    .recipe_content > div {
        width: 100%;
    }

    .skill_table .flex-cell {
        width: 100%;
    }

    .skill_table .flex-cell:first-child {
        padding-right: 0;
    }
}

.sorter {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sorter::after {
    content: '';
    width: 10px;
    height: 10px;
    display: block;
    background: url(../assets/drop_arrow.svg) center / contain no-repeat;
    filter: brightness(0) saturate(100%) invert(100%) sepia(5%) saturate(21%) hue-rotate(146deg) brightness(105%) contrast(105%);
    transition: all 0.3s ease;
}

.sorter.asc::after {
    transform: rotate(180deg);
}