/*
  Consent prompt overrides — House of Sails.

  Linked AFTER /vendor/silktide/silktide-consent-manager.css in index.html.
  The vendored stylesheet is an upstream copy and must not be edited, so this
  file carries the whole re-theme: site palette, site type, pill CTAs, and the
  floating cookie icon hidden entirely (withdrawal lives in the site footer and
  on /privacy instead).
*/

/* --------------------------------
  Palette, type, icon
-------------------------------- */
#stcm-wrapper {
  --primaryColor: #0ea5e9; /* sky-500 — CTAs, links, toggles */
  --textColor: #e2e8f0; /* slate-200 — copy on the dark card */
  --backgroundColor: #050505; /* matches the site canvas */
  --fontFamily: 'Inter', ui-sans-serif, system-ui, sans-serif; /* matches --font-sans */
  /* The icon is hidden below; muted anyway so nothing can flash. */
  --iconColor: #0f172a;
  --iconBackgroundColor: #334155;
}

/*
  The floating cookie icon is redundant: consent can be withdrawn from the site
  footer ("Cookie settings") and from /privacy. showCookieIcon() forces an
  inline display, so !important is required to keep it hidden.
*/
#stcm-icon {
  display: none !important;
}

/* --------------------------------
  Banner card
-------------------------------- */
#stcm-banner {
  width: 520px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1); /* site hairline: border-white/10 */
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

#stcm-banner p {
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 12px;
}

#stcm-banner .stcm-actions {
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap; /* preferences + logo drop to their own line when tight */
}

/* Preferences link: quiet, tracked, uppercase like the site's text buttons. */
#stcm-banner .stcm-preferences-button {
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
}

#stcm-banner .stcm-preferences-button span:hover {
  color: #e2e8f0;
}

/* --------------------------------
  Buttons — site pill CTA idiom
  (rounded-full, uppercase, tracked, bold)
-------------------------------- */
#stcm-wrapper .stcm-button {
  border-radius: 9999px;
  border-width: 1px;
  padding: 11px 22px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

#stcm-wrapper .stcm-button-primary {
  background-color: #0ea5e9;
  border-color: #0ea5e9;
  color: #000000;
}

#stcm-wrapper .stcm-button-primary:hover {
  background-color: #38bdf8; /* sky-400 — site hover */
  border-color: #38bdf8;
  color: #000000;
}

#stcm-wrapper .stcm-button-secondary {
  background-color: rgba(255, 255, 255, 0.1); /* bg-white/10 */
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

#stcm-wrapper .stcm-button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2); /* bg-white/20 */
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/*
  Silktide ships both banner buttons and both modal buttons with the primary
  class. Keep "accept"/"save" primary and demote the reject actions to the
  site's ghost style so the choice reads at a glance.
*/
#stcm-wrapper .stcm-reject-all,
#stcm-wrapper .stcm-modal-reject-all {
  background-color: rgba(255, 255, 255, 0.1); /* bg-white/10 */
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

#stcm-wrapper .stcm-reject-all:hover,
#stcm-wrapper .stcm-modal-reject-all:hover {
  background-color: rgba(255, 255, 255, 0.2); /* bg-white/20 */
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* --------------------------------
  Preferences modal — same hairline card treatment
-------------------------------- */
#stcm-modal {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
