:root { --island-analytics-cream: #f5eee6; --island-analytics-yellow: #f8bf3f; --island-analytics-red: #f34b40; }
.analytics-notice[hidden], .quick-feedback[hidden] { display: none !important; }
.analytics-notice { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; box-sizing: border-box; padding: 10px max(18px, calc((100vw - 1080px) / 2)); border-top: 1px solid rgba(245,238,230,.28); background: rgba(33,29,26,.97); color: var(--cream, var(--island-analytics-cream)); box-shadow: 0 -4px 14px rgba(0,0,0,.24); }
.analytics-notice p { margin: 0; font-size: .82rem; line-height: 1.45; }
.analytics-notice-copy-mobile { display: none; }
.analytics-notice-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.analytics-notice button, .analytics-notice a { min-height: 36px; border: 1px solid rgba(248,191,63,.85); background: transparent; color: var(--yellow, var(--island-analytics-yellow)); padding: 6px 10px; font: inherit; font-size: .8rem; font-weight: 850; cursor: pointer; text-decoration: none; }
.analytics-notice-close { min-width: 36px; padding: 3px !important; border-color: rgba(245,238,230,.4) !important; color: var(--cream, var(--island-analytics-cream)) !important; font-size: 1.35rem !important; line-height: 1; }
body.analytics-notice-visible { padding-bottom: calc(var(--analytics-notice-height, 0px) + env(safe-area-inset-bottom)); }
.quick-feedback { position: fixed; z-index: 70; right: max(18px, calc((100vw - 1080px) / 2)); bottom: max(18px, env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 32px)); box-sizing: border-box; padding: 18px; border: 1px solid rgba(243,75,64,.9); background: #211d1a; color: var(--cream, var(--island-analytics-cream)); box-shadow: 7px 7px 0 rgba(243,75,64,.82); }
.quick-feedback-kicker { margin: 0 0 5px; color: var(--yellow, var(--island-analytics-yellow)); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.quick-feedback h2 { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.quick-feedback-message { margin: 0; font-size: 1.03rem; font-weight: 850; }
.quick-feedback-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--cream, var(--island-analytics-cream)); font-size: 1.45rem; cursor: pointer; }
.quick-feedback-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.quick-feedback-options button, .quick-feedback-submit { min-height: 42px; border: 1px solid rgba(245,238,230,.45); background: transparent; color: var(--cream, var(--island-analytics-cream)); padding: 8px 11px; font: inherit; font-size: .86rem; font-weight: 850; cursor: pointer; }
.quick-feedback-options button:hover, .quick-feedback-options button.active, .quick-feedback-submit:not(:disabled):hover { border-color: var(--yellow, var(--island-analytics-yellow)); background: var(--yellow, var(--island-analytics-yellow)); color: #211d1a; }
.quick-feedback-text { display: grid; gap: 6px; margin-top: 12px; color: var(--cream, var(--island-analytics-cream)); font-size: .78rem; font-weight: 750; }
.quick-feedback-text input { box-sizing: border-box; width: 100%; min-height: 42px; border: 1px solid rgba(245,238,230,.45); background: #151210; color: var(--cream, var(--island-analytics-cream)); padding: 8px 10px; font: inherit; }
.quick-feedback-submit { width: 100%; margin-top: 10px; border-color: var(--red, var(--island-analytics-red)); background: var(--red, var(--island-analytics-red)); color: #fff; }
.quick-feedback-submit:disabled { cursor: not-allowed; opacity: .45; }

@media (max-width: 767px) {
  .analytics-notice { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "copy close" "actions actions"; gap: 0 8px; min-height: 0; max-height: none; overflow: visible; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); }
  .analytics-notice-copy { grid-area: copy; display: flex; align-items: center; min-width: 0; min-height: 44px; font-size: .76rem !important; line-height: 1.25 !important; white-space: nowrap; }
  .analytics-notice-copy-desktop { display: none; }
  .analytics-notice-copy-mobile { display: inline; overflow: hidden; text-overflow: ellipsis; }
  .analytics-notice-actions { grid-area: actions; display: flex; align-items: center; gap: 0; min-height: 44px; }
  .analytics-notice-actions .analytics-notice-privacy, .analytics-notice-actions .analytics-notice-optout { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 0; border: 0; background: transparent; color: var(--yellow, var(--island-analytics-yellow)); font-size: .78rem; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
  .analytics-notice-actions .analytics-notice-optout::before { content: '·'; margin: 0 8px; color: var(--cream, var(--island-analytics-cream)); text-decoration: none; }
  .analytics-notice-close { grid-area: close; min-width: 44px !important; min-height: 44px !important; padding: 0 !important; border: 0 !important; background: transparent !important; font-size: 1.3rem !important; }
  .quick-feedback { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); width: calc(100vw - 28px); padding: 16px; }
}
