.am-consent,
.am-consent * { box-sizing: border-box; }
.am-consent [hidden] { display: none !important; }
.am-consent { --am-consent-orange: #ff5a00; --am-consent-ink: #090b0c; --am-consent-line: rgba(255,255,255,.15); font-family: Arial, Helvetica, sans-serif; }
.am-consent-banner { position: fixed; z-index: 999998; right: 20px; bottom: 20px; left: 20px; width: min(1120px, calc(100% - 40px)); margin-inline: auto; padding: 24px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; border: 1px solid var(--am-consent-line); border-top: 3px solid var(--am-consent-orange); background: #0d1011; color: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.45); }
.am-consent-banner h2,
.am-consent-modal h2 { margin: 0; color: #fff; font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
.am-consent-banner p { max-width: 720px; margin: 10px 0 0; color: #c9cccd; font-size: 14px; line-height: 1.6; }
.am-consent-policy-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 16px; }
.am-consent-policy-links a { color: #fff; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.am-consent-policy-links a:hover { color: var(--am-consent-orange); }
.am-consent-banner-actions { min-width: 235px; display: grid; gap: 8px; }
.am-consent-button { min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 0; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.am-consent-button-primary { background: var(--am-consent-orange); color: #fff; }
.am-consent-button-primary:hover { background: #ff742b; }
.am-consent-button-secondary { border-color: rgba(255,255,255,.55); background: transparent; color: #fff; }
.am-consent-button-secondary:hover { background: #fff; color: var(--am-consent-ink); }
.am-consent-button-text { min-height: 34px; padding-block: 5px; background: transparent; color: #c9cccd; text-decoration: underline; text-underline-offset: 3px; }
.am-consent-button-text:hover { color: #fff; }
.am-consent-backdrop { position: fixed; z-index: 1000000; inset: 0; background: rgba(0,0,0,.74); backdrop-filter: blur(5px); }
.am-consent-modal { position: fixed; z-index: 1000001; top: 50%; left: 50%; width: min(720px, calc(100% - 36px)); max-height: min(820px, calc(100vh - 36px)); padding: 30px; overflow-y: auto; transform: translate(-50%,-50%); border: 1px solid var(--am-consent-line); border-top: 3px solid var(--am-consent-orange); background: #0d1011; color: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.62); }
.am-consent-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.am-consent-kicker { display: block; margin-bottom: 9px; color: var(--am-consent-orange); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.am-consent-close { width: 42px; height: 42px; padding: 0; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 27px; line-height: 1; cursor: pointer; }
.am-consent-close:hover { background: #fff; color: var(--am-consent-ink); }
.am-consent-modal-intro { margin: 20px 0 24px; color: #b9bdbe; font-size: 14px; line-height: 1.65; }
.am-consent-categories { border-top: 1px solid var(--am-consent-line); }
.am-consent-category { padding: 19px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: center; border-bottom: 1px solid var(--am-consent-line); }
.am-consent-category strong { display: block; color: #fff; font-size: 15px; }
.am-consent-category p { margin: 6px 0 0; color: #9fa4a5; font-size: 13px; line-height: 1.55; }
.am-consent-switch { position: relative; width: 50px; height: 28px; display: block; flex: 0 0 auto; }
.am-consent-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.am-consent-switch > span:last-child { position: absolute; inset: 0; border-radius: 99px; background: #3a3f41; cursor: pointer; transition: background .18s ease; }
.am-consent-switch > span:last-child::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.am-consent-switch input:checked + span { background: var(--am-consent-orange); }
.am-consent-switch input:checked + span::after { transform: translateX(22px); }
.am-consent-switch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.am-consent-switch input:disabled + span { opacity: .72; cursor: not-allowed; }
.am-consent-modal-footer { margin-top: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.am-consent-modal-footer .am-consent-policy-links { margin: 0; }
.am-consent-modal-footer .am-consent-button { min-width: 180px; }
.am-consent-reopen { position: fixed; z-index: 999997; left: 18px; bottom: 18px; min-height: 38px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); background: #0d1011; color: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.3); font: 700 11px/1.2 Arial, Helvetica, sans-serif; cursor: pointer; }
.am-consent-reopen:hover { border-color: var(--am-consent-orange); color: #fff; }
body.am-consent-modal-open { overflow: hidden; }
.am-consent .screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 760px) {
  .am-consent-banner { right: 12px; bottom: 12px; left: 12px; width: calc(100% - 24px); padding: 20px; grid-template-columns: 1fr; gap: 18px; }
  .am-consent-banner-actions { min-width: 0; }
  .am-consent-modal { width: calc(100% - 24px); max-height: calc(100vh - 24px); padding: 22px 18px; }
  .am-consent-modal-footer { align-items: stretch; flex-direction: column; }
  .am-consent-modal-footer .am-consent-button { width: 100%; }
  .am-consent-reopen { left: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .am-consent * { transition-duration: .01ms !important; }
}
