/* Optional states. Hidden until their source or the preview controls enable them. */
[hidden] { display: none !important; }
#site-offer { position: sticky; top: 0; z-index: 50; background: #522125; color: #fff; border-bottom: 1px solid #b75d65; }
.offer-inner { max-width: 1200px; margin: auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; font-size: 16px; }
.offer-inner > span { flex: 1; }
.offer-inner strong { display: block; }
.offer-inner a { color: #fff; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.offer-inner button, .live-heading button, .dialog-close { width: 44px; height: 44px; flex: 0 0 44px; color: #fff; background: transparent; border: 1px solid #a78a8d; border-radius: 6px; cursor: pointer; font-size: 24px; }
.preview-tools { margin-top: 24px; padding: 20px; border: 1px dashed #62656c; border-radius: 8px; color: #d6d7db; font-size: 16px; }
.preview-tools summary { cursor: pointer; min-height: 44px; align-content: center; }
.preview-tools p { margin: 12px 0; }
.preview-tools > div, .dialog-actions, .coupon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.preview-tools button, .coupon-row button { font: inherit; color: #f5f5f6; background: #24262b; border: 1px solid #70737b; border-radius: 6px; min-height: 44px; padding: 8px 16px; cursor: pointer; }
.preview-tools button[aria-pressed="true"] { background: #833039; border-color: #dd939a; }
.feature-dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 32px; border: 1px solid #676b73; border-radius: 10px; color: #f4f4f5; background: #191b1f; font: 18px/1.6 "Source Sans 3", sans-serif; }
.feature-dialog::backdrop { background: rgb(0 0 0 / .78); }
.feature-dialog h2 { font-size: 26px; line-height: 1.25; margin: 20px 40px 20px 0; font-weight: 600; }
.feature-dialog p { margin: 16px 0; }
.feature-dialog a { color: #fff; }
.feature-dialog .dialog-close { position: absolute; top: 16px; right: 16px; }
.dialog-eyebrow { color: #cccfd5; font-size: 14px; padding-right: 40px; }
.feature-note, #privacy-status, #coupon-status { color: #c8cad0; font-size: 16px; }
.coupon-row code { background: #101113; padding: 10px 16px; border-radius: 4px; overflow-wrap: anywhere; user-select: all; }
#live-widget { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(350px, calc(100% - 32px)); box-shadow: 0 10px 40px #0008; border: 1px solid #777c86; border-radius: 10px; background: #191b1f; overflow: hidden; font-size: 16px; color: #fff; }
.live-heading { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; gap: 12px; }
.live-heading strong { font-size: 18px; }
.live-heading strong span { display: block; font-size: 14px; font-weight: 400; color: #d3d4d8; }
.live-poster { aspect-ratio: 16 / 7; background: #0d0f12; display: grid; place-content: center; text-align: center; border-block: 1px solid #454952; }
.live-poster > span { font-size: 36px; }
.live-poster p { margin: 0; font-size: 16px; color: #c8cad0; }
.live-body { padding: 16px; }
.live-body p { margin: 0 0 12px; }
.live-body button { font: inherit; padding: 10px 14px; color: #d6d7db; background: #32343a; border: 1px solid #666a73; border-radius: 6px; min-height: 44px; width: 100%; }
#live-restore { display: flex; gap: 10px; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; font: inherit; color: #fff; background: #191b1f; border: 0; min-height: 52px; cursor: pointer; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #f07a82; }
.back-to-top { position: fixed; bottom: 20px; left: 20px; z-index: 40; width: 44px; height: 44px; border: 1px solid #848892; border-radius: 8px; color: #fff; background: #24262b; cursor: pointer; font-size: 24px; }
:where(.preview-tools, .feature-dialog, #site-offer, #live-widget) :focus-visible, .back-to-top:focus-visible { outline: 3px solid #f7adb5; outline-offset: 4px; }
@media (max-width: 600px) {
  .offer-inner { padding: 10px 16px; gap: 8px 12px; flex-wrap: wrap; }
  .offer-inner > span { flex-basis: calc(100% - 60px); }
  .offer-inner button { order: 1; }
  .offer-inner a { order: 2; }
  .feature-dialog { padding: 24px 20px; }
  #live-widget { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
