.th-consent-banner, .th-consent-dialog, .th-consent-placeholder, .th-consent-footer, .th-consent-reopen { font-family: inherit; letter-spacing: 0; box-sizing: border-box; }
.th-consent-banner [hidden], .th-consent-dialog [hidden], .th-consent-footer [hidden], .th-consent-policy [hidden], .th-consent-banner[hidden], .th-consent-reopen[hidden] { display: none !important; }
.th-consent-banner { position: fixed; z-index: 100000; inset: auto 16px 16px; margin: 0 auto; max-width: 1120px; max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid #cbdde8; border-radius: 8px; background: #fff; color: #2a4a6b; box-shadow: 0 5px 30px #16395726; font-size: 15px; line-height: 1.55; }
.th-consent-banner h2, .th-consent-dialog h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; color: #003355; }
.th-consent-banner p, .th-consent-dialog p { margin: 0 0 12px; }
.th-consent-banner a, .th-consent-dialog a, .th-consent-placeholder a, .th-consent-footer a, .th-consent-policy a { color: #006b96; text-decoration: underline; text-underline-offset: 3px; }
.th-consent-small { font-size: 13px; line-height: 1.55; color: #536779; overflow-wrap: anywhere; }
.th-consent-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.th-consent-button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; min-height: 44px; border: 1px solid #007da8; border-radius: 6px; background: #007da8; color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; cursor: pointer; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; }
.th-consent-button:hover { background: #006b96; border-color: #006b96; color: #fff; }
.th-consent-actions > .th-consent-button { flex: 1 1 190px; box-sizing: border-box; min-width: 0; min-height: 82px; }
.th-consent-button-accept { flex-direction: column; gap: 4px; background: #26764a; border-color: #26764a; }
.th-consent-button-accept:hover { background: #1d603c; border-color: #1d603c; }
.th-consent-button-note { max-width: 100%; color: #f4fbf6; font-size: 12px; font-weight: 400; line-height: 1.35; }
.th-consent-button-light { background: #fff; color: #006b96; }
.th-consent-button-light:hover { background: #eff8fc; color: #003355; }
.th-consent-button:disabled { opacity: .65; cursor: wait; }
.th-consent-button:focus-visible, .th-consent-reopen:focus-visible, .th-consent-close:focus-visible, [data-th-consent-open]:focus-visible, .th-consent-dialog input:focus-visible { outline: 3px solid #003355; outline-offset: 3px; }
.th-consent-dialog { width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 26px; overflow: auto; border: 1px solid #cbdde8; border-radius: 8px; background: #fff; color: #2a4a6b; font-size: 15px; line-height: 1.55; }
.th-consent-dialog::backdrop { background: #102a4380; }
.th-consent-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.th-consent-close { display: grid; place-items: center; flex: 0 0 44px; height: 44px; margin: -8px -8px 0 0; border: 0; border-radius: 6px; background: #eff8fc; color: #003355; cursor: pointer; font-size: 28px; line-height: 1; }
.th-consent-category { border-top: 1px solid #e5edf2; margin: 18px 0; padding-top: 18px; }
.th-consent-category h3 { margin: 0 0 8px; font-size: 16px; color: #003355; }
.th-consent-category h3 span { display: block; font-size: 13px; font-weight: 400; color: #536779; margin-top: 3px; }
.th-consent-toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; margin-bottom: 8px; }
.th-consent-toggle input { appearance: auto; flex: 0 0 22px; width: 22px; height: 22px; accent-color: #007da8; margin: 0; }
.th-consent-error { color: #963c24; font-size: 14px; line-height: 1.4; }
.th-consent-error:empty { display: none; }
.th-consent-banner .th-consent-error, .th-consent-dialog .th-consent-error { margin: 12px 0 0; }
.th-consent-reopen { position: fixed; z-index: 99990; left: 12px; bottom: 12px; border: 1px solid #b6cddc; border-radius: 6px; min-height: 44px; padding: 10px 14px; color: #174763; background: #fff; font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px #16395715; }
.th-consent-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; padding: 14px 20px 66px; background: #f4fbfd; border-top: 1px solid #e5edf2; color: #2a4a6b; font-size: 14px; }
.th-consent-link { border: 0; padding: 0; background: transparent; color: #006b96; text-decoration: underline; font: inherit; cursor: pointer; }
.th-consent-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 240px; padding: 24px; background: #f4fbfd; color: #2a4a6b; border-radius: 6px; font-size: 14px; line-height: 1.5; text-align: center; }
.th-consent-placeholder strong { font-size: 18px; color: #003355; }
.th-consent-placeholder p { margin: 0; max-width: 56ch; }
.th-consent-placeholder a { font-size: 13px; }
.th-video-frame:has(.th-consent-placeholder) { aspect-ratio: auto; min-height: 270px; background: #f4fbfd; }
.th-consent-nojs { padding: 16px 24px; font-size: 14px; text-align: center; }
.th-consent-table-wrap { overflow-x: auto; margin: 20px 0; }
.th-consent-policy table { width: 100%; border-collapse: collapse; font-size: 15px; }
.th-consent-policy th, .th-consent-policy td { border: 1px solid #e5edf2; padding: 12px; vertical-align: top; text-align: left; }
.th-consent-policy caption { text-align: left; margin-bottom: 10px; font-weight: 600; }
.th-consent-policy th { background: #f4fbfd; }
.th-consent-policy td { min-width: 145px; }
.th-consent-policy code { overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .th-consent-banner { inset: auto 8px 8px; padding: 16px; max-height: calc(85dvh - 16px); font-size: 14px; }
    .th-consent-banner h2, .th-consent-dialog h2 { font-size: 20px; }
    .th-consent-dialog { padding: 20px; }
    .th-consent-actions { gap: 8px; }
    .th-consent-actions > .th-consent-button { flex-basis: 100%; }
    .th-consent-placeholder { padding: 18px; }
}
