/* v3.5.0 – (1) special-offers page never clips / never hides under the next section, (2) checkout privacy tick, (3) footer accept bar. Loaded last; every rule is scoped. */

/* ---------- 1. offers page (grid) ---------- */
.mop-offers{position:relative;z-index:2;display:grid!important;align-content:start;overflow:visible!important;height:auto!important;max-height:none!important;contain:none!important}
.mop-offers>.mop-offer{height:auto!important;max-height:none!important;min-height:0;align-self:start;overflow:hidden}
.mop-offers+*{clear:both}
/* every wrapper around the grid must grow with it (Elementor containers, shortcode widgets, our own boxes) */
.mop-s-code,.mop-s-code .mop-in,.mop-s-code .mop-codebox,.mop-s-code .e-con-inner,.mop-s-code .elementor-widget,.mop-s-code .elementor-widget-container,.mop-s-code .elementor-shortcode,.mop-s-code .mop-container,.mop-s-code .mop-section{height:auto!important;max-height:none!important;overflow:visible!important;contain:none!important;content-visibility:visible!important}
.mop-s-code .elementor-widget,.mop-s-code .e-con{flex-shrink:0}
.mop-s-code{padding-bottom:40px!important}
/* the section after the offers always starts below the cards */
.mop-s-code+*{position:relative;z-index:0}
@media(max-width:600px){
  .mop-offers>.mop-offer{container-type:normal}
  .mop-offers>.mop-offer .side{min-width:0}
  .mop-offers>.mop-offer .t,.mop-offers>.mop-offer .t a{overflow-wrap:anywhere;word-break:normal}
  .mop-s-code{padding-bottom:48px!important}
}

/* ---------- 2. checkout privacy tick ---------- */
.mop-privacy{display:block;margin:14px 0 10px!important;padding:12px 14px;border:1px solid #d7e9de;border-radius:12px;background:#f6fbf8}
.mop-privacy label{display:flex!important;align-items:flex-start;gap:10px;margin:0;font-size:14px;line-height:1.5;color:#17372a;cursor:pointer}
.mop-privacy input[type=checkbox]{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:#14804f}
.mop-privacy a{color:#0e6b43;font-weight:700;text-decoration:underline}
.mop-privacy abbr.required{color:#d63638;text-decoration:none;border:0}
.mop-privacy.is-err{border-color:#d63638;background:#fff5f5;animation:mop35shake .35s}
@keyframes mop35shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}

/* ---------- 3. accept bar (above the footer, thin line, low opacity) ---------- */
.mop-accept{position:relative;clear:both;width:100%;box-sizing:border-box;padding:10px 16px 8px;border-top:1px solid rgba(20,128,79,.28);background:rgba(246,251,248,.55);opacity:.7;transition:opacity .2s}
.mop-accept:hover,.mop-accept:focus-within{opacity:1}
.mop-accept-in{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;max-width:1152px;margin:0 auto}
.mop-accept-t{margin:0;font-size:13px;line-height:1.5;color:#3d5a4c}
.mop-accept-t a{color:#0e6b43;font-weight:600;text-decoration:underline}
.mop-accept-em{height:34px;min-width:200px;padding:0 12px;border:1px solid rgba(20,128,79,.3);border-radius:999px;background:rgba(255,255,255,.7);font:inherit;font-size:13px;color:#17372a}
.mop-accept-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.mop-accept-btn{height:34px;padding:0 20px;border:1px solid rgba(20,128,79,.55);border-radius:999px;background:rgba(20,128,79,.9);color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.mop-accept-btn:hover{background:#0e6b43}
.mop-accept-btn[disabled]{opacity:.6;cursor:wait}
.mop-accept-msg{margin:4px 0 0;min-height:0;text-align:center;font-size:12.5px;color:#0e6b43}
.mop-accept-msg:empty{display:none}
.mop-accept-msg.err{color:#c0392b}
.mop-accept.is-done{opacity:.85}
@media(max-width:600px){
  .mop-accept{padding:10px 14px 8px}
  .mop-accept-in{gap:8px}
  .mop-accept-t{flex:1 1 100%;text-align:center;font-size:12.5px}
  .mop-accept-em{flex:1 1 0;min-width:0}
}
/* never inside checkout / cart / account / the page-loading screen */
body.woocommerce-checkout .mop-accept,body.woocommerce-cart .mop-accept,body.woocommerce-account .mop-accept{display:none}
