/* YMM search form ([ymm_search_form] shortcode). Enqueued once per page by
 * functions.php (handle ymm-search-form); was printed inline per shortcode. */
.ymm-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 3px solid #e0e0e0;
    border-top-color: #1f5f4a;
    border-radius: 50%;
    animation: ymm-spin 0.7s linear infinite;
}
@keyframes ymm-spin {
    to { transform: rotate(360deg); }
}
.feilds_data { display: flex; width: 100%; flex-wrap: nowrap; align-items: stretch; gap: 12px; }
.ymm_search_inner { display: inline-flex; min-width: 0; flex: 1 1 0; }
.ymm_search_inner select { width: 100%; font-size: 14px; }
.ymm_search_inner button { padding: 13px 10px; font-size: 14px; }

.cll_custom_load {
    position: absolute;
    width: 100%;
    top: -50px;
}
.ymm_search_outer {
    position: relative;
}
.cll_custom_load img { margin: 0 auto; }

.ymm_quick_select_wrap {
    flex: 0 0 52px;
    align-self: stretch;
}
.ymm_search_inner.sbutton {
    flex: 0 0 11%;
}
.ymm_quick_select_trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;                                                                                                                                                                  margin: auto;
    padding: 0;
    border: 1px solid #1f5f4a;
    border-radius: 4px;
    background: #1f5f4a;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ymm_quick_select_icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 auto;
}
.ymm_quick_select_icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ymm_quick_select_mobile_text {
    display: none;
}
.ymm_quick_select_trigger:hover {
    background: #174737;
    border-color: #174737;
    box-shadow: 0 0 0 1px rgba(23, 71, 55, 0.08);
}
.ymm_quick_select_trigger:focus-visible {
    outline: 2px solid #174737;
    outline-offset: 2px;
}
.ymm_quick_select_modal[hidden] { display: none !important; }
.ymm_quick_select_modal {
    position: fixed;
    inset: 0;
    z-index: 99999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    isolation: isolate;
}
.ymm_quick_select_dialog {
    position: relative;
    z-index: 99999999 !important;
    width: min(100%, 480px);
    max-height: 80vh;
    overflow: auto;
    padding: 22px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}
.ymm_quick_select_dialog h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1f1f1f;
}
.ymm_quick_select_dialog p {
    margin: 0 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}
.ymm_quick_select_tip {
    margin: -6px 0 18px;
    font-size: 13px;
    color: #777;
}
.ymm_quick_select_tip a {
    color: inherit;
    text-decoration: underline;
}
.ymm_quick_select_options {
    display: grid;
    gap: 12px;
}
.ymm_quick_select_option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ymm_quick_select_option:hover {
    border-color: #b8b8b8;
    background: #fcfcfc;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.ymm_quick_select_option_label {
    display: block;
    font-weight: 600;
    color: #222;
}
.ymm_quick_select_option_meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}
.ymm_quick_select_option_badge {
    padding: 4px 8px;
    border-radius: 4px;
    background: #f1f1f1;
    color: #444;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.ymm_quick_select_empty {
    padding: 16px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fafafa;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
.ymm_quick_select_empty strong {
    display: block;
    margin-bottom: 6px;
    color: #222;
}
.ymm_quick_select_empty_action {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
body.ymm-quick-select-open { overflow: hidden; }

@media (max-width: 900px) {
    .feilds_data { flex-wrap: wrap; gap: 10px; }
    .ymm_search_inner { min-width: 33.3%; flex: 0 0 33.3%; }
    .ymm_quick_select_wrap { flex: 0 0 33.3%; }
    .ymm_search_inner.sbutton { flex: 0 0 33.3%; }
}
@media (max-width: 767px) {
    .ymm_search_inner { min-width: 50%; flex: 0 0 50%; }
    .ymm_quick_select_wrap { flex: 0 0 50%; }
    .ymm_search_inner.sbutton { flex: 0 0 50%; }
}
@media (max-width: 767px) {
    .feilds_data {
        gap: 10px;
    }
    .ymm_search_inner,
    .ymm_quick_select_wrap,
    .ymm_search_inner.sbutton {
        min-width: 100%;
        flex: 0 0 100%;
    }
    .ymm_search_inner select {
        width: 100%;
    }
    .ymm_quick_select_trigger {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        margin: 0;
        padding: 0 14px;
        justify-content: center;
        gap: 10px;
    }
    .ymm_quick_select_mobile_text {
        display: inline;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
    }
}
@media (max-width: 400px) {
    .ymm_search_inner { min-width: 100%; flex: 0 0 100%; }
    .ymm_search_inner select { width: 100%; }
    .ymm_quick_select_trigger { width: 100%; min-width: 0; }
    .ymm_quick_select_wrap { flex: 0 0 100%; }
    .ymm_search_inner.sbutton { flex: 0 0 100%; }
}
