/* ================================
   RS Musashi Filter - Search Modal
   ================================ */

/* 觸發按鈕 - 無固定樣式，由外部容器控制 */
.rsmf-search-trigger__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: color 0.2s;
}
.rsmf-search-trigger__btn:hover {
    color: #0A2F86;
}

/* Overlay */
.rsmf-search-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
}

/* Modal 容器 */
.rsmf-search-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 內容區 */
.rsmf-search-modal__content {
    position: relative;
    z-index: 100000;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: rsmf-modal-in 0.2s ease-out;
}

@keyframes rsmf-modal-in {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.rsmf-search-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
}
.rsmf-search-modal__title {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1.8px;
}
.rsmf-search-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.rsmf-search-modal__close:hover {
    color: #333;
}

/* Body */
.rsmf-search-modal__body {
    padding: 20px 24px 24px;
}
.rsmf-search-modal__input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #DDDDDD;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.rsmf-search-modal__input-wrap:focus-within {
    border-color: #0A2F86;
}
.rsmf-search-modal__input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Noto Sans TC', sans-serif;
    color: #333;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}
.rsmf-search-modal__input::placeholder {
    color: #aaa;
}
.rsmf-search-modal__submit {
    width: 48px;
    height: 48px;
    background: #0A2F86;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s;
    flex-shrink: 0;
}
.rsmf-search-modal__submit:hover {
    background: #083070;
}
