.site-search-backdrop[hidden],
.site-search-modal[hidden] {
    display: none !important;
}

.site-search-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: #041d19a6;
    backdrop-filter: blur(5px);
}

.site-search-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 1201;
    padding: 32px;
    border-radius: 24px;
    background: #f3f6f3;
    color: #063b36;
    box-shadow: 0 20px 60px #0004;
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

    .site-search-modal small {
        color: #a77e29;
    }

    .site-search-modal h2 {
        font-size: 22px;
        margin: 12px 0 24px;
    }

.site-search-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 16px;
    border: 0;
    background: transparent;
    color: #063b36;
    font-size: 28px;
    cursor: pointer;
}

.site-search-field {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

    .site-search-field input {
        flex: 1;
        min-width: 0;
        padding: 12px;
        border: 1px solid #063b3620;
        border-radius: 12px;
        background: white;
        font: inherit;
    }

    .site-search-field button {
        border: 0;
        padding: 12px 18px;
        border-radius: 12px;
        background: #063b36;
        color: white;
        font: inherit;
        cursor: pointer;
    }

#siteSearchError {
    color: #a83228;
    line-height: 2;
}

.store-search-warning {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #e1bd65;
    border-radius: 14px;
    background: #fff7df;
    color: #6e5014;
    line-height: 2;
}

@media (max-width: 480px) {
    .site-search-modal {
        padding: 28px 20px;
    }

    .site-search-field {
        flex-direction: column;
    }
}
