/* Only the existing header overlay opts into this layout. */
body .sevensun-header__search-form.sevensun-search-modal {
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: clamp(24px, 10vh, 96px) 24px 24px;
    overflow: auto;
    overscroll-behavior: contain;
    background: rgba(19, 22, 25, .58);
    z-index: 1000000;
    box-sizing: border-box;
}
body .sevensun-header__search-form.sevensun-search-modal.open {
    display: grid;
    align-items: start;
    justify-items: center;
}
body .sevensun-search-modal > .sevensun-header__search-form-wrapper {
    position: relative;
    width: min(920px, 100%);
    min-width: 0;
    height: auto;
    padding: 36px;
    border: 1px solid #e7e8e9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 64px rgba(0, 0, 0, .2);
    box-sizing: border-box;
}
body .sevensun-search-modal h1 {
    display: block !important;
    margin: 0 52px 24px 0 !important;
    color: #202326;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left !important;
    text-transform: none !important;
    overflow-wrap: anywhere;
}
body .sevensun-search-modal .dgwt-wcas-search-wrapp,
body .sevensun-search-modal form.dgwt-wcas-search-form {
    width: 100%;
    max-width: none !important;
    min-width: 0;
    margin: 0;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
body .sevensun-search-modal .dgwt-wcas-sf-wrapp {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
}
body .sevensun-search-modal input.dgwt-wcas-search-input[type="search"] {
    display: block;
    width: 100%;
    height: 60px;
    min-height: 60px;
    max-height: none;
    margin: 0 !important;
    padding: 15px 68px 15px 18px !important;
    border: 1px solid #737980 !important;
    border-radius: 8px !important;
    background: #fff;
    color: #202326;
    font-size: 18px !important;
    line-height: 28px;
    text-transform: none;
    box-shadow: none;
    filter: none;
    box-sizing: border-box;
    appearance: none;
}
body .sevensun-search-modal input.dgwt-wcas-search-input::placeholder {
    color: #687078;
    font-size: inherit !important;
    text-transform: none !important;
    opacity: 1;
}
body .sevensun-search-modal input.dgwt-wcas-search-input:focus {
    outline: 3px solid #f9d80c;
    outline-offset: 2px;
    border-color: #202326 !important;
}
body .sevensun-search-modal form button.dgwt-wcas-search-submit {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid #e1e3e5;
    border-radius: 0;
    background: #fff;
    transform: none;
    color: #202326;
}
body .sevensun-search-modal form button.dgwt-wcas-search-submit::before,
body .sevensun-search-modal form button.dgwt-wcas-search-submit::after {
    content: none;
}
body .sevensun-search-modal form button.dgwt-wcas-search-submit svg {
    width: 24px;
    height: 24px;
    max-width: 24px;
}
body .sevensun-search-modal .search-close--mobile {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
}
body .sevensun-search-modal .search-close--mobile svg {
    width: 18px !important;
    height: 18px !important;
}
body .sevensun-search-modal [role="button"]:focus-visible,
body .sevensun-search-modal button:focus-visible {
    outline: 3px solid #f9d80c;
    outline-offset: 2px;
}
/* The header already supplies a modal; keep its real input usable on mobile. */
body .sevensun-search-modal .js-dgwt-wcas-enable-mobile-form {
    display: none !important;
}
/* Override the theme's forced display:block for empty/plugin-hidden containers. */
body.sevensun-search-modal-open .sevensun-search-suggestions-hidden {
    display: none !important;
}
body.sevensun-search-modal-open .dgwt-wcas-suggestions-wrapp {
    z-index: 1000002 !important;
    max-width: min(848px, calc(100vw - 48px));
    height: auto !important;
    max-height: min(56vh, 520px);
    margin: 8px 0 0;
    padding: 12px 16px;
    border: 1px solid #d9dde0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    overflow: auto;
    transform: none;
    box-sizing: border-box;
}
body.sevensun-search-modal-open .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more {
    position: static;
    height: auto;
    min-height: 44px;
    margin: 8px 0 0;
    padding: 12px 8px;
    box-shadow: none;
}
@media (max-width: 599px) {
    body .sevensun-header__search-form.sevensun-search-modal {
        padding: 20px 16px;
    }
    body .sevensun-search-modal > .sevensun-header__search-form-wrapper {
        padding: 24px 16px;
        border-radius: 12px;
    }
    body .sevensun-search-modal h1 {
        margin-bottom: 20px !important;
        font-size: 26px;
    }
    body .sevensun-search-modal input.dgwt-wcas-search-input[type="search"] {
        height: 56px;
        min-height: 56px;
        padding: 13px 60px 13px 14px !important;
        font-size: 16px !important;
    }
    body .sevensun-search-modal form button.dgwt-wcas-search-submit {
        top: 6px;
        right: 6px;
    }
    body.sevensun-search-modal-open .dgwt-wcas-suggestions-wrapp {
        max-width: calc(100vw - 64px);
    }
}
