/* MTH Cookie Consent */
:root { --mthcc-accent: #0f2a3d; --mthcc-accent-text: #fff; --mthcc-ink: #0f2a3d; }
.mthcc-banner, .mthcc-modal, .mthcc-fab { --c-bg: #ffffff; --c-text: #263340; --c-muted: #5f6b76; --c-line: rgba(15, 42, 61, .12); font-family: inherit; font-size: 15px; line-height: 1.55; color: var(--c-text); letter-spacing: normal; text-transform: none; box-sizing: border-box; }
.mthcc-banner *, .mthcc-modal *, .mthcc-fab * { box-sizing: border-box; }
.mthcc-banner p, .mthcc-modal p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; max-width: none; }

/* ---------- banner ---------- */
.mthcc-banner { position: fixed !important; z-index: 2147483000 !important; left: 20px; bottom: 20px; top: auto; right: auto; margin: 0 !important; max-width: 460px; width: calc(100% - 40px); background: var(--c-bg); border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(10, 25, 40, .38), 0 0 0 1px var(--c-line); transform: translateY(24px); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s; }
.mthcc-banner.is-in { transform: none; opacity: 1; }
.mthcc-banner.is-right { left: auto; right: 20px; }
.mthcc-banner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 16px 16px 0 0; background: var(--mthcc-accent); }
.mthcc-in { padding: 22px 22px 20px; }
.mthcc-title { font-size: 18px !important; font-weight: 700; color: var(--mthcc-ink) !important; margin: 0 0 6px !important; display: flex; align-items: center; gap: 10px; font-family: inherit !important; line-height: 1.3 !important; }
.mthcc-body { color: var(--c-muted) !important; font-size: 14.5px !important; }
.mthcc-link { color: var(--mthcc-ink) !important; text-decoration: underline !important; text-underline-offset: 2px; font-weight: 600; white-space: nowrap; }
.mthcc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mthcc-btn { appearance: none; -webkit-appearance: none; flex: 1 1 auto; min-height: 44px; padding: 10px 18px; border-radius: 999px !important; font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.2; cursor: pointer; text-transform: none; letter-spacing: normal; transition: transform .2s, box-shadow .2s, background .2s, color .2s; margin: 0; box-shadow: none; }
.mthcc-btn.is-pri { background: var(--mthcc-accent) !important; color: var(--mthcc-accent-text) !important; border: 1px solid var(--mthcc-accent) !important; }
.mthcc-btn.is-sec { background: transparent !important; color: var(--mthcc-ink) !important; border: 1px solid rgba(15, 42, 61, .35) !important; }
.mthcc-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(10, 25, 40, .5); }
.mthcc-btn:focus-visible, .mthcc-fab:focus-visible, .mthcc-x:focus-visible, .mthcc-switch input:focus-visible + span { outline: 3px solid var(--mthcc-accent); outline-offset: 2px; }
.mthcc-ico { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: -5px; background: var(--mthcc-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5zm-3.5 7a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm-1 5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm6 1a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm2-4a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5zm-3.5 7a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm-1 5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm6 1a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm2-4a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Notice (non-EU): slim bar */
.mthcc-banner.is-notice { max-width: 640px; }
.mthcc-banner.is-notice .mthcc-in { display: flex; align-items: center; gap: 18px; padding: 16px 18px; }
.mthcc-banner.is-notice .mthcc-body { flex: 1; display: block; }
.mthcc-banner.is-notice .mthcc-body .mthcc-ico { margin-right: 8px; }
.mthcc-banner.is-notice .mthcc-btns { margin: 0; flex: none; flex-wrap: nowrap; }
.mthcc-banner.is-notice .mthcc-btn { min-height: 40px; padding: 8px 16px; }

/* ---------- settings modal ---------- */
.mthcc-modal { position: fixed !important; inset: 0; z-index: 2147483001 !important; margin: 0 !important; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .3s; }
.mthcc-modal.is-in { opacity: 1; }
.mthcc-backdrop { position: absolute; inset: 0; background: rgba(8, 18, 28, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mthcc-panel { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; background: var(--c-bg); border-radius: 18px; padding: 28px 26px 22px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); transform: translateY(16px) scale(.98); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.mthcc-modal.is-in .mthcc-panel { transform: none; }
.mthcc-panel > .mthcc-title { font-size: 21px !important; }
.mthcc-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(15, 42, 61, .06); color: var(--mthcc-ink); font-size: 24px; line-height: 1; cursor: pointer; padding: 0; }
.mthcc-row { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--c-line); }
.mthcc-panel > .mthcc-body { margin-bottom: 10px !important; }
.mthcc-row-txt { flex: 1; }
.mthcc-row-title { font-weight: 700; color: var(--mthcc-ink) !important; margin-bottom: 2px !important; }
.mthcc-row-txt p:not(.mthcc-row-title) { font-size: 13.5px !important; color: var(--c-muted) !important; }
.mthcc-always { font-size: 12.5px; font-weight: 700; color: #2f7d4f; white-space: nowrap; }
.mthcc-switch { position: relative; flex: none; display: inline-block; width: 50px; height: 28px; cursor: pointer; margin: 0; }
.mthcc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.mthcc-switch span { position: absolute; inset: 0; border-radius: 28px; background: #c7ced4; transition: background .25s; }
.mthcc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.mthcc-switch input:checked + span { background: var(--mthcc-accent); }
.mthcc-switch input:checked + span::after { transform: translateX(22px); }
.mthcc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mthcc-note { font-size: 13px !important; color: var(--c-muted) !important; background: rgba(15, 42, 61, .05); border-radius: 8px; padding: 8px 12px !important; margin-top: 6px !important; }
.mthcc-foot { margin-top: 14px !important; font-size: 13px !important; text-align: center; }
.mthcc-lock, .mthcc-lock body { overflow: hidden !important; }

/* ---------- reopen button ---------- */
.mthcc-fab { position: fixed !important; z-index: 2147482999 !important; left: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #fff; box-shadow: 0 6px 18px -4px rgba(10, 25, 40, .35), 0 0 0 1px rgba(15, 42, 61, .1); display: grid; place-items: center; opacity: .9; transition: transform .25s, opacity .25s; }
.mthcc-fab.is-right { left: auto; right: 18px; }
.mthcc-fab.is-up { bottom: 92px; }
.mthcc-fab:hover { transform: scale(1.08); opacity: 1; }
.mthcc-fab .mthcc-ico { width: 22px; height: 22px; }
.mthcc-banner.is-in ~ .mthcc-fab, .mthcc-lock .mthcc-fab { opacity: 0; pointer-events: none; }

/* ---------- privacy page block ---------- */
.mthcc-policy { margin-top: 40px; }
.mthcc-table-wrap { overflow-x: auto; margin: 18px 0; }
.mthcc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.mthcc-table th, .mthcc-table td { border-bottom: 1px solid rgba(127, 127, 127, .25); padding: 10px 12px; text-align: left; vertical-align: top; }
.mthcc-table th { font-weight: 700; }
.mthcc-open-btn { appearance: none; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 640px) {
  .mthcc-banner, .mthcc-banner.is-right { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; }
  .mthcc-in { padding: 18px 16px 16px; }
  .mthcc-banner.is-strict .mthcc-btns { display: grid; grid-template-columns: 1fr 1fr; }
  .mthcc-banner.is-strict .mthcc-btn[data-act="custom"] { grid-column: 1 / -1; order: 3; }
  .mthcc-banner.is-notice .mthcc-in { flex-direction: column; align-items: stretch; gap: 12px; }
  .mthcc-banner.is-notice .mthcc-btns { flex-wrap: wrap; }
  .mthcc-panel { padding: 24px 18px 18px; border-radius: 16px; }
  .mthcc-modal .mthcc-btns { display: grid; grid-template-columns: 1fr 1fr; }
  .mthcc-modal .mthcc-btn[data-act="save"] { grid-column: 1 / -1; order: 3; }
  .mthcc-fab { width: 40px; height: 40px; left: 12px; bottom: 12px; }
  .mthcc-fab.is-right { right: 12px; }
  .mthcc-fab.is-up { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .mthcc-banner, .mthcc-modal, .mthcc-panel, .mthcc-btn, .mthcc-switch span::after { transition: none !important; }
}
