
/* Chip 'n Dip Mobile UI v1.3.3 */
.cnd-mobile-shell,.cnd-mobile-menu-backdrop,.cnd-mobile-drawer,.cnd-mobile-bottom{display:none}

@media (max-width:768px){
html,body{overflow-x:hidden}

/* Remove Astra desktop/mobile header and the complete Astra/broker footer on mobile. */
#masthead,.site-header,.ast-mobile-header-wrap,.ast-primary-header-bar,.main-header-bar-wrap,
#colophon,.site-footer,.site-footer-primary-section-1,.site-footer-primary-section-2,
.site-footer-primary-section-3,.site-footer-primary-section-4,
.site-primary-footer-wrap,.site-above-footer-wrap,.site-below-footer-wrap{
 display:none!important;
}

/* Branded header */
.cnd-mobile-shell{
 display:block!important;position:relative;z-index:9990;width:100%;
 background:#ef2b2f;
 background-image:
 radial-gradient(circle at 20% 30%,rgba(255,255,255,.09) 0 2px,transparent 3px),
 radial-gradient(circle at 75% 65%,rgba(255,255,255,.07) 0 3px,transparent 4px);
 background-size:46px 46px,68px 68px;
}
.cnd-mobile-brand{
 position:relative;min-height:165px;display:flex;align-items:center;justify-content:center;
 padding:10px 62px 6px 14px;box-sizing:border-box;background:transparent;
}
.cnd-mobile-logo{display:flex;align-items:center;justify-content:center;text-decoration:none}
.cnd-mobile-logo-img{display:block;width:auto;height:auto;max-width:235px;max-height:150px;object-fit:contain}
.cnd-mobile-site-name{color:#fff;font-size:25px;font-weight:800}
.cnd-mobile-menu-button{
 position:absolute;right:14px;top:17px;width:43px;height:43px;padding:8px;border:0;border-radius:4px;
 background:#5a0b9d!important;cursor:pointer;
}
.cnd-menu-lines,.cnd-menu-lines i{display:block}
.cnd-menu-lines i{height:3px;margin:5px 0;border-radius:2px;background:#fff}
.cnd-mobile-cta-bar{display:grid;grid-template-columns:1fr 1fr;gap:1px;padding:0 8px 8px}
.cnd-mobile-cta{
 display:flex;align-items:center;justify-content:center;min-height:43px;padding:8px 5px;
 background:#5a0b9d!important;border:1px solid rgba(255,255,255,.55);border-radius:2px;
 color:#fff!important;text-decoration:none!important;text-transform:uppercase;text-align:center;
 font-size:10px;line-height:1.15;font-weight:800;
}

/* Drawer */
.cnd-mobile-menu-backdrop{position:fixed;inset:0;z-index:99998;background:rgba(0,0,0,.58)}
.cnd-mobile-menu-backdrop.is-open{display:block!important}
.cnd-mobile-drawer{
 display:block!important;position:fixed;top:0;right:0;z-index:99999;width:min(86vw,360px);
 height:100vh;height:100dvh;overflow-y:auto;box-sizing:border-box;
 background:#ef2b2f;
 background-image:
 radial-gradient(circle at 20% 30%,rgba(255,255,255,.09) 0 2px,transparent 3px),
 radial-gradient(circle at 75% 65%,rgba(255,255,255,.07) 0 3px,transparent 4px);
 background-size:46px 46px,68px 68px;
 box-shadow:-8px 0 28px rgba(0,0,0,.28);transform:translateX(105%);transition:transform .25s ease;
 color:#fff;
}
.cnd-mobile-drawer.is-open{transform:translateX(0)}
.cnd-drawer-head{position:absolute;right:10px;top:8px;z-index:2}
.cnd-mobile-menu-close{
 width:42px;height:42px;border:0;background:transparent!important;color:#fff!important;
 font-size:40px;line-height:38px;cursor:pointer;
}
.cnd-drawer-logo{text-align:center;padding:20px 60px 8px}
.cnd-drawer-logo img{max-width:180px;max-height:125px;width:auto;height:auto}
.cnd-mobile-nav{display:flex;flex-direction:column;padding:0 14px}
.cnd-mobile-nav a{
 display:block;padding:11px 4px;border-bottom:1px solid rgba(255,255,255,.55);
 color:#fff!important;text-decoration:none!important;text-transform:uppercase;font-weight:800;font-size:12px;
}
.cnd-drawer-actions{display:grid;gap:7px;padding:12px 14px}
.cnd-drawer-actions a,.cnd-social-links a{
 display:block;padding:11px 8px;background:#5a0b9d!important;border:1px solid rgba(255,255,255,.55);
 border-radius:2px;color:#fff!important;text-align:center;text-decoration:none!important;
 text-transform:uppercase;font-size:10px;font-weight:800;
}
.cnd-drawer-info{padding:4px 17px 80px;color:#fff;font-size:11px;line-height:1.45}
.cnd-contact-lines{display:grid;gap:9px;margin:6px 0 13px}
.cnd-contact-lines a{color:#fff!important;text-decoration:none!important}
.cnd-social-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 18px}
.cnd-info-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:8px 0 17px}
.cnd-info-columns strong,.cnd-hours strong{display:block;margin-bottom:7px;color:#fff}
.cnd-info-columns a{display:block;color:#fff!important;text-decoration:none!important;margin:4px 0}
.cnd-hours div{margin:4px 0}

/* Custom mobile-only footer: purple links FIRST, red copyright LAST */
.cnd-mobile-bottom{display:block!important;width:100%;margin:0!important;padding:0!important}
.cnd-mobile-footer{
 display:grid!important;grid-template-columns:repeat(5,1fr);width:100%;margin:0!important;padding:0!important;
 background:#5a0b9d!important;
}
.cnd-mf-item{
 display:flex;min-width:0;min-height:43px;flex-direction:column;align-items:center;justify-content:center;
 gap:2px;padding:5px 2px 4px;box-sizing:border-box;border-right:1px solid rgba(255,255,255,.16);
 color:#fff!important;text-decoration:none!important;text-align:center;font-size:8px;line-height:1.05;font-weight:800;
}
.cnd-mf-item:last-child{border-right:0}
.cnd-mf-icon{display:block;color:#fff;font-size:14px;line-height:1}
.cnd-mobile-copyright{
 width:100%;box-sizing:border-box;margin:0;padding:8px 5px 9px;background:#ef2b2f;
 color:#fff;text-align:center;text-transform:uppercase;font-size:7px;line-height:1.15;font-weight:800;
}

/* Mobile video compatibility */
video{max-width:100%}
.elementor-widget-video video,.elementor-background-video-container video,.video-banner video{
 width:100%;object-fit:cover
}
}


/* v1.2.8 — homepage only: remove the empty reserved content/footer space
   visible after the homepage gallery and before the compact mobile footer. */
@media (max-width:768px){
    body.home #content,
    body.home .site-content,
    body.home .ast-container,
    body.home #primary,
    body.home .site-main,
    body.home article,
    body.home .entry-content {
        min-height:0 !important;
        height:auto !important;
        padding-bottom:0 !important;
        margin-bottom:0 !important;
    }

    body.home .entry-content > *:last-child,
    body.home .elementor-location-single > *:last-child,
    body.home .elementor > *:last-child {
        margin-bottom:0 !important;
        padding-bottom:0 !important;
    }
}


/* v1.2.9 — HOME PAGE ONLY
   Astra can make #page / #content fill the viewport with flex-grow.
   The previous height/min-height reset did not cancel that flex allocation,
   which is the white block visible between the gallery and our mobile footer.
*/
@media (max-width:768px){
    body.home #page,
    body.home .site {
        min-height:0 !important;
        height:auto !important;
    }

    body.home #content,
    body.home .site-content {
        flex:0 0 auto !important;
        flex-grow:0 !important;
        flex-shrink:0 !important;
        min-height:0 !important;
        height:auto !important;
        margin-bottom:0 !important;
        padding-bottom:0 !important;
    }

    body.home #primary,
    body.home .content-area,
    body.home .site-main,
    body.home article,
    body.home .entry-content {
        min-height:0 !important;
        height:auto !important;
        margin-bottom:0 !important;
        padding-bottom:0 !important;
    }

    /* The compact custom footer must remain in normal document flow. */
    body.home .cnd-mobile-bottom {
        position:relative !important;
        clear:both !important;
        margin-top:0 !important;
    }
}


/* v1.3.1 — restore the branded Chip 'n Dip red pattern behind the mobile logo/menu.
   Uses the site's existing footer/background image when present. */
@media (max-width:768px){
  .cnd-mobile-shell,
  .cnd-mobile-drawer{
    background-color:#ef2b2f !important;
    background-image:url("https://chipndip.co.za/wp-content/uploads/2026/05/Footer-Background-scaled.jpg") !important;
    background-repeat:repeat !important;
    background-position:center top !important;
    background-size:auto !important;
  }
}


/* v1.3.2 — exact supplied Chip 'n Dip pattern image behind mobile logo + drawer */
@media (max-width:768px){
  .cnd-mobile-shell,
  .cnd-mobile-drawer{
    background-color:#ff2f32 !important;
    background-image:url("images/chipndip-red-pattern.jpg") !important;
    background-repeat:repeat !important;
    background-position:center top !important;
    background-size:auto 475px !important;
  }

  .cnd-mobile-brand{
    background:transparent !important;
  }
}


/* v1.3.3 — OPEN MENU ONLY:
   Keep logo and all menu content, but remove the patterned image from the drawer
   so navigation/contact text remains clear and readable. */
@media (max-width:768px){
    .cnd-mobile-drawer{
        background-image:none !important;
        background-color:#ef2b2f !important;
    }
}
