/* Contruva cookie consent — matches the site theme (Orbitron titles, Inter body, navy #172A4D, yellow #FED403). */
#cookie-panel,
#cookie-settings,
.cookie-embed-notice {
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1C1C1D;
  box-sizing: border-box;
}
#cookie-panel *,
.cookie-embed-notice * { box-sizing: border-box; }

/* ---------- panel ---------- */
#cookie-panel {
  position: fixed;
  z-index: 2147483646;
  bottom: 24px;
  left: 24px;
  width: min(440px, calc(100vw - 48px));
  padding: 28px 28px 26px;
  background: #fff;
  border: 1px solid #E3E3E8;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(23, 42, 77, 0.18);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
}
#cookie-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #FED403;
  border-radius: 14px 14px 0 0;
}
#cookie-panel h2 {
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #172A4D;
  outline: none;
}
#cookie-panel p {
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 20px;
  color: #59585D;
}
#cookie-panel a {
  color: #172A4D;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #FED403;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
#cookie-panel a:hover { color: #0F1D38; }

/* ---------- buttons ---------- */
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#cookie-panel button,
#cookie-settings,
.cookie-embed-notice button {
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D5DAE3;
  border-radius: 6px;
  background: #fff;
  color: #172A4D;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
#cookie-panel button:hover,
.cookie-embed-notice button:hover {
  background: #F6F6F6;
  border-color: #172A4D;
}
#cookie-panel button[data-choice="accept"],
#cookie-panel button[data-choice="save"] {
  background: #172A4D;
  border-color: #172A4D;
  color: #fff;
}
#cookie-panel button[data-choice="accept"]:hover,
#cookie-panel button[data-choice="save"]:hover {
  background: #313131;
  border-color: #313131;
  color: #fff;
}
#cookie-panel button[data-choice="customize"] {
  border-color: transparent;
  background: transparent;
  padding: 12px 8px;
  color: #59585D;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#cookie-panel button[data-choice="customize"]:hover {
  background: transparent;
  border-color: transparent;
  color: #172A4D;
}
/* While customizing, "Save preferences" is the primary action. */
#cookie-details:not([hidden]) ~ .cookie-actions button[data-choice="accept"] {
  background: #fff;
  border-color: #D5DAE3;
  color: #172A4D;
}
#cookie-details:not([hidden]) ~ .cookie-actions button[data-choice="accept"]:hover {
  background: #F6F6F6;
  border-color: #172A4D;
  color: #172A4D;
}

#cookie-panel :focus-visible,
#cookie-settings:focus-visible,
.cookie-embed-notice button:focus-visible {
  outline: 3px solid #172A4D;
  outline-offset: 2px;
}

/* ---------- details / toggles ---------- */
#cookie-details {
  border-top: 1px solid #E3E3E8;
  padding-top: 18px;
  margin-bottom: 20px;
}
#cookie-details > p:first-child {
  margin-bottom: 6px;
  font-size: 14px;
  color: #59585D;
}
#cookie-details > p:first-child strong { color: #1C1C1D; }
#cookie-details label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 12px;
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #F6F6F6;
  border: 1px solid #E3E3E8;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1C1C1D;
  cursor: pointer;
  transition: border-color 0.25s ease;
}
#cookie-details label:hover { border-color: #C7CEDA; }
#cookie-details input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  margin: 1px 0 0;
  padding: 0;
  background: #C7CEDA;
  border: none;
  border-radius: 999px;
  opacity: 1;
  visibility: visible;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
#cookie-details input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(23, 42, 77, 0.35);
  transition: transform 0.25s ease;
}
#cookie-details input[type="checkbox"]:checked { background: #172A4D; }
#cookie-details input[type="checkbox"]:checked::after { transform: translateX(18px); }
#cookie-details span {
  display: block;
  grid-column: 2;
  padding-left: 0;
  margin-top: 2px;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: #59585D;
}

#cookie-storage-note {
  margin: 14px 0 0 !important;
  font-size: 13.5px;
  color: #59585D;
}

/* ---------- reopen launcher ---------- */
#cookie-settings {
  position: fixed;
  z-index: 2147483645;
  bottom: 16px;
  left: 16px;
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 999px;
  border-color: #E3E3E8;
  box-shadow: 0 6px 18px rgba(23, 42, 77, 0.16);
}
#cookie-settings:hover {
  background: #172A4D;
  border-color: #172A4D;
  color: #fff;
}

/* ---------- blocked embed placeholder ---------- */
.cookie-embed-notice {
  padding: 40px 24px;
  background: #F6F6F6;
  border: 1px solid #E3E3E8;
  border-radius: 10px;
  text-align: center;
}
.cookie-embed-notice p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: #59585D;
}

#cookie-panel [hidden],
#cookie-panel[hidden],
#cookie-settings[hidden],
.cookie-embed-notice[hidden],
iframe[data-cookie-src][hidden] { display: none !important; }

@media (max-width: 600px) {
  #cookie-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 22px 20px;
  }
  .cookie-actions button[data-choice="accept"],
  .cookie-actions button[data-choice="reject"],
  .cookie-actions button[data-choice="save"] { flex: 1 1 140px; }
  #cookie-panel button[data-choice="customize"] { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #cookie-panel button,
  #cookie-settings,
  #cookie-details label,
  #cookie-details input[type="checkbox"],
  #cookie-details input[type="checkbox"]::after { transition: none; }
}

/* ---------- contact form: privacy notice + CASL marketing opt-in ---------- */
.rs-contact-consent {
  font-family: "Inter", Arial, sans-serif;
  margin-bottom: 20px;
}
.rs-contact-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #1C1C1D;
  cursor: pointer;
}
.rs-contact-consent-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #172A4D;
  cursor: pointer;
}
.rs-contact-consent-check input[type="checkbox"]:focus-visible {
  outline: 2px solid #FED403;
  outline-offset: 2px;
}
.rs-contact-consent-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #55585B;
}
.rs-contact-consent-note a {
  color: inherit;
  text-decoration: underline;
}
.rs-contact-consent-note a:hover,
.rs-contact-consent-note a:focus-visible {
  color: #172A4D;
}
