
/* The catalog, calendar, questions and navigator share the same search control. */
body :is(#main-content, .mobile-panel) form.rr-search {
    --rr-search-height: 48px;
    --rr-search-button: 38px;
    --rr-search-gap: 5px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: var(--rr-search-gap);
    height: var(--rr-search-height);
    min-height: var(--rr-search-height);
    width: 100%;
    min-width: 0;
    padding: 4px;
    border: 1px solid #b58ddb;
    border-radius: 10px;
    background: #f8f5fc;
    box-shadow: none;
    overflow: visible;
}

body :is(#main-content, .mobile-panel) form.rr-search input.rr-search__field {
    box-sizing: border-box;
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 100%;
    min-height: 0;
    padding: 0 0 0 11px;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: #6b6474 !important;
    font-family: inherit;
    font-size: 16px !important;
    line-height: 1.2;
}

body :is(#main-content, .mobile-panel) .rr-search__field::placeholder {
    color: #70697b;
    opacity: 1;
}

.rr-search__field::-webkit-search-cancel-button {
    display: none;
}

body :is(#main-content, .mobile-panel) .rr-search:has(.rr-search__field:focus-visible) {
    border-color: #704bb1;
}

body :is(#main-content, .mobile-panel) form.rr-search > button {
    position: static;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    height: var(--rr-search-button);
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    transform: none;
    cursor: pointer;
}

body :is(#main-content, .mobile-panel) .rr-search > .rr-search__submit {
    width: var(--rr-search-button);
    color: #fff !important;
    background: #704bb1;
}

body :is(#main-content, .mobile-panel) .rr-search__submit svg {
    width: 22px;
    height: 22px;
}

body :is(#main-content, .mobile-panel) .rr-search > .rr-search__clear {
    width: 30px;
    background: transparent;
}

body :is(#main-content, .mobile-panel) .rr-search__field:placeholder-shown ~ .rr-search__clear {
    display: none;
}

body :is(#main-content, .mobile-panel) .rr-search__clear img {
    display: block;
    width: 17px;
    height: 17px;
    object-fit: contain;
}

body :is(#main-content, .mobile-panel) .rr-search > button:focus-visible {
    outline: 2px solid #704bb1;
    outline-offset: 2px;
}

body :is(#main-content, .mobile-panel) .catalog-tools > .catalog-filters > summary::before {
    display: none;
}

body :is(#main-content, .mobile-panel) .catalog-filter-icon {
    display: block;
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.catalog-page__search-header,
.catalog-page__category-header {
    margin: 0 0 16px;
}

body .catalog-page :is(.catalog-page__search-header, .catalog-page__category-header) h1 {
    margin: 0;
    overflow-wrap: anywhere;
}

body .catalog-page .catalog-page__search-count {
    margin: 12px 0 0;
    color: #45346f;
    font-size: 18px !important;
    font-weight: 700;
}

.catalog-page__category-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.catalog-page__category-count {
    padding: 4px 10px;
    border-radius: 9px;
    background: #f8f5fc;
    color: #45346f;
    font-size: 14px;
    font-weight: 700;
}

body .catalog-page a.catalog-page__navigator-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    padding: 6px 10px;
    border: 1px solid #cdb8e7;
    border-radius: 8px;
    background: #f8f5fc;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

body .catalog-page a.catalog-page__navigator-back:is(:hover, :focus-visible) {
    background: #f0e7fa;
}

.catalog-page__search-empty {
    padding: clamp(42px, 7vw, 92px) 12px;
}

body .catalog-page__search-empty h1 {
    margin: 10px 0;
    font-size: clamp(27px, 4vw, 36px) !important;
    line-height: 1.2 !important;
}

.catalog-page__search-empty > svg {
    width: 52px;
    height: 52px;
    color: #704bb1;
}

@media (min-width: 681px) {
    body .site-layout__main > .game-navigator-page > .shell {
        padding-inline: 16px;
    }

    body .game-navigator-page .game-navigator__header {
        padding-inline: 10px;
    }

    body .site-layout__main > :is(.game-navigator-page, .holiday-calendar) h1 {
        margin-block: 0 24px;
    }
}

@media (max-width: 680px) {
    body :is(#main-content, .mobile-panel) form.rr-search {
        --rr-search-height: 44px;
        --rr-search-button: 34px;
        --rr-search-gap: 3px;
    }

    body :is(#main-content, .mobile-panel) form.rr-search input.rr-search__field {
        padding-inline-start: 7px;
        font-size: 15px !important;
    }

    body :is(#main-content, .mobile-panel) .rr-search__submit svg {
        width: 20px;
        height: 20px;
    }

    body :is(#main-content, .mobile-panel) .catalog-filter-icon {
        width: 17px;
        height: 17px;
    }

    body .site-layout__main > .catalog-page > .shell {
        padding: 20px 16px 16px;
    }

    body .catalog-page h1.catalog-page__title {
        margin-top: 0;
        font-size: 34px !important;
        line-height: 1.2 !important;
    }
}

