/* ALM Media cookie banner (source: build/legal/parts/consent/). Drawn by almano-consent.js.
   Every rule starts with #alm-consent so page and theme styles cannot reach inside. */

#alm-consent.alm-consent {
  --almc-paper: #F7F5F1;
  --almc-ink: #111111;
  --almc-soft: #3C3A36;
  --almc-muted: #6E6A62;
  --almc-hair: #E2DDD3;
  --almc-yellow: #F8C757;
  --almc-yellow-h: #F5BD3E;
  --almc-gap: 20px;
  --almc-lift: 0px; /* height of a sticky bar at the bottom of the screen, set by the script */
  position: fixed !important;
  z-index: 100000 !important; /* above the page and the header (99999); hidden while a menu or modal is open, see below */
  top: auto !important;
  right: auto !important;
  left: calc(var(--almc-gap) + env(safe-area-inset-left, 0px)) !important;
  bottom: calc(var(--almc-gap) + var(--almc-lift) + env(safe-area-inset-bottom, 0px)) !important;
  display: block !important;
  box-sizing: border-box !important;
  width: calc(100vw - 2 * var(--almc-gap)) !important;
  max-width: 420px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--almc-ink) !important;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
  outline: none !important;
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .28s ease, transform .32s cubic-bezier(.2, .8, .2, 1), bottom .25s ease, visibility 0s linear .32s;
}
#alm-consent.alm-consent.is-on {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity .28s ease, transform .32s cubic-bezier(.2, .8, .2, 1), bottom .25s ease, visibility 0s;
}
#alm-consent.alm-consent *,
#alm-consent.alm-consent *::before,
#alm-consent.alm-consent *::after { box-sizing: border-box !important; }

#alm-consent .alm-consent__card {
  position: relative !important;
  max-height: calc(100vh - 2 * var(--almc-gap) - var(--almc-lift) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  margin: 0 !important;
  padding: 22px 22px 20px !important;
  background: var(--almc-paper) !important;
  border: 1px solid var(--almc-hair) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 60px -16px rgba(17, 17, 17, .30), 0 4px 14px rgba(17, 17, 17, .08) !important;
}

/* ---------- text ---------- */
#alm-consent .alm-consent__title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--almc-ink) !important;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
}
#alm-consent[data-chosen="1"] .alm-consent__title { padding-right: 36px !important; }
#alm-consent .alm-consent__text {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--almc-soft) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
#alm-consent .alm-consent__text--small { font-size: 13px !important; color: var(--almc-muted) !important; }
#alm-consent .alm-consent__text a {
  color: var(--almc-ink) !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px !important;
  background: none !important;
  border: 0 !important;
}
#alm-consent .alm-consent__text a:hover { text-decoration-thickness: 2px !important; }

/* ---------- settings list ---------- */
#alm-consent .alm-consent__list {
  list-style: none !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}
#alm-consent .alm-consent__row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  border-top: 1px solid var(--almc-hair) !important;
  list-style: none !important;
  background: none !important;
}
#alm-consent .alm-consent__row:first-child { border-top: 0 !important; }
#alm-consent .alm-consent__row::before,
#alm-consent .alm-consent__row::marker { content: none !important; display: none !important; }
#alm-consent .alm-consent__label { display: block !important; min-width: 0 !important; }
#alm-consent .alm-consent__name {
  display: block !important;
  color: var(--almc-ink) !important;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}
#alm-consent .alm-consent__desc {
  display: block !important;
  margin-top: 2px !important;
  color: var(--almc-muted) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

/* on/off switch (a button with role="switch") */
#alm-consent .alm-consent__switch {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative !important;
  flex: 0 0 auto !important;
  display: block !important;
  width: 42px !important;
  height: 24px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border: 1px solid #8A857C !important;
  border-radius: 999px !important;
  background: #E2DDD3 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background-color .2s ease, border-color .2s ease;
}
#alm-consent .alm-consent__knob {
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  box-shadow: 0 1px 3px rgba(17, 17, 17, .3) !important;
  transition: transform .2s ease;
}
#alm-consent .alm-consent__switch[aria-checked="true"] { background: var(--almc-ink) !important; border-color: var(--almc-ink) !important; }
#alm-consent .alm-consent__switch[aria-checked="true"] .alm-consent__knob { transform: translateX(18px); background: var(--almc-yellow) !important; }
#alm-consent .alm-consent__switch[disabled] { cursor: default !important; opacity: .5 !important; }

/* ---------- buttons (like the header "Start a project" button) ---------- */
#alm-consent .alm-consent__actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important;
  gap: 8px !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
}
#alm-consent .alm-consent__btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid var(--almc-yellow) !important;
  border-radius: 4px !important;
  background: var(--almc-yellow) !important;
  color: var(--almc-ink) !important;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.1 !important;
  letter-spacing: .02em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}
#alm-consent .alm-consent__btn--line { background: transparent !important; border-color: var(--almc-ink) !important; }
/* hover only where a mouse can hover: on phones a tapped button would otherwise keep its hover look */
@media (hover: hover) {
  #alm-consent .alm-consent__btn:hover { background: var(--almc-yellow-h) !important; border-color: var(--almc-yellow-h) !important; transform: translateY(-1px); }
  #alm-consent .alm-consent__btn--line:hover { background: rgba(17, 17, 17, .06) !important; border-color: var(--almc-ink) !important; }
  #alm-consent .alm-consent__close:hover { background: rgba(17, 17, 17, .07) !important; }
}
#alm-consent .alm-consent__btn:active { transform: none; }
#alm-consent .alm-consent__actions--prefs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
#alm-consent .alm-consent__btn--wide { grid-column: 1 / -1 !important; }

/* close (only once a choice exists) */
#alm-consent .alm-consent__close {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--almc-ink) !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
#alm-consent[data-chosen="1"] .alm-consent__close { display: inline-flex !important; }
#alm-consent .alm-consent__close svg { width: 18px !important; height: 18px !important; fill: none !important; stroke: currentColor !important; stroke-width: 2 !important; stroke-linecap: round !important; }

/* keyboard focus */
#alm-consent .alm-consent__btn:focus-visible,
#alm-consent .alm-consent__switch:focus-visible,
#alm-consent .alm-consent__close:focus-visible,
#alm-consent .alm-consent__text a:focus-visible {
  outline: 2px solid var(--almc-ink) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(248, 199, 87, .55) !important;
}
#alm-consent:focus,
#alm-consent .alm-consent__btn:focus:not(:focus-visible),
#alm-consent .alm-consent__switch:focus:not(:focus-visible),
#alm-consent .alm-consent__close:focus:not(:focus-visible) { outline: none !important; }

/* ---------- views ---------- */
#alm-consent .alm-consent__prefs,
#alm-consent .alm-consent__actions--prefs { display: none !important; }
#alm-consent[data-view="prefs"] .alm-consent__intro,
#alm-consent[data-view="prefs"] .alm-consent__actions--intro { display: none !important; }
#alm-consent[data-view="prefs"] .alm-consent__prefs { display: block !important; }
#alm-consent[data-view="prefs"] .alm-consent__actions--prefs { display: grid !important; }

/* ---------- phones ---------- */
@media (max-width: 600px) {
  #alm-consent.alm-consent {
    --almc-gap: 12px;
    left: calc(12px + env(safe-area-inset-left, 0px)) !important;
    right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    max-width: none !important;
  }
  #alm-consent .alm-consent__card { padding: 18px 16px 16px !important; border-radius: 12px !important; }
  #alm-consent .alm-consent__title { font-size: 16px !important; margin-bottom: 6px !important; }
  #alm-consent .alm-consent__text { font-size: 13.5px !important; line-height: 1.5 !important; }
  #alm-consent .alm-consent__text--small { font-size: 13px !important; }
  #alm-consent .alm-consent__actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; margin-top: 14px !important; }
  #alm-consent .alm-consent__actions--intro [data-alm-act="settings"] { grid-column: 1 / -1 !important; min-height: 40px !important; }
  #alm-consent .alm-consent__row { padding: 10px 0 !important; }
}

/* ---------- stay out of the way of menus and modals ---------- */
html.alm-hnav-sheet-open #alm-consent.alm-consent,
body.selwork-video-modal-open #alm-consent.alm-consent {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* separate rules: a browser without :has() would drop a whole list that contains it */
html:has(.cf-sheet.is-open) #alm-consent.alm-consent { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
html:has(.cutfast-nav__links.is-open) #alm-consent.alm-consent { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

@media (prefers-reduced-motion: reduce) {
  #alm-consent.alm-consent,
  #alm-consent.alm-consent.is-on,
  #alm-consent.alm-consent * { transition: none !important; }
  #alm-consent.alm-consent { transform: none; }
  #alm-consent .alm-consent__btn:hover { transform: none; }
}

@media (forced-colors: active) {
  #alm-consent .alm-consent__card { border: 1px solid CanvasText !important; }
  #alm-consent .alm-consent__switch[aria-checked="true"] .alm-consent__knob { background: Highlight !important; }
}

@media print {
  #alm-consent.alm-consent { display: none !important; }
}
