/* Mobile Filter Drawer Styles */

/* Show trigger button only on screens smaller than 768px */
.mfd-trigger-btn-5e5c538c {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #111;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .mfd-trigger-btn-5e5c538c {
        display: flex;
    }
}

/* Slide-in Drawer container */
.mfd-drawer-5e5c538c {
    position: fixed;
    top: 0;
    right: -320px; /* Hidden offscreen by default */
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

/* Handle WordPress Admin Bar offset */
body.admin-bar .mfd-drawer-5e5c538c {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
    body.admin-bar .mfd-drawer-5e5c538c {
        top: 46px;
        height: calc(100% - 46px);
    }
}

.mfd-drawer-5e5c538c.is-active {
    right: 0;
}

/* Drawer overlay */
.mfd-overlay-5e5c538c {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mfd-overlay-5e5c538c.is-active {
    opacity: 1;
    visibility: visible;
}

/* Header */
.mfd-drawer-header-5e5c538c {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mfd-drawer-header-5e5c538c h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.mfd-close-btn-5e5c538c {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

/* Form body */
.mfd-drawer-body-5e5c538c {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mfd-filter-group-5e5c538c h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mfd-select-5e5c538c {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.mfd-price-inputs-5e5c538c {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mfd-price-inputs-5e5c538c input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Footer / Actions */
.mfd-drawer-footer-5e5c538c {
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mfd-apply-btn-5e5c538c {
    background-color: #111;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.mfd-reset-btn-5e5c538c {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: underline;
    font-size: 13px;
    padding: 4px;
}
