.search-popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -49%);
    background: var(--wp--preset--color--base);
    padding: var(--wp--custom--spacing--gap);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    border-radius: 4px;
    display: none;
    color: var(--wp--preset--color--secondary);
}

.search-popup-trigger {
    cursor: pointer;
    color: var(--wp--preset--color--base);
    border: none;
    background-color: transparent;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    padding: 0;
    align-items: center;
    line-height: 24px;
}

.search-popup-trigger:hover {
    color: var(--wp--preset--color--tertiary);
}

.search-popup-trigger svg,
.search-submit svg {
    width: 20px;
    height: 20px;
}

.search-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 999;
}

body.no-scroll {
    overflow: hidden;
}

.search-popup-container .search-form {
    display: flex;
    align-items: stretch;
    margin-bottom: 30px;
    background: var(--wp--preset--color--neutral) !important;
    padding: 20px;
    border-radius: 4px;
}

.search-popup-container .search-input {
    flex-grow: 1;
    height: 40px;
    padding: 0 10px;
    border: 0 !important;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    color: var(--wp--preset--color--primary);
    background-color: #fff;
}

.search-popup-container .search-input::placeholder {
    font-size: 16px;
}

.search-popup-container .search-submit {
    height: 40px;
    padding: 0 15px;
    line-height: 52px;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 52px
}

.search-popup-container .search-submit:hover {
    background-color: var(--wp--preset--color--tertiary);
}

.search-popup-container h2, 
.search-popup-container h3 {
    margin: 0 0 20px;
    font-weight: 700;
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--primary);
}

.search-popup-container .recent-resources {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.search-popup-container .recent-resources li {
    padding: 0;
    border-bottom: 1px solid var(--wp--preset--color--contrast);
}

.search-popup-container .recent-resources li:last-child {
    border-bottom: none;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-title {
    text-align: left;
}

.resource-collection {
    text-align: right;
    font-weight: normal;
    color: var(--wp--preset--color--tertiary);
    font-size: 0.9em;
}

.search-popup-container a {
    color: var(--wp--preset--color--denary) !important;
    text-decoration: none;
    padding-bottom: 8px;
    font-size: 15px;
}

.search-popup-container a:hover {
    color: var(--wp--preset--color--tertiary) !important;
}