/* ---- Kategori-drawer, mobil (h&oslash;jre side) ---- */

.mobile-cat-bar { display: none; }

.mobile-cat-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
}

.mobile-cat-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .25s ease;
}

.mobile-cat-overlay.is-visible { opacity: 1; }
.mobile-cat-overlay[hidden]   { display: none; }

.mobile-cat-drawer {
    position: fixed;
    top: 0;
    right: 0;                       /* <- h&oslash;jre side */
    z-index: 1050;
    display: flex;
    flex-direction: column;
    width: 85%;
    max-width: 340px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, .2);
    transform: translateX(100%);    /* <- ud til h&oslash;jre */
    transition: transform .28s ease;
    visibility: hidden;
}

.mobile-cat-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-cat-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 14px 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.mobile-cat-close {
    border: 0;
    background: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.mobile-cat-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 15px 30px;
}

/* Nulstil grid-klasserne p&aring; kolonnen mens den ligger i drawer'en.
   Den beholder sine col-s-* / col-m-* klasser, s&aring; de skal overstyres. */
.mobile-cat-drawer__body > .is-in-drawer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
}

body.mobile-cat-open { overflow: hidden; }

/* Kun mobil &ndash; tjek dit faktiske s-breakpoint i libs.css */
@media (max-width: 767px) {
    .mobile-cat-bar { display: block; margin: 15px 0; }
}

@media (min-width: 768px) {
    .mobile-cat-drawer,
    .mobile-cat-overlay { display: none !important; }
}