/* Site-specific theming + size reduction on top of silktide-consent-manager.css */

#stcm-wrapper {
  --fontFamily: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --primaryColor: #274c77; /* brand-700 */
  --backgroundColor: #ffffff;
  --textColor: #131416; /* neutral-900 */
  --backdropBackgroundColor: #00000055;
  --iconColor: #ffffff;
  --iconBackgroundColor: #274c77;
}

#stcm-wrapper .stcm-button {
  padding: 8px 16px;
  font-size: 13px;
  line-height: 20px;
  border-radius: 999px;
  border-color: #274c77;
}

#stcm-wrapper .stcm-button-primary:hover {
  background-color: #1d3a5e; /* brand-800 */
  border-color: #1d3a5e;
  color: #ffffff;
}

#stcm-wrapper .stcm-button-secondary {
  background-color: #ffffff;
  color: #274c77;
  border-color: #dddfe3;
}

#stcm-wrapper .stcm-button-secondary:hover {
  background-color: #f8f9fb;
  color: #274c77;
}

/* Reject is a ghost button, not a filled one — accept stays primary. */
#stcm-wrapper .stcm-reject-all {
  background-color: transparent;
  color: #274c77;
}

#stcm-wrapper .stcm-reject-all:hover {
  background-color: #f8f9fb;
  color: #274c77;
}

#stcm-banner {
  width: 380px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #dddfe3;
  box-shadow: 0 4px 16px 0 rgba(19, 20, 22, 0.1);
}

@media (max-width: 639px) {
  #stcm-banner {
    left: 16px;
    right: 16px;
    width: auto;
  }
}

#stcm-banner p {
  font-size: 13px;
  line-height: 19px;
  margin: 0 0 12px;
  color: #131416;
}

#stcm-banner .stcm-preferences-button {
  padding: 4px 0;
  font-size: 13px;
  color: #274c77;
}

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

#stcm-banner a.stcm-logo {
  width: 28px;
  height: 28px;
}

#stcm-banner .stcm-actions {
  gap: 8px;
  margin-top: 12px;
}

#stcm-banner .stcm-actions-row {
  gap: 8px;
}

/* Reopen via the "Informasjonskapsler" link in the footer instead. */
#stcm-icon {
  display: none !important;
}

#stcm-modal {
  width: 460px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #dddfe3;
}

#stcm-modal header h1 {
  font-size: 17px;
}

#stcm-modal p,
#stcm-modal .stcm-consent-description {
  font-size: 13px;
  line-height: 19px;
}

#stcm-modal fieldset legend {
  font-size: 14px;
}

#stcm-modal fieldset {
  padding: 12px 0;
}

#stcm-modal .stcm-credit-link {
  font-size: 11px;
  opacity: 0.6;
}

/* Tablet and up: the default library size feels oversized here — trim
   padding/type/buttons while giving the banner a bit more width so the
   action row doesn't wrap. */
@media (min-width: 640px) {
  #stcm-banner {
    width: 440px;
    padding: 16px;
  }

  /* Logo removed — put Tilpass where it used to sit, on the right. */
  #stcm-banner .stcm-actions-row {
    justify-content: flex-end;
  }

  #stcm-banner p {
    font-size: 12px;
    line-height: 18px;
    margin: 0 0 10px;
  }

  #stcm-wrapper .stcm-button {
    padding: 6px 14px;
    font-size: 12px;
    line-height: 18px;
  }

  #stcm-banner .stcm-preferences-button {
    font-size: 12px;
  }

  #stcm-banner .stcm-actions {
    gap: 6px;
    margin-top: 10px;
  }

  #stcm-banner .stcm-actions-row {
    gap: 6px;
  }
}
