.rs-premium-header {
    --rs-blue: #1f66ff;
    --rs-blue-deep: #0d2f78;
    --rs-navy: #071a3f;
    --rs-ink: #17223b;
    --rs-muted: #738098;
    --rs-line: #dfe7f5;
    --rs-glass: rgba(255, 255, 255, .86);
    direction: rtl;
}

.rs-premium-header .rs-premium-shell {
    position: relative;
    z-index: 100;
    padding: 0;
    overflow: visible;
}

/* Top service bar */
.rs-premium-header .rs-header-service-bar {
    min-height: 48px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 18px;
    overflow: hidden;
    border: 1px solid rgba(143, 177, 255, .2);
    border-radius: 18px 18px 10px 10px;
    background:
        radial-gradient(circle at 10% -40%, rgba(64, 124, 255, .52), transparent 34%),
        linear-gradient(104deg, #06142f 0%, var(--rs-navy) 53%, #0d3475 100%);
    box-shadow: 0 12px 28px rgba(7, 26, 63, .19), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.rs-premium-header .rs-header-service-item {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}

.rs-premium-header .rs-header-service-item + .rs-header-service-item {
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.rs-premium-header .rs-header-service-item i {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.rs-premium-header .rs-header-service-item svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.rs-premium-header .rs-header-service-item b {
    overflow: hidden;
    font-weight: 550;
    text-overflow: ellipsis;
}

/* New desktop header structure */
.rs-premium-header .rs-header-main-card {
    position: relative;
    z-index: 22;
    padding: 14px 14px 12px;
    overflow: visible;
    border: 1px solid rgba(196, 210, 235, .72);
    border-radius: 26px;
    background:
        radial-gradient(circle at 7% 0, rgba(31, 102, 255, .075), transparent 27%),
        linear-gradient(138deg, rgba(255, 255, 255, .97), rgba(247, 250, 255, .9));
    box-shadow: 0 23px 60px rgba(28, 54, 105, .115), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    backdrop-filter: blur(20px) saturate(130%);
}

.rs-premium-header .rs-premium-main {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 330px;
    align-items: center;
    gap: 12px;
}

.rs-premium-header .rs-premium-logo-card,
.rs-premium-header .rs-premium-search-card {
    position: relative;
    z-index: 24;
    border: 1px solid var(--rs-line);
    background: var(--rs-glass);
    box-shadow: 0 10px 26px rgba(31, 57, 108, .065), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

.rs-premium-header .rs-premium-logo-card {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    border-radius: 20px;
    text-decoration: none;
}

.rs-premium-header .rs-premium-logo-card img {
    width: 100%;
    max-width: 158px;
    max-height: 88px;
    object-fit: contain;
    transition: transform .25s ease;
}

.rs-premium-header .rs-premium-logo-card:hover img {
    transform: scale(1.035);
}

.rs-premium-header .rs-premium-search-card {
    min-width: 0;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 9% 0, rgba(31, 102, 255, .065), transparent 34%),
        rgba(255, 255, 255, .78);
}

.rs-premium-header .rs-premium-search-wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.rs-premium-header .rs-premium-search-card .search-box {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    padding-block: 5px;
    padding-inline: 18px 5px;
    overflow: hidden;
    border: 1px solid #dce5f4;
    border-radius: 30px;
    background:
        linear-gradient(100deg, rgba(255, 255, 255, .98), rgba(247, 250, 255, .91)),
        rgba(255, 255, 255, .92);
    box-shadow:
        0 12px 30px rgba(29, 57, 116, .085),
        0 3px 9px rgba(31, 102, 255, .035),
        inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.rs-premium-header .rs-premium-search-card .search-box:focus-within {
    border-color: rgba(31, 102, 255, .38);
    background: rgba(255, 255, 255, .98);
    box-shadow:
        0 18px 42px rgba(31, 102, 255, .14),
        0 0 0 4px rgba(31, 102, 255, .065),
        inset 0 1px 0 #fff;
}

.rs-premium-header .rs-premium-search-card .ajax-search-input {
    min-width: 0;
    height: 50px;
    flex: 1;
    padding: 0 11px 0 6px;
    border: 0;
    outline: 0;
    direction: rtl;
    background: transparent;
    color: var(--rs-ink);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 450;
    line-height: 50px;
    text-align: right;
    -webkit-appearance: none;
    appearance: none;
}

.rs-premium-header .rs-premium-search-card .ajax-search-input::placeholder {
    color: #929caf;
    font-weight: 400;
    opacity: 1;
}

.rs-premium-header .rs-premium-search-card .search-btn {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    order: 2;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(140deg, #0d4ce0 4%, var(--rs-blue) 54%, #5d91ff 100%);
    box-shadow:
        0 11px 24px rgba(31, 102, 255, .34),
        0 0 0 4px rgba(31, 102, 255, .065),
        inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}

.rs-premium-header .rs-premium-search-card .search-btn:hover {
    box-shadow:
        0 14px 30px rgba(31, 102, 255, .42),
        0 0 0 5px rgba(31, 102, 255, .075),
        inset 0 1px 0 rgba(255, 255, 255, .32);
    transform: translateY(-1px) scale(1.015);
}

.rs-premium-header .rs-premium-search-card .search-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.rs-premium-header .rs-premium-search-card .ajax-search-results,
.rs-premium-header .rs-premium-search-card .search-results-body {
    width: 100%;
}

.rs-premium-header .rs-premium-search-card .search-results-body {
    border: 1px solid var(--rs-line);
    border-radius: 18px;
    box-shadow: 0 24px 54px rgba(24, 46, 94, .16);
}

/* Premium live-search panel (desktop and mobile header only). */
.rs-premium-header [data-rs-live-search] .ajax-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 1100;
    width: 100%;
    direction: rtl;
}

.rs-premium-header [data-rs-live-search] .ajax-search-results[hidden] {
    display: none !important;
}

.rs-premium-header [data-rs-live-search] .ajax-search-results .back {
    display: none;
}

.rs-premium-header [data-rs-live-search] .search-results-body {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(191, 207, 235, .78);
    border-radius: 18px;
    background: rgba(255, 255, 255, .975);
    box-shadow: 0 24px 54px rgba(20, 43, 91, .17), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    backdrop-filter: blur(20px) saturate(130%);
}

.rs-premium-header [data-rs-live-search] .ajax-search-results-content {
    max-height: 410px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 102, 255, .28) transparent;
}

.rs-premium-header [data-rs-live-search] .ajax-spinner {
    border-color: #e4ebf7;
    border-top-color: var(--rs-blue);
}

.rs-premium-header [data-rs-live-search] .ajax-spinner[hidden] {
    display: none;
}

.rs-premium-header .rs-live-search-section {
    padding: 5px;
}

.rs-premium-header .rs-live-search-section + .rs-live-search-section {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #e8eef7;
}

.rs-premium-header .rs-live-search-heading {
    margin: 0 5px 6px;
    color: #8490a5;
    font-size: 10.5px;
    font-weight: 600;
}

.rs-premium-header .rs-live-search-list {
    display: grid;
    gap: 3px;
}

.rs-premium-header .rs-live-search-product {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--rs-ink);
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.rs-premium-header .rs-live-search-product:hover,
.rs-premium-header .rs-live-search-product:focus-visible,
.rs-premium-header .rs-live-search-category:hover,
.rs-premium-header .rs-live-search-category:focus-visible {
    border-color: rgba(31, 102, 255, .14);
    outline: 0;
    background: #f3f7ff;
    transform: translateX(-2px);
}

.rs-premium-header .rs-live-search-media {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e7edf6;
    border-radius: 10px;
    background: #fff;
}

.rs-premium-header .rs-live-search-media:empty::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #cdd8ea;
    border-radius: 5px;
}

.rs-premium-header .rs-live-search-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rs-premium-header .rs-live-search-details {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.rs-premium-header .rs-live-search-title {
    overflow: hidden;
    color: #253149;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.65;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-premium-header .rs-live-search-price,
.rs-premium-header .rs-live-search-price * {
    color: var(--rs-blue);
    font-size: 11px;
    font-weight: 650;
}

.rs-premium-header .rs-live-search-price del {
    margin-left: 5px;
    color: #9aa5b7;
    font-weight: 450;
}

.rs-premium-header .rs-live-search-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rs-premium-header .rs-live-search-category {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid #e6ecf6;
    border-radius: 10px;
    background: #fafcff;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.rs-premium-header .rs-live-search-category-badge {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(31, 102, 255, .09);
    color: var(--rs-blue);
    font-size: 9px;
    font-weight: 650;
    white-space: nowrap;
}

.rs-premium-header .rs-live-search-footer {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    border-radius: 11px;
    background: linear-gradient(135deg, #0d4ce0, var(--rs-blue));
    color: #fff;
    font-size: 11.5px;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 7px 17px rgba(31, 102, 255, .18);
}

.rs-premium-header .rs-live-search-footer:hover,
.rs-premium-header .rs-live-search-footer:focus-visible {
    color: #fff;
    outline: 2px solid rgba(31, 102, 255, .25);
    outline-offset: 2px;
}

.rs-premium-header .rs-live-search-empty {
    padding: 28px 16px;
    color: #7a879d;
    font-size: 12px;
    text-align: center;
}

.rs-premium-header .rs-premium-search-placeholder {
    display: grid;
    gap: 7px;
}

.rs-premium-header .rs-premium-search-placeholder strong {
    color: var(--rs-ink);
    font-size: 19px;
}

.rs-premium-header .rs-premium-search-placeholder span {
    color: var(--rs-muted);
    font-size: 13px;
}

/* Three compact premium action tiles */
.rs-premium-header .rs-premium-actions {
    min-width: 0;
    min-height: 108px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
    padding: 3px 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.rs-premium-header .rs-premium-actions.rs-has-contacts {
    grid-template-rows: 32px minmax(0, 1fr);
    row-gap: 6px;
}

.rs-premium-header .rs-header-contacts {
    min-width: 0;
    height: 32px;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.rs-premium-header .rs-header-contact {
    min-width: 0;
    height: 32px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 10px;
    background: linear-gradient(135deg, #0d4ce0, var(--rs-blue) 60%, #4c83ff);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 7px 17px rgba(31, 102, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: box-shadow .2s ease, transform .2s ease;
}

.rs-premium-header .rs-header-contact:hover,
.rs-premium-header .rs-header-contact:focus-visible {
    color: #fff;
    outline: 2px solid rgba(31, 102, 255, .25);
    outline-offset: 1px;
    box-shadow: 0 9px 20px rgba(31, 102, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
    transform: translateY(-1px);
}

.rs-premium-header .rs-header-contact i {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, .13);
}

.rs-premium-header .rs-header-contact.rs-contact-whatsapp i {
    background: #25d366;
    box-shadow: 0 3px 8px rgba(10, 118, 55, .24);
}

.rs-premium-header .rs-header-contact.rs-contact-telegram i {
    background: #229ed9;
    box-shadow: 0 3px 8px rgba(9, 100, 150, .24);
}

.rs-premium-header .rs-header-contact svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.rs-premium-header .rs-header-contact > span {
    min-width: 0;
    display: grid;
    line-height: 1.1;
}

.rs-premium-header .rs-header-contact small {
    color: rgba(255, 255, 255, .82);
    font-size: 8px;
    font-weight: 550;
    white-space: nowrap;
}

.rs-premium-header .rs-header-contact b {
    overflow: hidden;
    color: #fff;
    font-size: 8.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-premium-header .rs-premium-actions.rs-has-contacts .rs-premium-action {
    min-height: 64px;
    gap: 3px;
    padding: 5px 3px 4px;
}

.rs-premium-header .rs-premium-actions.rs-has-contacts .rs-premium-action > i {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
}

.rs-premium-header .rs-premium-actions.rs-has-contacts .rs-premium-action > i svg {
    width: 20px;
    height: 20px;
}

.rs-premium-header .rs-premium-actions.rs-has-contacts .rs-premium-action .rs-action-label {
    font-size: 10px;
}

.rs-premium-header .rs-premium-action {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 102px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px 9px;
    overflow: visible;
    border: 1px solid #e0e8f5;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .9));
    color: var(--rs-ink);
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(30, 55, 104, .065), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rs-premium-header button.rs-premium-action {
    cursor: pointer;
}

.rs-premium-header .rs-premium-action:hover,
.rs-premium-header .rs-premium-action:focus-visible {
    border-color: rgba(31, 102, 255, .22);
    background: linear-gradient(145deg, #fff, rgba(239, 245, 255, .94));
    color: var(--rs-blue-deep);
    box-shadow: 0 11px 24px rgba(31, 102, 255, .11), inset 0 1px 0 #fff;
    transform: translateY(-1px);
}

.rs-premium-header .rs-premium-action:focus-visible {
    outline: 2px solid rgba(31, 102, 255, .3);
    outline-offset: 2px;
}

.rs-premium-header .rs-premium-action > i {
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    color: var(--rs-blue);
    box-shadow: none;
}

.rs-premium-header .rs-premium-action > i svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rs-premium-header .rs-premium-action > span:not(.count) {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.rs-premium-header .rs-premium-action .rs-action-label {
    width: 100%;
    display: block;
    overflow: hidden;
    color: var(--rs-ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.65;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-premium-header .rs-premium-action small,
.rs-premium-header .rs-premium-action b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-premium-header .rs-premium-action small {
    color: var(--rs-muted);
    font-size: 10px;
    line-height: 1.45;
}

.rs-premium-header .rs-premium-action b {
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.rs-premium-header .rs-premium-action em {
    color: #8da0c1;
    font-size: 22px;
    font-style: normal;
}

.rs-premium-header .rs-premium-action .count {
    width: 19px;
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d52eb, #3b7cff);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 9px rgba(31, 102, 255, .28);
}

.rs-premium-header .header-mobile .count {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rs-blue), #527fff);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(36, 85, 230, .28);
}

.rs-premium-header .rs-premium-action .count {
    position: absolute;
    top: -4px;
    left: -6px;
}

/* Logged-in state for the existing account action tile. */
.rs-premium-header .rs-account-action-wrap,
.rs-premium-header .rs-account-card--logged-in,
.rs-premium-header .rs-account-card--logged-in .rs-action-label,
.rs-premium-header .rs-account-menu,
.rs-premium-header .rs-account-menu__identity,
.rs-premium-header .rs-account-menu__identity strong,
.rs-premium-header .rs-account-menu__identity small,
.rs-premium-header .rs-account-menu__links a,
.rs-premium-header .rs-account-menu__links span,
.rs-premium-header .rs-account-menu__logout a,
.rs-premium-header .rs-account-menu__logout span {
    font-family: inherit;
}

.rs-premium-header .rs-account-action-wrap {
    position: relative;
    z-index: 30;
    display: flex;
    min-width: 0;
    height: 100%;
}

.rs-premium-header .rs-account-action-wrap > .rs-account-card {
    height: 100%;
}

.rs-premium-header .rs-account-card--logged-in > .rs-account-card__avatar,
.rs-premium-header .rs-premium-actions.rs-has-contacts .rs-account-card--logged-in > .rs-account-card__avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #edf3ff;
    box-shadow: 0 5px 12px rgba(31, 102, 255, .18);
}

.rs-premium-header .rs-account-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
}

.rs-premium-header .rs-account-card--logged-in .rs-action-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-premium-header .rs-account-action-wrap::after {
    position: absolute;
    z-index: 1101;
    top: calc(100% + 4px);
    left: 50%;
    width: 12px;
    height: 12px;
    content: '';
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid rgba(144, 164, 198, .34);
    border-left: 1px solid rgba(144, 164, 198, .34);
    transform: translateX(-50%) translateY(-5px) rotate(45deg);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.rs-premium-header .rs-account-menu {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    padding: 10px;
    overflow: hidden;
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(144, 164, 198, .34);
    border-radius: 19px;
    box-shadow: 0 20px 48px rgba(19, 44, 91, .2), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.rs-premium-header .rs-account-action-wrap.is-open::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) rotate(45deg);
}

.rs-premium-header .rs-account-action-wrap.is-open .rs-account-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.rs-premium-header .rs-account-action-wrap.is-open > .rs-account-card {
    border-color: rgba(31, 102, 255, .22);
    color: var(--rs-blue-deep);
}

.rs-premium-header .rs-account-menu__summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 5px 5px 12px;
    border-bottom: 1px solid #e8eef8;
}

.rs-premium-header .rs-account-menu__avatar {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #edf3ff;
    box-shadow: 0 5px 13px rgba(31, 102, 255, .16);
}

.rs-premium-header .rs-account-menu__identity {
    min-width: 0;
    display: grid;
    gap: 2px;
    text-align: right;
}

.rs-premium-header .rs-account-menu__identity strong,
.rs-premium-header .rs-account-menu__identity small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-premium-header .rs-account-menu__identity strong {
    color: var(--rs-ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
}

.rs-premium-header .rs-account-menu__identity small {
    color: var(--rs-muted);
    font-size: 10px;
    line-height: 1.45;
    text-align: right;
}

.rs-premium-header .rs-account-menu__links {
    display: grid;
    padding: 6px 0 2px;
}

.rs-premium-header .rs-account-menu__links a,
.rs-premium-header .rs-account-menu__logout a {
    min-width: 0;
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border-radius: 11px;
    color: var(--rs-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.rs-premium-header .rs-account-menu__links a:hover,
.rs-premium-header .rs-account-menu__links a:focus-visible {
    color: var(--rs-blue);
    background: #f1f6ff;
    outline: 0;
    transform: translateX(-2px);
}

.rs-premium-header .rs-account-menu__links svg,
.rs-premium-header .rs-account-menu__logout svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rs-premium-header .rs-account-menu__links span,
.rs-premium-header .rs-account-menu__logout span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-premium-header .rs-account-menu__logout {
    padding-top: 7px;
    border-top: 1px solid #e8eef8;
}

.rs-premium-header .rs-account-menu__logout a {
    color: #d93f4f;
}

.rs-premium-header .rs-account-menu__logout a:hover,
.rs-premium-header .rs-account-menu__logout a:focus-visible {
    color: #c42f40;
    background: #fff1f3;
    outline: 0;
}

.rs-premium-header .rs-mobile-account-avatar {
    display: block;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #edf3ff;
    box-shadow: 0 4px 10px rgba(31, 102, 255, .16);
}

.rs-premium-header .rs-premium-cart-group {
    width: 100%;
    height: auto;
    display: block;
    align-self: stretch;
}

.rs-premium-header .rs-premium-cart-group > .rs-cart-card {
    height: 100%;
}

.rs-premium-header .rs-premium-cart-group > .dropdown-menu {
    width: 320px;
    border: 1px solid var(--rs-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 25px 60px rgba(24, 46, 94, .18);
}

.rs-premium-header .rs-premium-cart-group > .dropdown-toggle::after {
    display: none;
}

.rs-premium-header .rs-cart-shortcode {
    display: flex;
}

/* Navigation pills integrated into the main header surface */
.rs-premium-header .rs-header-navigation {
    position: static;
    z-index: 22;
    margin-top: 12px;
    padding: 12px 3px 1px;
    overflow: visible;
    border: 0;
    border-top: 1px solid rgba(205, 217, 237, .72);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.rs-premium-header .rs-header-navigation .mega-menu-wrapper {
    min-width: 0;
    overflow: visible;
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li {
    position: relative;
    padding: 0;
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li.mega-menu {
    position: static;
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li > a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border: 1px solid #e3eaf5;
    border-radius: 999px;
    background: #f8fafd;
    color: #56647d;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(34, 58, 103, .035), inset 0 1px 0 #fff;
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li > a > svg,
.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li > a > img,
.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li > a > i {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li.menu-item-has-children > a::after {
    display: none;
}

.rs-premium-header .rs-header-navigation [data-rs-role="nav-icon"] {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.rs-premium-header .rs-header-navigation [data-rs-role="nav-icon"] svg {
    width: 18px;
    height: 18px;
}

.rs-premium-header .rs-header-navigation [data-rs-role="nav-chevron"] {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-right: 2px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}

.rs-premium-header .rs-header-navigation a[aria-expanded="true"] [data-rs-role="nav-chevron"] {
    transform: rotate(225deg) translate(-1px, -1px);
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li > a:hover,
.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li > a:focus-visible {
    border-color: rgba(31, 102, 255, .2);
    background: #f1f6ff;
    color: var(--rs-blue);
    transform: translateY(-1px);
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li.mega-menu > a {
    border-color: rgba(255, 255, 255, .28);
    background: linear-gradient(135deg, #0d3fba, var(--rs-blue) 58%, #4c83ff);
    color: #fff;
    font-weight: 750;
    box-shadow: 0 9px 21px rgba(31, 102, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > .current-menu-item:not(.mega-menu) > a,
.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > .current-menu-ancestor:not(.mega-menu) > a {
    border-color: rgba(31, 102, 255, .14);
    background: #f1f6ff;
    color: #1f66ff;
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li.mega-menu::after {
    display: none;
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li.mega-menu.rs-mega-is-open::after {
    display: none;
}

.rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li > a:focus-visible {
    outline: 2px solid rgba(31, 102, 255, .32);
    outline-offset: 2px;
}

/* Normal WordPress dropdowns remain normal dropdowns. */
.rs-premium-header .rs-header-navigation li:not(.mega-menu) > .sub-menu {
    min-width: 220px;
    padding: 9px;
    border: 1px solid var(--rs-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 20px 45px rgba(24, 46, 94, .15);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.rs-premium-header .rs-header-navigation li:not(.mega-menu) > .sub-menu a {
    border-radius: 10px;
}

.rs-premium-header > .backdrop {
    z-index: 0;
    opacity: .018;
    pointer-events: none;
}

.rs-premium-header .rs-premium-mobile,
.rs-premium-header .rs-premium-mobile-search {
    display: none;
}

@media (max-width: 1199px) and (min-width: 1024px) {
    .rs-premium-header .rs-premium-main {
        grid-template-columns: 145px minmax(0, 1fr) 300px;
    }

    .rs-premium-header .rs-premium-search-card {
        padding: 18px;
    }

    .rs-premium-header .rs-premium-actions {
        gap: 6px;
        padding-inline: 0;
    }

    .rs-premium-header .rs-premium-action {
        gap: 5px;
        padding-inline: 3px;
    }

    .rs-premium-header .rs-premium-action .rs-action-label {
        font-size: 10.5px;
    }

    .rs-premium-header .rs-header-navigation > .mega-menu-wrapper > ul.mega-menu > li > a {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 11.5px;
    }
}

@media (max-width: 1023px) {
    .rs-premium-header .rs-premium-shell {
        display: none;
    }

    .rs-premium-header .rs-premium-mobile {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        grid-template-areas:
            "cart logo menu"
            "search search search"
            "utility utility utility";
        align-items: center;
        gap: 9px 12px;
        direction: ltr;
        padding: 10px;
        box-sizing: border-box;
        overflow: visible;
        border: 1px solid var(--rs-line);
        border-radius: 20px;
        background: rgba(255, 255, 255, .9);
        box-shadow: 0 16px 40px rgba(24, 46, 94, .11), inset 0 1px 0 #fff;
        /* Keep the nested fixed off-canvas in the root stacking context. */
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu {
        --bs-offcanvas-zindex: 100001;
        position: fixed;
        z-index: 100001;
        inset: 0;
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-width: 0;
        overflow: hidden;
        isolation: isolate;
    }

    body:has(.rs-premium-header .fixed-menu.show) > .offcanvas-backdrop,
    body:has(.rs-premium-header .fixed-menu.showing) > .offcanvas-backdrop,
    body:has(.rs-premium-header .fixed-menu.hiding) > .offcanvas-backdrop {
        z-index: 100000;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu > .btn-group-wrapper {
        width: calc(100% - 24px);
        min-width: 0;
        position: sticky;
        top: 0;
        z-index: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr) repeat(3, 42px);
        align-items: center;
        gap: 7px;
        margin: 12px auto 8px;
        box-sizing: border-box;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu > .btn-group-wrapper > span {
        min-width: 0;
        margin: 0;
        text-align: right;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu > .btn-group-wrapper > .btn {
        width: 42px;
        min-width: 42px;
        max-width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile-wrapper {
        min-width: 0;
        height: auto;
        max-height: calc(100vh - 74px);
        max-height: calc(100dvh - 74px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile > li {
        position: relative;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile > li > .rs-nav-link {
        position: relative;
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding-inline: 38px;
        text-align: center;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile [data-rs-role="nav-icon"] {
        width: 38px;
        min-width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        border-radius: 12px;
        background: rgba(31, 102, 255, .08);
        color: var(--rs-blue);
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile [data-rs-role="nav-icon"] > *,
    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile [data-rs-role="nav-icon"] svg {
        width: 22px;
        height: 22px;
        margin: 0;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile [data-rs-role="nav-title"] {
        width: 100%;
        min-width: 0;
        display: block;
        text-align: center;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile > li > i,
    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile > li > .rs-nav-link [data-rs-role="nav-chevron"] {
        position: absolute;
        top: 50%;
        left: 12px;
        width: 30px;
        min-width: 30px;
        max-width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        transform: translateY(-50%);
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile .sub-menu li {
        min-width: 0;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile .sub-menu li > a {
        width: 100%;
        min-width: 0;
        padding-inline: 12px;
        text-align: center;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile .sub-menu li > i {
        width: 30px;
        min-width: 30px;
        max-width: 30px;
        height: 30px;
        align-items: center;
        justify-content: center;
        margin: 4px auto 0;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .rs-premium-mega-menu .rs-mega-category > [data-rs-role="category-link"] {
        width: 100%;
        max-width: 360px;
        grid-template-columns: 38px minmax(0, 1fr) 18px;
        justify-content: center;
        justify-items: center;
        align-items: center;
        margin-inline: auto;
        text-align: center;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .rs-premium-mega-menu [data-rs-role="category-title"],
    .rs-premium-header .rs-premium-mobile .fixed-menu .rs-premium-mega-menu [data-rs-role="children-list"] a,
    .rs-premium-header .rs-premium-mobile .fixed-menu .rs-premium-mega-menu [data-rs-role="nested-list"] a {
        min-width: 0;
        text-align: center;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .rs-premium-mega-menu .rs-mega-category > .rs-mega-column[data-rs-role="children"] {
        margin-right: 0;
        margin-left: 0;
        text-align: center;
    }

    .rs-premium-header .rs-premium-mobile > *,
    .rs-premium-header .rs-premium-mobile .btn-wrapper-left > * {
        min-width: 0;
        box-sizing: border-box;
        direction: rtl;
    }

    .rs-premium-header .rs-premium-mobile > .btn-wrapper-right {
        width: 46px;
        min-width: 0;
        height: 46px;
        grid-area: menu;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        border-radius: 14px;
        background: transparent;
    }

    .rs-premium-header .rs-premium-mobile > .logo {
        width: min(100%, 180px);
        max-width: 100%;
        min-width: 0;
        height: 50px;
        grid-area: logo;
        justify-self: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3px 12px;
        overflow: hidden;
        border-radius: 14px;
        background: rgba(245, 249, 255, .86);
    }

    .rs-premium-header .rs-premium-mobile > .logo img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 44px;
        object-fit: contain;
    }

    .rs-premium-header .rs-premium-mobile .btn-wrapper-right > .btn,
    .rs-premium-header .rs-premium-mobile .btn-wrapper-left > .btn {
        position: relative;
        width: 46px;
        min-width: 0;
        max-width: 46px;
        height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        border: 1px solid rgba(36, 85, 230, .14);
        border-radius: 13px;
        background: rgba(255, 255, 255, .82);
        box-shadow: 0 7px 18px rgba(35, 62, 119, .07);
    }

    .rs-premium-header .rs-premium-mobile .btn-wrapper-left {
        display: contents;
    }

    .rs-premium-header .rs-premium-mobile .btn-wrapper-left > :not(.rs-mobile-contacts) {
        max-width: 46px;
        grid-area: cart;
        justify-self: center;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contacts {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        grid-area: utility;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 4px 8px;
        overflow-x: auto;
        overflow-y: hidden;
        border: 1px solid rgba(36, 85, 230, .11);
        border-radius: 14px;
        background: rgba(242, 247, 255, .88);
        box-shadow: inset 0 1px 0 #fff;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contacts::-webkit-scrollbar {
        display: none;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact {
        width: 34px;
        min-width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(31, 102, 255, .12);
        border-radius: 11px;
        background: #fff;
        color: var(--rs-blue);
        box-shadow: 0 5px 13px rgba(29, 57, 116, .08);
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact > span {
        display: none;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact.rs-contact-whatsapp {
        background: #25d366;
        color: #fff;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact.rs-contact-telegram {
        background: #229ed9;
        color: #fff;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    .rs-premium-header .rs-premium-mobile .btn svg {
        width: 19px;
        height: 19px;
        fill: var(--rs-blue);
    }

    .rs-premium-header .rs-premium-mobile-search {
        position: relative;
        width: 100%;
        max-width: none;
        min-width: 0;
        grid-area: search;
        display: block;
        margin: 0;
        box-sizing: border-box;
        border-radius: 16px;
        background: rgba(255, 255, 255, .92);
        box-shadow: 0 10px 25px rgba(35, 62, 119, .07);
    }

    .rs-premium-header .rs-premium-mobile-search .search-box {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 52px;
        display: flex;
        align-items: center;
        gap: 5px;
        margin: 0;
        padding: 3px 5px 3px 12px;
        box-sizing: border-box;
        overflow: hidden;
        border: 1px solid rgba(36, 85, 230, .14);
        border-radius: 16px;
        background: rgba(255, 255, 255, .94);
    }

    .rs-premium-header .rs-premium-mobile-search .ajax-search-input {
        width: auto;
        min-width: 0;
        height: 44px;
        flex: 1 1 auto;
        padding-inline: 8px;
        border: 0;
        outline: 0;
        background: transparent;
        font-family: inherit;
        font-size: 16px;
        line-height: 44px;
        text-align: right;
    }

    .rs-premium-header .rs-premium-mobile-search .search-btn {
        width: 44px;
        min-width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 13px;
        background: linear-gradient(135deg, #0d4ce0, var(--rs-blue));
        box-shadow: 0 7px 16px rgba(31, 102, 255, .22);
    }

    .rs-premium-header .rs-premium-mobile-search .search-btn svg {
        width: 20px;
        height: 20px;
        fill: #fff;
    }

    .rs-premium-header .rs-premium-mobile-search .search-btn svg path {
        fill: #fff;
    }

    .rs-premium-header .rs-premium-mobile-search .ajax-search-results,
    .rs-premium-header .rs-premium-mobile-search .search-results-body {
        right: 0;
        left: auto;
        width: 100%;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
    }

    .rs-premium-header .rs-premium-mobile .btn-wrapper-left > .btn .count {
        position: absolute;
        top: -6px;
        left: -6px;
        min-width: 19px;
        height: 19px;
        padding-inline: 4px;
        font-size: 9px;
    }
}

@media (max-width: 767px) {
    .rs-premium-header .rs-premium-mobile {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px 10px;
        padding: 9px;
        border-radius: 18px;
    }

    .rs-premium-header .rs-premium-mobile > .btn-wrapper-right,
    .rs-premium-header .rs-premium-mobile .btn-wrapper-right > .btn,
    .rs-premium-header .rs-premium-mobile .btn-wrapper-left > .btn {
        width: 44px;
        max-width: 44px;
        height: 44px;
    }

    .rs-premium-header .rs-premium-mobile .btn-wrapper-left > :not(.rs-mobile-contacts) {
        max-width: 44px;
    }

    .rs-premium-header .rs-premium-mobile > .logo {
        width: min(100%, 154px);
        height: 46px;
        padding-inline: 9px;
    }

    .rs-premium-header .rs-premium-mobile > .logo img {
        max-height: 40px;
    }

    .rs-premium-header .rs-premium-mobile-search .search-box {
        height: 50px;
    }

    .rs-premium-header .rs-premium-mobile-search .ajax-search-input {
        height: 42px;
        line-height: 42px;
    }

    .rs-premium-header .rs-premium-mobile-search .search-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contacts {
        width: 100%;
        min-width: 0;
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: 7px;
        padding: 5px;
        overflow: hidden;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 54px;
        min-height: 54px;
        display: grid;
        grid-template-columns: 23px minmax(0, 1fr);
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 5px 7px;
        overflow: hidden;
        border-color: rgba(255, 255, 255, .24);
        border-radius: 12px;
        color: #fff;
        text-align: center;
        box-shadow: 0 7px 16px rgba(20, 47, 103, .14), inset 0 1px 0 rgba(255, 255, 255, .2);
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact.rs-contact-phone {
        background: linear-gradient(135deg, #0d4ce0, var(--rs-blue) 62%, #4c83ff);
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact > i {
        width: 23px;
        height: 23px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, .14);
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact > span {
        min-width: 0;
        display: grid;
        justify-items: center;
        gap: 1px;
        line-height: 1.2;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact b,
    .rs-premium-header .rs-premium-mobile .rs-mobile-contact small {
        width: 100%;
        min-width: 0;
        display: block;
        overflow: hidden;
        color: inherit;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact b {
        font-size: 9.5px;
        font-weight: 750;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact small {
        font-size: 8px;
        font-weight: 500;
        opacity: .86;
    }
}

@media (max-width: 480px) {
    .rs-premium-header .rs-premium-mobile {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
        padding: 8px;
        border-radius: 17px;
    }

    .rs-premium-header .rs-premium-mobile > .btn-wrapper-right,
    .rs-premium-header .rs-premium-mobile .btn-wrapper-right > .btn,
    .rs-premium-header .rs-premium-mobile .btn-wrapper-left > .btn {
        width: 40px;
        max-width: 40px;
        height: 40px;
        padding: 7px;
        border-radius: 12px;
    }

    .rs-premium-header .rs-premium-mobile .btn-wrapper-left > :not(.rs-mobile-contacts) {
        max-width: 40px;
    }

    .rs-premium-header .rs-premium-mobile > .logo {
        width: min(100%, 136px);
        height: 42px;
        padding-inline: 8px;
    }

    .rs-premium-header .rs-premium-mobile > .logo img {
        max-height: 36px;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contacts {
        min-height: 0;
        gap: 5px;
        padding: 4px;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact {
        width: 100%;
        min-width: 0;
        height: 50px;
        min-height: 50px;
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 4px;
        padding: 4px 5px;
        border-radius: 10px;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact > i {
        width: 20px;
        height: 20px;
        border-radius: 7px;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact svg {
        width: 14px;
        height: 14px;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact b {
        font-size: 8.5px;
    }

    .rs-premium-header .rs-premium-mobile .rs-mobile-contact small {
        font-size: 7px;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu > .btn-group-wrapper {
        width: calc(100% - 16px);
        grid-template-columns: minmax(0, 1fr) repeat(3, 38px);
        gap: 5px;
        margin-top: 8px;
        padding: 5px 6px;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu > .btn-group-wrapper > .btn {
        width: 38px;
        min-width: 38px;
        max-width: 38px;
        height: 38px;
        padding: 6px;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile-wrapper {
        margin-right: 16px;
        margin-left: 16px;
    }

    .rs-premium-header .rs-premium-mobile .fixed-menu .mega-menu-mobile > li {
        padding: 13px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-premium-header *,
    .rs-premium-header *::before,
    .rs-premium-header *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
