.header-search-v2 {
    position: relative;
    width: 404px;
    margin-left: 64px;
}

.header-search-v2__form {
    margin: 0;
}

.header-search-v2__input {
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    padding: 0 45px 0 12px;
    border: 1px solid #C9CDD2;
    border-radius: 4px;
    background: #fff;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0;
    color: #131518;
    outline: none;
}

.header-search-v2__input::placeholder {
    color: #99A1A8;
    opacity: 1;
}

.header-search-v2__input:focus {
    border-color: #131518;
}

.header-search-v2__button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent url('../../resources/images/search/icon_search_v2.svg') no-repeat center / 20px 20px;
    cursor: pointer;
}

.header-search-v2__button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.header-search-tab-layer-v2 {
    position: absolute;
    top: 40px;
    left: 0;
    display: flex;
    box-sizing: border-box;
    width: 645px;
    padding: 24px 16px 24px 16px;
    border: 1px solid #E5E7EA;
    border-radius: 10px;
    background: #fff;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    z-index: 1000;
}

.header-search-tab-layer-v2--only-popular {
    width: 404px;
    padding-right: 16px;
}

.header-search-tab-layer-v2--only-popular .header-search-tab-layer-v2__col--recent {
    display: none;
}

.header-search-tab-layer-v2__col {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    flex: 1 1 50%;
    min-width: 0;
}

.header-search-tab-layer-v2__col[hidden] {
    display: none;
}

.header-search-tab-layer-v2__col--popular {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #E5E7EA;
}

.header-search-tab-layer-v2--only-popular .header-search-tab-layer-v2__col--popular {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}

.header-search-tab-layer-v2__col-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.header-search-tab-layer-v2__title {
    padding-left: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: #131518;
}

.header-search-tab-layer-v2__clear-all {
    align-self: flex-start;
    margin: auto 0 0;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #757D86;
    font-size: 13px;
    line-height: 18px;
    text-decoration: underline;
    cursor: pointer;
}

.header-search-tab-layer-v2__aggregated-at {
    align-self: flex-start;
    margin-top: auto;
    padding: 0 10px;
    color: #757D86;
    font-size: 13px;
    line-height: 18px;
}

.header-search-tab-layer-v2__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-search-tab-layer-v2__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 20px;
}

.header-search-tab-layer-v2__item:hover {
    background: #F6F7F9;
}

.header-search-tab-layer-v2__keyword {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: #131518;
    text-align: left;
    cursor: pointer;
}

.header-search-tab-layer-v2__rank {
    flex: 0 0 28px;
    font-weight: 400;
    color: #99A1A8;
}

.header-search-tab-layer-v2__keyword-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search-tab-layer-v2__rank-diff {
    flex: 0 0 32px;
    margin-left: 8px;
    height: 12px;
}

.header-search-tab-layer-v2__rank-diff--up {
    background: url('../../resources/images/search/icon_arrow_up.svg') no-repeat right center / 12px 12px;
}

.header-search-tab-layer-v2__rank-diff--down {
    background: url('../../resources/images/search/icon_arrow_down.svg') no-repeat right center / 12px 12px;
}

.header-search-tab-layer-v2__rank-diff--dash {
    background: url('../../resources/images/search/icon_arrow_dash.svg') no-repeat right center / 12px 12px;
}

.header-search-tab-layer-v2__remove {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent url('../../resources/images/search/icon_close_v2.svg') no-repeat center / 14px 14px;
    cursor: pointer;
}

.header-search-tab-layer-v2__col--loading .header-search-tab-layer-v2__title {
    width: 140px;
    height: 22px;
    margin-left: 10px;
    padding: 0;
    color: transparent;
    background-color: #F0F1F4;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.header-search-tab-layer-v2__skeleton-row {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
}

.header-search-tab-layer-v2__skeleton-box {
    display: inline-block;
    height: 20px;
    background-color: #F0F1F4;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.header-search-tab-layer-v2__col--loading .header-search-tab-layer-v2__title::before,
.header-search-tab-layer-v2__skeleton-box::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #F0F1F4 0%, #FFFFFF 50%, #F0F1F4 100%);
    animation: header-search-skeleton-shimmer 1.5s infinite;
}

.header-search-tab-layer-v2__skeleton-box--rank,
.header-search-tab-layer-v2__skeleton-box--diff {
    width: 20px;
}

.header-search-tab-layer-v2__skeleton-box--text-60 {
    width: 60px;
}

.header-search-tab-layer-v2__skeleton-box--text-94 {
    width: 94px;
}

@keyframes header-search-skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header-search-auto-layer-v2 {
    position: absolute;
    top: 40px;
    left: 0;
    box-sizing: border-box;
    width: 404px;
    padding: 16px;
    border: 1px solid #E5E7EA;
    border-radius: 10px;
    background: #fff;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    z-index: 1000;
}

.header-search-auto-layer-v2__top,
.header-search-auto-layer-v2__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-search-auto-layer-v2__top:empty,
.header-search-auto-layer-v2__list:empty {
    display: none;
}

.header-search-auto-layer-v2__divider {
    height: 1px;
    margin: 12px 8px;
    background: #E5E7EA;
}

.header-search-auto-layer-v2__divider[hidden] {
    display: none;
}

.header-search-auto-layer-v2__item {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 8px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    line-height: 20px;
    color: #131518;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.header-search-auto-layer-v2__item:hover,
.header-search-auto-layer-v2__item--focused {
    background: #F6F7F9;
}

.header-search-auto-layer-v2__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search-auto-layer-v2__highlight {
    color: #04A94E;
    font-weight: 700;
}

.header-search-auto-layer-v2__badge {
    flex: 0 0 auto;
    padding: 2px 4px;
    border-radius: 2px;
    background: #F0F1F4;
    color: #50585F;
    font-size: 12px;
    line-height: 16px;
}

