.tn-search-modal[hidden] {
    display: none;
}

.tn-search-modal {
    position: fixed;
    z-index: 4000;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: 18vh 20px 24px;
}

.tn-search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .56);
    backdrop-filter: blur(3px);
}

.tn-search-dialog {
    position: relative;
    width: min(100%, 520px);
    padding: 28px;
    border: 1px solid #e5e6e8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.tn-search-dialog h2 {
    margin-bottom: 18px;
    font-family: var(--font-heading);
    font-size: 21px;
}

.tn-search-dialog form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 14px;
    border: 1px solid #dfe1e5;
    border-radius: 9px;
}

.tn-search-dialog input {
    width: 100%;
    min-width: 0;
    height: 36px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111;
    font: 12px var(--font-body);
}

.tn-search-dialog form button {
    width: 38px;
    height: 36px;
    flex: 0 0 38px;
    border-radius: 7px;
    background: #df3030;
    color: #fff;
}

.tn-search-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f3f4;
    color: #34363a;
    font-size: 14px;
}

body.tn-search-modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .tn-search-dialog {
        padding: 24px 18px 20px;
    }
}
