/* ============================================================
   MEDalon Sales Website — style.css
   ============================================================ */

/* ── Local Fonts ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF,
                 U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/DM_Sans/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0100-024F;
}

:root {
  --red:        #B52020;
  --red-dark:   #8B1717;
  --red-light:  #F9EDED;
  --dark:       #111118;
  --dark-2:     #1A1A2E;
  --text:       #1A1A1A;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --bg:         #FFFFFF;
  --bg-gray:    #F8F9FA;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 16px 56px rgba(0,0,0,.18);
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --ease:       0.2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.7; }

/* ── Layout ── */
.container        { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 800px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 8px;
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: all var(--ease);
  white-space: nowrap;
}
.btn--lg   { padding: 1rem 2rem; font-size: 1.05rem; border-radius: 10px; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(181,32,32,.35); }

.btn--outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }

.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }

.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--red-light); transform: translateY(-2px); }

/* ── Section header ── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header--light h2,
.section-header--light .section-label,
.section-header--light .section-sub { color: #fff; }
.section-label {
  display: block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--red); margin-bottom: .5rem;
}
.section-sub { font-size: 1.05rem; color: var(--muted); margin-top: .6rem; }

/* ── Fade-in animation ── */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.07); }

.nav__inner {
  max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}

.nav__logo { text-decoration: none; font-family: 'DM Sans', sans-serif; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.nav__logo-med { color: var(--text); }
.nav__logo-on  { color: var(--red); }
/* Dark background variant (footer, dark sections) */
.nav__logo--dark .nav__logo-med,
.footer .nav__logo .nav__logo-med { color: #fff; }
.nav__logo--dark .nav__logo-on,
.footer .nav__logo .nav__logo-on  { color: var(--red); }
/* Inline logo — bárhol ahol a MEDalon név megjelenik */
.logo-inline { font-family: 'DM Sans', sans-serif; font-weight: 800; letter-spacing: -.03em; }
.logo-inline--dark .nav__logo-med { color: #fff; }

.nav__links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav__links a {
  text-decoration: none; color: var(--muted);
  font-size: .93rem; font-weight: 500;
  transition: color var(--ease);
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  background: var(--red) !important; color: #fff !important;
  padding: .45rem 1.2rem; border-radius: 8px;
}
.nav__cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }

.nav__lang {
  display: flex; gap: .25rem; margin-left: .5rem;
}
.nav__lang a {
  padding: .2rem .55rem; border-radius: 5px; font-size: .78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; color: var(--muted);
  border: 1.5px solid transparent;
  transition: all var(--ease);
}
.nav__lang a.active,
.nav__lang a:hover { border-color: var(--red); color: var(--red); }

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--dark-2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 108px 1.5rem 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 45%, rgba(181,32,32,.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1140px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(181,32,32,.15); color: #FF7B7B;
  border: 1px solid rgba(181,32,32,.3);
  padding: .35rem 1rem; border-radius: 50px;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
}

.hero__title { color: #fff; margin-bottom: 1.25rem; }
.hero__title span { color: #FF6B6B; }

.hero__sub {
  color: rgba(255,255,255,.68); font-size: 1.1rem;
  margin-bottom: 2rem; max-width: 500px; line-height: 1.75;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.hero__trust { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.hero__trust span { color: rgba(255,255,255,.5); font-size: .82rem; font-weight: 500; }

/* Card photo */
.hero__visual { display: flex; justify-content: center; align-items: center; position: relative; }

.card-photo-wrap {
  position: relative;
  animation: floatCard 7s ease-in-out infinite;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,.6));
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-18px) rotate(-2deg); }
}
.card-photo-wrap img {
  width: 320px; max-width: 100%;
  border-radius: 18px;
  display: block;
}
.card-photo-glow {
  position: absolute; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(181,32,32,.28) 0%, transparent 70%);
  border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
}

.hero__scroll {
  margin-top: 4rem;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.28); font-size: .72rem;
  animation: breathe 2.5s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .28; } 50% { opacity: .65; } }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--red); padding: 1.25rem 1.5rem; }
.stats-bar__inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem;
}
.stat { text-align: center; color: #fff; }
.stat strong { display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
.stat span   { font-size: .75rem; opacity: .82; text-transform: uppercase; letter-spacing: .07em; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { padding: 6rem 1.5rem; background: var(--bg-gray); text-align: center; }
.problem__inner { max-width: 700px; margin: 0 auto; }
.problem__icon { font-size: 3rem; margin-bottom: 1.5rem; }
.problem__inner h2 { margin-bottom: 1.5rem; }
.problem__story { font-size: 1.1rem; color: var(--muted); margin-bottom: 1rem; }
.problem__story--bold { color: var(--red); font-weight: 700; font-size: 1.25rem; margin-top: 1.5rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { padding: 6rem 1.5rem; }

.steps { display: flex; align-items: center; justify-content: center; gap: 0; }

.step {
  flex: 1; max-width: 300px; text-align: center;
  padding: 2.25rem 1.5rem;
  background: var(--bg-gray); border-radius: var(--radius-lg);
}
.step__num {
  font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--red); margin-bottom: .75rem;
}
.step__icon { font-size: 2.5rem; margin-bottom: .85rem; }
.step h3    { margin-bottom: .6rem; }
.step p     { color: var(--muted); font-size: .9rem; }

.step__line {
  flex-shrink: 0; width: 56px; height: 2px; margin: 0 -2px;
  background: linear-gradient(90deg, var(--border), var(--red), var(--border));
  align-self: center;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 6rem 1.5rem; background: var(--bg-gray); }

.features__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: #fff; border-radius: var(--radius);
  padding: 1.75rem; border: 1px solid var(--border);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: rgba(181,32,32,.2);
}
.feature-card__icon { font-size: 1.75rem; margin-bottom: .75rem; }
.feature-card h3    { margin-bottom: .4rem; font-size: 1rem; }
.feature-card p     { color: var(--muted); font-size: .88rem; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: 6rem 1.5rem; background: var(--dark-2); }
.pricing .section-label { color: rgba(255,110,110,.9); }
.pricing .section-sub   { color: rgba(255,255,255,.55); }

.pricing__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; align-items: start;
}

.pricing-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 2.25rem 2rem;
  color: #fff; position: relative;
  transition: transform var(--ease), border-color var(--ease);
}
.pricing-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.22); }

.pricing-card--featured {
  background: #fff; color: var(--text);
  border-color: #fff; transform: scale(1.04);
}
.pricing-card--featured:hover { transform: scale(1.04) translateY(-5px); }

.pricing-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: .28rem .9rem; border-radius: 50px; white-space: nowrap;
}

.pricing-card__type {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; opacity: .55; margin-bottom: .4rem;
}
.pricing-card--featured .pricing-card__type { color: var(--red); opacity: 1; }

.pricing-card__price {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em;
  line-height: 1; margin-bottom: .2rem;
}
.pricing-card__currency { font-size: 1.3rem; font-weight: 700; vertical-align: top; margin-top: .35rem; display: inline-block; }

.pricing-card__renewal {
  font-size: .8rem; opacity: .55; margin-bottom: 1rem;
}
.pricing-card--featured .pricing-card__renewal { opacity: .6; color: var(--text); }

.pricing-card__desc { font-size: .88rem; opacity: .65; margin-bottom: 1.5rem; }
.pricing-card--featured .pricing-card__desc { opacity: .65; color: var(--text); }

.pricing-card__features { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: .55rem; }
.pricing-card__features li { font-size: .88rem; opacity: .82; }
.pricing-card--featured .pricing-card__features li { opacity: 1; color: var(--text); }

.pricing__note { text-align: center; color: rgba(255,255,255,.38); font-size: .82rem; margin-top: 2rem; }

/* ============================================================
   TRUST
   ============================================================ */
.trust { padding: 5rem 1.5rem; }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.trust-item { text-align: center; padding: 2rem; }
.trust-item__icon { font-size: 2.4rem; margin-bottom: .85rem; }
.trust-item h3  { margin-bottom: .5rem; }
.trust-item p   { color: var(--muted); font-size: .93rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 6rem 1.5rem; background: var(--bg-gray); }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }

.faq__q {
  width: 100%; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
  padding: 1.2rem 0; background: none; border: none;
  text-align: left; font-size: .97rem; font-weight: 600;
  color: var(--text); cursor: pointer; font-family: var(--font);
  transition: color var(--ease);
}
.faq__q:hover { color: var(--red); }

.faq__chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform .3s; color: var(--muted);
}
.faq__item.open .faq__chevron { transform: rotate(180deg); }
.faq__item.open .faq__q { color: var(--red); }

.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding-bottom .35s ease; }
.faq__item.open .faq__a { max-height: 300px; padding-bottom: 1.2rem; }
.faq__a p { color: var(--muted); font-size: .93rem; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { padding: 6rem 1.5rem; background: var(--red); text-align: center; }
.final-cta__inner { max-width: 620px; margin: 0 auto; }
.final-cta h2   { color: #fff; margin-bottom: 1rem; }
.final-cta p    { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; }
.final-cta__note { color: rgba(255,255,255,.55); font-size: .82rem; margin-top: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: rgba(255,255,255,.55); padding: 4rem 1.5rem 2rem; }

.footer__inner { display: flex; gap: 3rem; margin-bottom: 3rem; flex-wrap: wrap; }
.footer__brand { flex: 1; min-width: 200px; }
.footer__brand p { margin-top: .75rem; font-size: .88rem; line-height: 1.7; }

.footer__links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer__col h4 {
  color: #fff; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: .85rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer__col a { color: rgba(255,255,255,.45); text-decoration: none; font-size: .88rem; transition: color var(--ease); }
.footer__col a:hover { color: #fff; }

/* ── Icon sizing (Font Awesome) ── */
.feature-card__icon i  { font-size: 2rem; color: var(--red); }
.trust-item__icon i    { font-size: 2.2rem; color: var(--red); }
.step__icon i          { font-size: 2rem; color: var(--red); }
.problem__icon i,
.problem__icon img     { font-size: 3rem; color: var(--red); margin: 0 auto 1.5rem; display: block; width: 72px; height: 72px; }
.icon-check            { font-size: .85rem; color: var(--red); margin-right: .35rem; }
.icon-badge            { font-size: .9rem; }

.footer__dev-link { color: rgba(255,255,255,.45); text-decoration: none; transition: color var(--ease); }
.footer__dev-link:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: .5rem; font-size: .78rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero__sub    { margin: 0 auto 2rem; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { order: -1; }
  .card-photo-wrap img { width: 240px; }
  .steps { flex-direction: column; align-items: center; gap: 1rem; }
  .step__line { width: 2px; height: 36px; margin: -4px 0; background: linear-gradient(180deg, var(--border), var(--red), var(--border)); }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-5px); }
}

@media (max-width: 640px) {
  .nav__links {
    display: none; position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 1.5rem; gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
  }
  .nav__links.open { display: flex; }
  .nav__hamburger  { display: flex; }

  .hero { padding: 92px 1.25rem 3rem; }
  .card-photo-wrap img { width: 200px; }
  .stats-bar__inner { gap: 1.5rem; }
  .stat strong { font-size: 1.4rem; }
  .footer__inner { flex-direction: column; gap: 2rem; }
  .footer__bottom { flex-direction: column; }
}

/* ── Klaro overrides — Medalon brand style ────────────────────────────────
   Load AFTER klaro.min.css
   ─────────────────────────────────────────────────────────────────────── */

/* 0) Backdrop + modal base */
#klaro .cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
#klaro .cookie-modal .cm-bg {
  background: rgba(0,0,0,.55) !important;
  backdrop-filter: blur(8px);
}
#klaro .cookie-modal .cm-modal.cm-klaro {
  background: #fff !important;
  color: #1A1A1A !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 20px;
  box-shadow: 0 24px 90px rgba(0,0,0,.45);
  width: min(820px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
  margin: calc(12px + env(safe-area-inset-top)) auto calc(12px + env(safe-area-inset-bottom));
}

/* 1) Header / body / footer */
#klaro .cookie-modal .cm-header {
  padding: 22px 22px 14px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  background: transparent !important;
}
#klaro .cookie-modal .cm-header .title,
#klaro .cookie-modal .cm-header h1 {
  margin: 0 0 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #1A1A1A !important;
}
#klaro .cookie-modal .cm-header p {
  margin: 0;
  color: #6B7280 !important;
  font-size: 1rem;
  line-height: 1.45;
}
#klaro .cookie-modal .cm-body {
  padding: 10px 22px 8px;
}
#klaro .cookie-modal .cm-footer {
  padding: 14px 22px calc(18px + env(safe-area-inset-bottom));
  background: transparent !important;
  border-top: 1px solid rgba(0,0,0,.10);
}

/* 2) Purposes list */
#klaro .cookie-modal .cm-purposes {
  list-style: none;
  margin: 0;
  padding: 0;
}
#klaro .cookie-modal .cm-purpose {
  position: relative;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}
#klaro .cookie-modal .cm-purpose:last-child {
  border-bottom: 0;
}
#klaro .cookie-modal .cm-services,
#klaro .cookie-modal .cm-caret,
#klaro .cookie-modal .cm-content,
#klaro .cookie-modal .cm-service,
#klaro .cookie-modal .cm-powered-by,
#klaro .cookie-modal .cm-toggle-all,
#klaro .cookie-modal .cm-purpose-all {
  display: none !important;
}

/* Close button */
#klaro .cookie-modal .cm-modal .hide {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.06);
  color: #1A1A1A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background .15s;
}
#klaro .cookie-modal .cm-modal .hide:hover {
  background: rgba(0,0,0,.12);
}

/* 3) Toggle row */
#klaro .cookie-modal .cm-list-input {
  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;
}
#klaro .cookie-modal .cm-list-label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  user-select: none !important;
  background: rgba(0,0,0,.03) !important;
}
#klaro .cookie-modal .cm-list-label:hover {
  background: rgba(0,0,0,.05) !important;
}
#klaro .cookie-modal .cm-list-label:focus-within {
  outline: 3px solid rgba(181,32,32,.30) !important;
  outline-offset: 2px !important;
}
#klaro .cookie-modal .cm-list-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  color: #1A1A1A !important;
}
#klaro .cookie-modal .cm-required {
  flex: 0 0 auto !important;
  margin-left: 8px !important;
  font-size: .9rem !important;
  color: #6B7280 !important;
  white-space: nowrap !important;
}
#klaro .cookie-modal .cm-list-description {
  margin: 10px 0 0 !important;
  color: #6B7280 !important;
}

/* Toggle switch */
#klaro .cookie-modal .cm-switch {
  position: static !important;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  pointer-events: none !important;
}
#klaro .cookie-modal .cm-switch .slider {
  width: 56px !important;
  height: 32px !important;
  border-radius: 999px !important;
  position: relative !important;
  background: rgba(0,0,0,.12) !important;
  border: 1px solid rgba(0,0,0,.14) !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04) !important;
}
#klaro .cookie-modal .cm-switch .slider::after { content: none !important; }
#klaro .cookie-modal .cm-switch .slider::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 4px !important;
  width: 24px !important;
  height: 24px !important;
  transform: translateY(-50%) !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.18) !important;
  transition: transform .18s ease, background-color .18s ease !important;
}
#klaro .cookie-modal .cm-list-input:checked + .cm-list-label .cm-switch .slider {
  background: #B52020 !important;
  border-color: transparent !important;
}
#klaro .cookie-modal .cm-list-input:checked + .cm-list-label .cm-switch .slider::before {
  transform: translate(24px, -50%) !important;
}
#klaro .cookie-modal .cm-list-input.half-checked + .cm-list-label .cm-switch .slider {
  background: rgba(0,0,0,.12) !important;
  border: 1px solid rgba(0,0,0,.14) !important;
}
#klaro .cookie-modal .cm-list-input.half-checked + .cm-list-label .cm-switch .slider::before {
  transform: translateY(-50%) !important;
}
#klaro .cookie-modal .cm-list-input:disabled + .cm-list-label {
  cursor: not-allowed !important;
  opacity: .95 !important;
}

/* 4) Buttons */
#klaro .cookie-modal .cm-footer-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#klaro .cookie-modal .cm-btn {
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(0,0,0,.02);
  color: #1A1A1A;
  cursor: pointer;
}
#klaro .cookie-modal .cm-btn:hover { background: rgba(0,0,0,.05); }
#klaro .cookie-modal .cm-btn-accept {
  background: transparent !important;
  color: #1A1A1A !important;
  border: 1px solid rgba(0,0,0,.22) !important;
}
#klaro .cookie-modal .cm-btn-accept:hover { background: rgba(0,0,0,.04) !important; }
#klaro .cookie-modal .cm-btn-decline { background: transparent !important; }
#klaro .cookie-modal .cm-btn-accept-all {
  background: #B52020 !important;
  color: #fff !important;
  border-color: transparent !important;
}
#klaro .cookie-modal .cm-btn-accept-all:hover { filter: brightness(1.06); }
#klaro .cookie-modal a { color: #B52020 !important; }

/* 5) Mobile */
@media (max-width: 520px) {
  #klaro .cookie-modal .cm-modal.cm-klaro {
    border-radius: 16px;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: calc(10px + env(safe-area-inset-top)) auto calc(10px + env(safe-area-inset-bottom));
  }
  #klaro .cookie-modal .cm-header,
  #klaro .cookie-modal .cm-body,
  #klaro .cookie-modal .cm-footer { padding-left: 14px; padding-right: 14px; }
  #klaro .cookie-modal .cm-footer-buttons { flex-direction: column; }
  #klaro .cookie-modal .cm-btn { width: 100%; }
}

/* 6) Cookie settings floating button */
#medalon-cookie-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #B52020;
  border: 2px solid #B52020;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
#medalon-cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
#medalon-cookie-btn i { font-size: 22px; }
