:root {
  --hcc-navy: #071526;
  --hcc-navy-2: #101f33;
  --hcc-gold: #c89d51;
  --hcc-cream: #f7f4ef;
  --hcc-text: #152238;
}

.hcc-banner[hidden], .hcc-modal[hidden] { display: none !important; }
.hcc-banner, .hcc-modal, .hcc-footer-controls { box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; }
.hcc-banner *, .hcc-modal *, .hcc-footer-controls * { box-sizing: border-box; }

.hcc-banner {
  position: fixed;
  z-index: 2147483000;
  left: 24px;
  bottom: 24px;
  width: min(520px, calc(100vw - 48px));
  padding: 26px;
  color: #fff;
  background: var(--hcc-navy);
  border: 1px solid rgba(200, 157, 81, .7);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .36);
}
.hcc-banner h2 { margin: 0 0 10px; color: #fff; font: 600 26px/1.2 Georgia, serif; }
.hcc-banner p { margin: 0; color: #e7ebf0; font-size: 16px; line-height: 1.6; }
.hcc-banner a { color: #edc77e; text-decoration: underline; }
.hcc-banner__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }

.hcc-btn {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--hcc-gold);
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.hcc-btn:hover, .hcc-btn:focus-visible { color: var(--hcc-navy); background: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.hcc-btn--primary { color: var(--hcc-navy); background: var(--hcc-gold); }

.hcc-modal { position: fixed; z-index: 2147483001; inset: 0; display: grid; place-items: center; padding: 20px; }
.hcc-modal__backdrop { position: absolute; inset: 0; background: rgba(2, 9, 18, .76); }
.hcc-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 34px;
  color: var(--hcc-text);
  background: var(--hcc-cream);
  border-top: 4px solid var(--hcc-gold);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  outline: 0;
}
.hcc-modal__dialog h2 { margin: 0 50px 22px 0; color: var(--hcc-text); font: 600 32px/1.2 Georgia, serif; }
.hcc-modal__close { position: absolute; top: 15px; right: 18px; width: 42px; height: 42px; border: 0; color: var(--hcc-text); background: transparent; font-size: 34px; cursor: pointer; }
.hcc-category { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid #d8d2c8; }
.hcc-category strong { color: var(--hcc-text); font-size: 18px; }
.hcc-category p { max-width: 500px; margin: 6px 0 0; color: #586171; font-size: 14px; line-height: 1.5; }
.hcc-always { flex: 0 0 auto; color: #6f5528; font-size: 13px; font-weight: 700; }
.hcc-switch { position: relative; flex: 0 0 48px; width: 48px; height: 26px; }
.hcc-switch input { position: absolute; opacity: 0; }
.hcc-switch span { position: absolute; inset: 0; border-radius: 26px; background: #8f96a0; cursor: pointer; transition: .2s; }
.hcc-switch span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.hcc-switch input:checked + span { background: var(--hcc-gold); }
.hcc-switch input:checked + span::before { transform: translateX(22px); }
.hcc-switch input:focus-visible + span { outline: 3px solid #315a8b; outline-offset: 2px; }
.hcc-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.hcc-modal__actions .hcc-btn { color: var(--hcc-navy); }
.hcc-modal__actions .hcc-btn--primary { color: var(--hcc-navy); }
.hcc-modal__actions .hcc-btn:hover { background: #fff; }
.hcc-modal-open { overflow: hidden; }

.hcc-footer-controls { padding: 12px 20px; color: #cbd2dc; background: #061323; text-align: center; font-size: 13px; }
.hcc-footer-controls a, .hcc-footer-controls button { color: #e0c083; text-decoration: none; }
.hcc-footer-controls button { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.hcc-footer-controls span { margin: 0 9px; opacity: .45; }

.hcc-policy { max-width: 980px; margin: 0 auto; padding: 90px 28px; color: #3f4958; font: 17px/1.75 Arial, Helvetica, sans-serif; }
.hcc-policy__header { margin-bottom: 54px; padding-bottom: 35px; border-bottom: 1px solid #d9d4ca; }
.hcc-policy__eyebrow { margin: 0 0 16px; color: #aa7f36; font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hcc-policy h1 { margin: 0 0 15px; color: var(--hcc-text); font: 600 clamp(40px, 6vw, 66px)/1.08 Georgia, serif; }
.hcc-policy h2 { margin: 46px 0 12px; color: var(--hcc-text); font: 600 31px/1.25 Georgia, serif; }
.hcc-policy h3 { margin: 26px 0 5px; color: var(--hcc-text); font-size: 19px; }
.hcc-policy p { margin: 0 0 15px; }
.hcc-policy address { font-style: normal; }
.hcc-policy a { color: #8d641f; }
.hcc-policy__settings { margin-top: 10px; padding: 14px 20px; border: 1px solid var(--hcc-gold); color: var(--hcc-navy); background: var(--hcc-gold); font-weight: 700; cursor: pointer; }

@media (max-width: 640px) {
  .hcc-banner { left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; overflow: auto; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
  .hcc-banner h2 { font-size: 23px; }
  .hcc-banner p { font-size: 14px; line-height: 1.5; }
  .hcc-banner__actions { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .hcc-btn { width: 100%; }
  .hcc-modal { padding: 0; align-items: end; }
  .hcc-modal__dialog { width: 100%; max-height: 92vh; padding: 26px 18px calc(22px + env(safe-area-inset-bottom)); border-top-width: 3px; }
  .hcc-modal__dialog h2 { font-size: 25px; }
  .hcc-category { gap: 12px; }
  .hcc-category strong { font-size: 16px; }
  .hcc-modal__actions { grid-template-columns: 1fr; }
  .hcc-policy { padding: 55px 20px; font-size: 16px; }
  .hcc-policy h2 { font-size: 27px; }
}

/* Desktop: isolate the consent UI from large typography and button rules in the theme. */
@media (min-width: 641px) {
  body .hcc-banner {
    width: min(460px, calc(100vw - 48px)) !important;
    padding: 20px !important;
  }
  body .hcc-banner .hcc-banner__copy h2 {
    margin: 0 0 8px !important;
    font: 600 21px/1.25 Georgia, serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body .hcc-banner .hcc-banner__copy p,
  body .hcc-banner .hcc-banner__copy a {
    font: normal 400 14px/1.5 Arial, Helvetica, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body .hcc-banner .hcc-banner__actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }
  body .hcc-banner .hcc-banner__actions .hcc-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    font: normal 700 13px/1.2 Arial, Helvetica, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body .hcc-banner .hcc-banner__actions .hcc-btn:last-child {
    grid-column: 1 / -1;
  }
}
