/* Granular banner add-on — only gb-ad prefixed selectors to avoid changing booking/LINE UI */
.gb-ad-section{margin:28px 0 30px;max-width:100%;min-width:0}
.gb-ad-section[hidden],.gb-ad-controls[hidden]{display:none!important}
.gb-ad-topline{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px;color:#9a431e;font-size:11px;letter-spacing:.12em;font-weight:750}
.gb-ad-disclosure{letter-spacing:normal;border:1px solid #f1c8a5;color:#9a431e;border-radius:30px;padding:5px 10px;background:#fff8f2;white-space:nowrap}
.gb-ad-stage{background:#fff;border:1px solid #eed9c8;border-radius:18px;overflow:hidden;box-shadow:0 8px 25px rgba(112,56,11,.06)}
.gb-ad-link{display:block;width:100%;overflow:hidden;background:#fff7ef;text-decoration:none}
.gb-ad-link:focus-visible{outline:3px solid #ea580c;outline-offset:-3px}
.gb-ad-link picture,.gb-ad-link img{display:block;width:100%}
.gb-ad-link img{aspect-ratio:4/1;object-fit:cover;max-height:360px}
.gb-ad-controls{padding:7px 12px;display:flex;justify-content:center;align-items:center;gap:20px;background:#fffaf5;color:#9a431e;font-weight:700;font-size:13px}
.gb-ad-controls button{appearance:none;border:1px solid #f6d5b7;background:#fff;color:#9a431e;border-radius:9px;padding:2px 14px;font-size:22px;cursor:pointer;line-height:1.2}
.gb-ad-controls button:hover{background:#ffedd5}
.gb-ad-controls button:focus-visible{outline:2px solid #ea580c;outline-offset:2px}
/* Back-office */
.gb-ad-admin-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:16px}
.gb-ad-admin-heading h3{margin:0 0 4px}
.gb-ad-note{font-size:13px;color:#725b4a;margin-top:6px}
.gb-ad-admin-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.gb-ad-panel{border:1px solid #eed9c8;border-radius:15px;padding:20px;background:#fff;min-width:0;margin-bottom:18px;color:#38261c}
.gb-ad-panel h3,.gb-ad-panel h4{margin:0 0 14px;color:#582d15}
.gb-ad-field{display:block;margin:12px 0;font-size:13px;font-weight:650;color:#582d15}
.gb-ad-field input[type="text"],.gb-ad-field input[type="url"],.gb-ad-field input[type="datetime-local"],.gb-ad-field input[type="number"],.gb-ad-field input[type="file"]{margin:5px 0 0;display:block;width:100%;max-width:100%;padding:11px 12px;box-sizing:border-box;border:1px solid #d9c8bd;border-radius:10px;background:#fff;color:#33271c;font-size:14px}
.gb-ad-field input[type="file"]{padding:10px}
.gb-ad-field input:focus-visible{outline:2px solid #ea580c;outline-offset:1px}
.gb-ad-field small{display:block;font-weight:400;color:#786255;margin-top:5px}
.gb-ad-flex{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.gb-ad-checkbox{display:flex;align-items:center;gap:10px;font-size:14px;margin-top:12px}
.gb-ad-checkbox input{width:18px;height:18px;accent-color:#ea580c}
.gb-ad-btn{font:inherit;background:#ea580c;color:white;border:0;padding:11px 17px;border-radius:10px;cursor:pointer;font-size:13px;font-weight:700}
.gb-ad-btn:hover{background:#c2410c}
.gb-ad-btn:disabled{opacity:.55;cursor:wait}
.gb-ad-btn-secondary{background:#fff;border:1px solid #d9bba8;color:#8c431c}
.gb-ad-btn-secondary:hover{background:#fff7ed}
.gb-ad-btn-danger{background:#fff;border:1px solid #fecaca;color:#b91c1c}
.gb-ad-btn-danger:hover{background:#fff1f2}
.gb-ad-message{min-height:20px;color:#9a3412;font-size:13px;margin:10px 0}
.gb-ad-list{display:grid;gap:13px}
.gb-ad-entry{padding:12px;border-radius:12px;border:1px solid #ead8ca;background:#fffdfa;display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;align-items:start}
.gb-ad-entry img{display:block;width:110px;aspect-ratio:4/2;object-fit:cover;border-radius:8px;background:#fff0e6}
.gb-ad-entry-title{font-size:14px;font-weight:700;color:#592c13;word-break:break-word}
.gb-ad-entry-meta{font-size:12px;color:#756151;word-break:break-word;margin:5px 0}
.gb-ad-entry-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.gb-ad-badge{font-size:11px;border-radius:20px;background:#ffedd5;color:#9a3412;padding:3px 8px;white-space:nowrap}
.gb-ad-creative-admin{font-size:12px;color:#625148}
@media(max-width:850px){.gb-ad-admin-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.gb-ad-section{margin:20px 0 24px}.gb-ad-topline{font-size:9px;letter-spacing:.06em}.gb-ad-link img{aspect-ratio:15/8;max-height:none}.gb-ad-panel{padding:14px}.gb-ad-entry{grid-template-columns:88px minmax(0,1fr)}.gb-ad-entry img{width:88px}}

/* Stack mode: all active banners are shown top-to-bottom, no slider buttons. */
.gb-ad-stage--stack{border:0;box-shadow:none;background:transparent;overflow:visible;border-radius:0}
.gb-ad-stage--stack .gb-ad-creative{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.gb-ad-stage--stack .gb-ad-link{border:1px solid #eed9c8;border-radius:18px;box-shadow:0 8px 25px rgba(112,56,11,.06);overflow:hidden}
.gb-ad-stage--stack .gb-ad-link img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
.gb-ad-stage--stack .gb-ad-controls{display:none!important}
.gb-ad-config{margin-bottom:20px}
.gb-ad-config-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}
.gb-ad-field select{margin:5px 0 0;display:block;width:100%;padding:11px 12px;border:1px solid #d9c8bd;border-radius:10px;background:#fff;color:#33271c;font-size:14px}
@media(max-width:640px){.gb-ad-stage--stack .gb-ad-creative{gap:12px}.gb-ad-stage--stack .gb-ad-link{border-radius:13px}.gb-ad-config-layout{grid-template-columns:1fr}}

/* Customer requested top-to-bottom banners again, slightly smaller than original. */
.gb-ad-section{width:min(100%,1040px);max-width:1040px;margin:19px auto 23px;min-width:0}
.gb-ad-topline{margin:0 0 7px}
.gb-ad-stage--stack{border:0;box-shadow:none;background:transparent;overflow:visible;border-radius:0}
.gb-ad-stage--stack .gb-ad-creative{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;overflow:visible;padding:0;scroll-snap-type:none}
.gb-ad-stage--stack .gb-ad-link{display:block;min-width:0;width:100%;border:1px solid #eed9c8;border-radius:13px;box-shadow:0 8px 25px rgba(112,56,11,.06);overflow:hidden}
.gb-ad-stage--stack .gb-ad-link picture,.gb-ad-stage--stack .gb-ad-link img{display:block;width:100%}
.gb-ad-stage--stack .gb-ad-link img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
.gb-ad-stage--stack .gb-ad-controls{display:none!important}
@media(max-width:640px){
 .gb-ad-section{width:94%;max-width:94%;margin:13px auto 16px}
 .gb-ad-topline{font-size:9px;margin-bottom:6px;letter-spacing:.06em}
 .gb-ad-stage--stack .gb-ad-creative{gap:10px}
 .gb-ad-stage--stack .gb-ad-link{border-radius:12px}
 .gb-ad-stage--stack .gb-ad-link img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
}

/* Full natural aspect ratio: one banner per page, no artificial downscaling/cropping */
.gb-ad-stage .gb-ad-link img{width:100%;height:auto;aspect-ratio:auto;max-height:none;object-fit:contain}
.gb-ad-stage--stack .gb-ad-creative{gap:14px}
@media(max-width:640px){.gb-ad-section{margin:16px 0 20px}.gb-ad-stage .gb-ad-link img{width:100%;height:auto;aspect-ratio:auto;max-height:none}}

/* 2026-11-03: full-width, centered promotions on both customer pages.
   Supersedes the former 94% mobile width and 1040px desktop cap. */
body[data-gb-ad-page="booking"] .gb-ad-section,
body[data-gb-ad-page="fitness"] .gb-ad-section {
  display:block;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:20px auto 22px;
}
body[data-gb-ad-page] .gb-ad-section[hidden] {display:none!important}
body[data-gb-ad-page] .gb-ad-stage,
body[data-gb-ad-page] .gb-ad-creative,
body[data-gb-ad-page] .gb-ad-link,
body[data-gb-ad-page] .gb-ad-link picture {min-width:0;max-width:100%;width:100%}
body[data-gb-ad-page] .gb-ad-link img {
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  max-height:none;
  aspect-ratio:auto;
  object-fit:contain;
}
@media (max-width:640px) {
  body[data-gb-ad-page="booking"] .gb-ad-section,
  body[data-gb-ad-page="fitness"] .gb-ad-section {
    width:100%;
    max-width:100%;
    margin:14px auto 20px;
  }
}
