/* ============================================================
   BETALINGSMETODER PAGE — CasinoBonuser.com
   Design system from homepage tokens.
   All classes prefixed .cb-pm- to avoid Mercury collisions.
   Scoped to body.cb-betalingsmetoder where needed.
   ============================================================ */

/* ---------- MAIN FULL-WIDTH FOR HERO ---------- */
body.cb-betalingsmetoder main {
  padding-top: 0;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ---------- HIDE LEGACY FOOTER & ELEMENTS ---------- */
body.cb-betalingsmetoder footer.cb-footer { display: none !important; }
body.cb-betalingsmetoder .cb-u-crosslinks { display: none !important; }
body.cb-betalingsmetoder .cb-breadcrumb { display: none !important; }
body.cb-betalingsmetoder .cb-conversion-block { display: none !important; }
body.cb-betalingsmetoder .cb-crosslinks { display: none !important; }
body.cb-betalingsmetoder .cb-sidebar-toplist { display: none !important; }

/* ---------- RESET & BASE (scoped) ---------- */
body.cb-betalingsmetoder {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f4f6f9;
  -webkit-font-smoothing: antialiased;
}
body.cb-betalingsmetoder *, body.cb-betalingsmetoder *::before, body.cb-betalingsmetoder *::after { box-sizing: border-box; }
body.cb-betalingsmetoder a { text-decoration: none; color: inherit; }
body.cb-betalingsmetoder img { max-width: 100%; height: auto; }
body.cb-betalingsmetoder h1, body.cb-betalingsmetoder h2, body.cb-betalingsmetoder h3, body.cb-betalingsmetoder h4 {
  font-family: 'Roboto', 'Inter', sans-serif; line-height: 1.25;
}

/* ---------- TOKENS ---------- */
:root {
  --cb-bg:         #f4f6f9;
  --cb-card-bg:    #ffffff;
  --cb-card-border:#e2e6ec;
  --cb-card-shadow: 0 2px 16px rgba(0,0,0,0.05);
  --cb-card-radius: 14px;
  --cb-text:       #1a1a2e;
  --cb-text-light: #5a6577;
  --cb-text-muted: #8a93a2;
  --cb-navy:       #1e3a5f;
  --cb-green:      #11ac84;
  --cb-green-light:#e8f8f3;
  --cb-gold:       #f5a623;
  --cb-gold-light: #fff8ec;
  --cb-teal:       #00b4d8;
  --cb-cta-from:   #8ad455;
  --cb-cta-to:     #5fa82e;
}

/* ---------- FOCUS STYLES ---------- */
body.cb-betalingsmetoder a:focus-visible,
body.cb-betalingsmetoder button:focus-visible,
body.cb-betalingsmetoder input:focus-visible {
  outline: 2px solid var(--cb-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   BREADCRUMB (inside hero, light text on dark bg)
   ============================================================ */
.cb-pm-breadcrumb {
  max-width: 960px; margin: 0 auto; padding: 0 16px 16px;
  font-size: 13px; color: #6b7d8d;
  position: relative; z-index: 1; text-align: left;
}
.cb-pm-breadcrumb a { color: #6b7d8d; text-decoration: none; }
.cb-pm-breadcrumb a:hover { color: var(--cb-green); }
.cb-pm-breadcrumb .sep { margin: 0 6px; opacity: .5; }

/* ============================================================
   HERO
   ============================================================ */
.cb-pm-hero {
  background: linear-gradient(135deg, #0f1923 0%, #1e3a5f 100%);
  padding: 64px 16px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
body.cb-betalingsmetoder.admin-bar .cb-pm-hero { padding-top: 96px; }

.cb-pm-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(17,172,132,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(0,180,216,.08) 0%, transparent 50%);
  pointer-events: none;
}
.cb-pm-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #11ac84, #6aad38);
  opacity: .6;
}

.cb-pm-hero-inner {
  max-width: 720px; margin: 0 auto; position: relative; z-index: 1;
}
.cb-pm-hero h1 {
  color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 10px;
}
.cb-pm-hero-sub {
  color: #94a3b4; font-size: 15px; line-height: 1.7; max-width: 580px; margin: 0 auto 24px;
}

/* Hero stats row */
.cb-pm-hero-stats {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.cb-pm-stat {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 14px 22px;
  min-width: 100px;
}
.cb-pm-stat-num {
  font-size: 20px; font-weight: 800; color: #7fc64a;
  white-space: nowrap;
}
.cb-pm-stat-label {
  font-size: 12px; color: #8a9bb0; margin-top: 2px; text-transform: uppercase;
  letter-spacing: .5px;
}

@media (min-width: 768px) {
  .cb-pm-hero { padding: 68px 16px 40px; }
  .cb-pm-hero h1 { font-size: 36px; }
  .cb-pm-hero-sub { font-size: 16px; }
  .cb-pm-stat { padding: 16px 28px; }
  .cb-pm-stat-num { font-size: 22px; }
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.cb-pm-section {
  max-width: 960px; margin: 0 auto; padding: 28px 16px;
}
.cb-pm-section-header {
  text-align: center; margin-bottom: 28px;
}
.cb-pm-section-header h2 {
  font-size: 22px; font-weight: 800; color: var(--cb-navy); margin-bottom: 8px;
}
.cb-pm-section-header p {
  font-size: 14px; color: var(--cb-text-light); max-width: 600px; margin: 0 auto; line-height: 1.7;
}
@media (min-width: 768px) {
  .cb-pm-section-header h2 { font-size: 26px; }
  .cb-pm-section-header p { font-size: 15px; }
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */
.cb-pm-tabs-wrap {
  display: flex; gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.cb-pm-tabs-wrap::-webkit-scrollbar { display: none; }

.cb-pm-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: 13px; font-weight: 600;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  border: 1px solid var(--cb-card-border);
  border-radius: 50px;
  background: var(--cb-card-bg);
  color: var(--cb-text-light);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.cb-pm-tab:hover {
  border-color: var(--cb-green);
  color: var(--cb-green);
}
.cb-pm-tab.active {
  background: var(--cb-green);
  border-color: var(--cb-green);
  color: #fff;
}

/* ============================================================
   PAYMENT METHOD CARDS GRID
   ============================================================ */
.cb-pm-cards-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 520px) { .cb-pm-cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .cb-pm-cards-grid { grid-template-columns: 1fr 1fr 1fr; } }

.cb-pm-card {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  padding: 20px;
  box-shadow: var(--cb-card-shadow);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.cb-pm-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

/* Card top: icon + name + type badge */
.cb-pm-card-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.cb-pm-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: #f4f6f9;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.cb-pm-logo {
  width: 48px; height: 48px; object-fit: contain; border-radius: 8px;
}
.cb-pm-card-icon .cb-pm-logo {
  width: 36px; height: 36px;
}
.cb-pm-card-title h3 {
  font-size: 16px; font-weight: 700; color: var(--cb-text); margin: 0 0 4px;
}

/* Type badge */
.cb-pm-type {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 2px 10px;
  border-radius: 50px;
  line-height: 1.6;
}
.cb-pm-type--bankkort        { background: #e8f8f3; color: #11ac84; }
.cb-pm-type--e-lommebok      { background: #e8f8fb; color: #00b4d8; }
.cb-pm-type--bankoverforing  { background: #eef0ff; color: #5b6abf; }
.cb-pm-type--krypto          { background: #fff3e0; color: #f5a623; }
.cb-pm-type--forhandsbetalt  { background: #f3e8ff; color: #7c3aed; }

/* Card detail rows */
.cb-pm-card-details {
  flex: 1;
  border-top: 1px solid var(--cb-card-border);
  padding-top: 12px;
}
.cb-pm-card-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
  font-size: 13px;
}
.cb-pm-card-label { color: var(--cb-text-muted); }
.cb-pm-card-value { color: var(--cb-text); font-weight: 600; text-align: right; }

/* Card footer */
.cb-pm-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cb-card-border);
}
.cb-pm-card-casinos {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--cb-green);
}
.cb-pm-card-casinos svg { color: var(--cb-green); }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.cb-pm-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  box-shadow: var(--cb-card-shadow);
  background: var(--cb-card-bg);
}
.cb-pm-table {
  width: 100%; min-width: 700px;
  border-collapse: collapse;
  font-size: 14px;
}
.cb-pm-table thead {
  background: #f8f9fb;
}
.cb-pm-table th {
  padding: 14px 16px;
  font-size: 12px; font-weight: 700;
  color: var(--cb-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  border-bottom: 2px solid var(--cb-card-border);
  white-space: nowrap;
}
.cb-pm-table td {
  padding: 14px 16px;
  color: var(--cb-text);
  border-bottom: 1px solid var(--cb-card-border);
  vertical-align: middle;
}
.cb-pm-table tbody tr:last-child td { border-bottom: none; }
.cb-pm-table tbody tr:hover { background: #f8fafe; }
.cb-pm-table td:first-child {
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.cb-pm-table-icon { font-size: 18px; }
.cb-pm-table td strong { font-weight: 700; }

/* ============================================================
   NORSKE FAVORITTER — FEATURED CARDS
   ============================================================ */
.cb-pm-featured-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 600px) { .cb-pm-featured-grid { grid-template-columns: 1fr 1fr 1fr; } }

.cb-pm-featured-card {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  padding: 24px;
  box-shadow: var(--cb-card-shadow);
  text-align: center;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.cb-pm-featured-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.cb-pm-featured-card:first-child {
  border: 2px solid var(--cb-green);
  background: linear-gradient(135deg, #f0fdf8 0%, #fff 100%);
}

.cb-pm-featured-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--cb-green-light);
  color: var(--cb-green);
  margin-bottom: 12px;
}
.cb-pm-featured-card:nth-child(2) .cb-pm-featured-badge {
  background: #eef0ff; color: #5b6abf;
}
.cb-pm-featured-card:nth-child(3) .cb-pm-featured-badge {
  background: #e8f8fb; color: #00b4d8;
}

.cb-pm-featured-icon {
  font-size: 40px; margin-bottom: 12px;
}
.cb-pm-featured-card h3 {
  font-size: 18px; font-weight: 800; color: var(--cb-navy); margin-bottom: 10px;
}
.cb-pm-featured-card p {
  font-size: 13px; color: var(--cb-text-light); line-height: 1.7; margin-bottom: 16px;
}

.cb-pm-featured-stats {
  display: flex; justify-content: center; gap: 16px;
  border-top: 1px solid var(--cb-card-border);
  padding-top: 14px;
}
.cb-pm-featured-stat {
  display: flex; flex-direction: column; align-items: center;
}
.cb-pm-featured-stat-val {
  font-size: 14px; font-weight: 800; color: var(--cb-text);
}
.cb-pm-featured-stat-lbl {
  font-size: 11px; color: var(--cb-text-muted);
}

/* ============================================================
   EDITORIAL
   ============================================================ */
.cb-pm-editorial {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  padding: 28px 24px;
  box-shadow: var(--cb-card-shadow);
  max-width: 760px; margin: 0 auto;
}
.cb-pm-editorial h2 {
  font-size: 20px; font-weight: 800; color: var(--cb-navy); margin-bottom: 16px;
}
.cb-pm-editorial h3 {
  font-size: 16px; font-weight: 700; color: var(--cb-text); margin: 20px 0 8px;
}
.cb-pm-editorial p {
  font-size: 14px; color: var(--cb-text-light); line-height: 1.8; margin-bottom: 14px;
}
.cb-pm-editorial ul {
  list-style: none; padding: 0; margin: 0 0 14px;
}
.cb-pm-editorial li {
  font-size: 14px; color: var(--cb-text-light); line-height: 1.8;
  padding: 4px 0 4px 24px; position: relative;
}
.cb-pm-editorial li::before {
  content: '';
  position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cb-green);
}

/* ============================================================
   RESPONSIBLE GAMBLING BOX
   ============================================================ */
.cb-pm-rg-box {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--cb-gold-light);
  border: 1px solid rgba(245,166,35,.25);
  border-left: 4px solid var(--cb-gold);
  border-radius: var(--cb-card-radius);
  padding: 22px 24px;
  max-width: 760px; margin: 0 auto;
}
.cb-pm-rg-icon {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(245,166,35,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--cb-gold);
}
.cb-pm-rg-content h3 {
  font-size: 16px; font-weight: 700; color: #b8860b; margin-bottom: 6px;
}
.cb-pm-rg-content p {
  font-size: 14px; color: var(--cb-text-light); line-height: 1.7; margin: 0;
}
.cb-pm-rg-content a {
  color: #b8860b; font-weight: 600; text-decoration: underline;
}
.cb-pm-rg-content a:hover { color: var(--cb-navy); }

@media (max-width: 480px) {
  .cb-pm-rg-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.cb-pm-faq { max-width: 760px; margin: 0 auto; }
.cb-pm-faq-item {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: var(--cb-card-shadow);
}
.cb-pm-faq-q {
  width: 100%; padding: 16px 20px;
  font-size: 14px; font-weight: 700; color: var(--cb-text);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  transition: color .15s;
}
.cb-pm-faq-q:hover { color: var(--cb-green); }
.cb-pm-faq-q svg {
  flex-shrink: 0; width: 18px; height: 18px;
  transition: transform .2s; color: var(--cb-text-muted);
}
.cb-pm-faq-item.open .cb-pm-faq-q svg { transform: rotate(180deg); }
.cb-pm-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.cb-pm-faq-item.open .cb-pm-faq-a { max-height: 400px; }
.cb-pm-faq-a-inner {
  padding: 0 20px 16px;
  font-size: 14px; color: var(--cb-text-light); line-height: 1.8;
}
.cb-pm-faq-a-inner a { color: var(--cb-green); font-weight: 600; text-decoration: underline; }

/* ============================================================
   DIVIDER
   ============================================================ */
.cb-pm-divider {
  max-width: 960px; margin: 0 auto; padding: 0 16px;
}
.cb-pm-divider hr {
  border: none; height: 1px; background: var(--cb-card-border);
}

/* ============================================================
   RESPONSIVE — SMALL SCREENS (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .cb-pm-hero { padding: 72px 12px 28px; }
  body.cb-betalingsmetoder.admin-bar .cb-pm-hero { padding-top: 104px; }
  .cb-pm-hero h1 { font-size: 24px; }
  .cb-pm-hero-sub { font-size: 14px; margin-bottom: 20px; }

  .cb-pm-hero-stats { gap: 10px; }
  .cb-pm-stat { padding: 10px 14px; min-width: 80px; }
  .cb-pm-stat-num { font-size: 16px; }
  .cb-pm-stat-label { font-size: 11px; }

  .cb-pm-section { padding: 20px 12px; }
  .cb-pm-section-header h2 { font-size: 20px; }

  .cb-pm-tab { padding: 7px 14px; font-size: 12px; }

  .cb-pm-card { padding: 16px; }
  .cb-pm-card-icon { width: 40px; height: 40px; font-size: 20px; }
  .cb-pm-card-title h3 { font-size: 15px; }

  .cb-pm-editorial { padding: 20px 16px; }
  .cb-pm-editorial h2 { font-size: 18px; }

  .cb-pm-featured-card { padding: 18px; }
  .cb-pm-featured-card h3 { font-size: 16px; }
  .cb-pm-featured-icon { font-size: 32px; }
  .cb-pm-featured-stats { gap: 10px; }

  .cb-pm-rg-box { padding: 18px 16px; }

  .cb-pm-faq-q { padding: 14px 16px; font-size: 13px; }
}

/* ============================================================
   RESPONSIVE — TABLET (481px–767px)
   ============================================================ */
@media (min-width: 481px) and (max-width: 767px) {
  .cb-pm-hero h1 { font-size: 30px; }
  .cb-pm-featured-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — LARGE SCREENS (min-width: 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .cb-pm-section { padding: 36px 16px; }
  .cb-pm-hero { padding: 72px 16px 44px; }
  .cb-pm-hero h1 { font-size: 40px; }
  .cb-pm-hero-sub { font-size: 17px; }
  .cb-pm-stat-num { font-size: 24px; }
}
