/* Terralingua overrides; keep vendor files unmodified for predictable upgrades. */
#stcm-wrapper {
  --boxShadow: -5px 5px 10px #00000012, 0 0 50px #0000001a;
  --fontFamily: Helvetica Neue, Segoe UI, Arial, sans-serif;
  --primaryColor: #B33E14;
  --backgroundColor: #FFFFFF;
  --textColor: #4B494B;
  --backdropBackgroundColor: #00000033;
  --backdropBackgroundBlur: 0px;
  --iconColor: #4B494B;
  --iconBackgroundColor: #FFFFFF;
}
#stcm-wrapper #stcm-modal header, #stcm-wrapper #stcm-modal footer {
  position: static; background: transparent; width: auto; height: auto;
}
#stcm-wrapper .stcm-toggle-on, #stcm-wrapper .stcm-toggle-off { display: none; }
#stcm-wrapper #stcm-banner, #stcm-wrapper #stcm-modal { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (prefers-reduced-motion: reduce) {
  #stcm-wrapper *, #stcm-wrapper *::before, #stcm-wrapper *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  #stcm-wrapper #stcm-banner, #stcm-wrapper #stcm-modal, #stcm-wrapper #stcm-icon { opacity: 1; transform: none; }
}
#stcm-wrapper #stcm-modal h1 {
  font: 500 24px/1.3 var(--fontFamily); letter-spacing: normal; text-transform: none;
  width: auto; max-width: none; padding: 0; margin: 0; white-space: normal;
}
#stcm-wrapper #stcm-modal header, #stcm-wrapper #stcm-modal footer { padding: 0; min-height: 0; box-shadow: none; }
#stcm-wrapper a:not(.stcm-button) { color: var(--primaryColor); }
#stcm-wrapper p { font-family: var(--fontFamily); font-weight: 400; }
/* Compact prompt; detailed information remains in Preferences. */
#stcm-wrapper #stcm-banner { width: 430px; padding: 20px; border-radius: 10px; }
#stcm-wrapper #stcm-banner p { font-size: 14px; line-height: 1.5; margin: 0; }
#stcm-wrapper #stcm-banner .stcm-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#stcm-wrapper #stcm-banner .stcm-button { flex: 1 1 auto; padding: 8px 12px; font-size: 14px; line-height: 22px; min-height: 42px; }
#stcm-wrapper #stcm-banner .stcm-actions-row { flex-basis: 100%; gap: 10px; }
#stcm-wrapper #stcm-banner .stcm-preferences-button { padding: 6px 0; min-height: 36px; font-size: 14px; }
#stcm-wrapper #stcm-banner a.stcm-logo { width: 32px; height: 32px; }
#stcm-wrapper:not(.stcm-keyboard) #stcm-banner button:focus { box-shadow: none; outline: none; }

/* Keep the upstream license with the vendor files; hide the promotional modal link. */
#stcm-wrapper #stcm-modal .stcm-credit-link { display: none; }
/* Discreet cookie preferences button: half the original diameter. */
#stcm-wrapper #stcm-icon {
  width: 30px; height: 30px; background-color: #eeeeee;
  box-shadow: 0 1px 4px #00000012;
}
#stcm-wrapper #stcm-icon svg { width: 20px; height: 20px; fill: #808080; }
#stcm-wrapper #stcm-icon::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; }

/* Preferences remain available from the page footer. */
#stcm-wrapper #stcm-icon { display: none !important; }
.consent-footer-link { padding: 16px; text-align: center; }
.consent-footer-link a { color: #4b494b; text-decoration: underline; }
