.modal-search-wrapper-8e993a06 {
    display: inline-block;
}

.modal-search-trigger-8e993a06 {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.modal-search-trigger-8e993a06:hover {
    transform: scale(1.08);
}

/* Modal Overlay styling */
.modal-search-overlay-8e993a06 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-search-overlay-8e993a06.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal box */
.modal-search-content-8e993a06 {
    background-color: #ffffff;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-search-overlay-8e993a06.is-active .modal-search-content-8e993a06 {
    transform: translateY(0);
}

/* Close Button */
.modal-search-close-8e993a06 {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    transition: color 0.2s;
}

.modal-search-close-8e993a06:hover {
    color: #bc002d;
}

/* Search input styling */
.modal-search-field-wrapper-8e993a06 {
    position: relative;
    width: 100%;
}

.modal-search-input-8e993a06 {
    width: 100%;
    padding: 14px 45px 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 18px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.modal-search-input-8e993a06:focus {
    border-color: #bc002d;
}

/* Search spinner */
.modal-search-loading-8e993a06 {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #bc002d;
    border-radius: 50%;
    animation: modal-spin-8e993a06 0.8s linear infinite;
    opacity: 0;
    pointer-events: none;
}

.modal-search-loading-8e993a06.is-visible {
    opacity: 1;
}

@keyframes modal-spin-8e993a06 {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Live Results Area */
.modal-search-results-8e993a06 {
    margin-top: 20px;
    max-height: 350px;
    overflow-y: auto;
    display: none;
}

.modal-search-results-8e993a06.has-results {
    display: block;
}

.results-list-8e993a06 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list-8e993a06 li {
    border-bottom: 1px solid #f1f5f9;
}

.results-list-8e993a06 li:last-child {
    border-bottom: none;
}

.results-list-8e993a06 a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    text-decoration: none;
    color: #1a1a1a;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.results-list-8e993a06 a:hover {
    background-color: #f8fafc;
}

.item-title-8e993a06 {
    font-weight: 500;
    font-size: 15px;
}

.item-type-8e993a06 {
    font-size: 12px;
    background-color: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.no-results-8e993a06 {
    padding: 15px 10px;
    color: #64748b;
    text-align: center;
}

/* Body lock */
body.modal-search-open-8e993a06 {
    overflow: hidden;
}
