/* =========================================================================
   amrein-bitalus.css — Align the amrein instance look & feel with bitalus.com
   Loaded AFTER amrein-spmodern.css so it wins. Adopts the bitalus visual
   language: darkblue (#004E8C = rgb(0,78,140)) navbar/footer, gray-gradient
   section backgrounds, bptop.jpg hero banner, bitalus-style buttons, while
   keeping the modern content structure (HeroBanner / WhyGrid / ProductGrid /
   CompatibilityBar / product-detail webparts).
   Scoped to body.amrein-body.
   ========================================================================= */

/* ── Bitalus palette ── */
html { background: rgb(0, 78, 140) !important; } /* darkblue below footer so no white line at page bottom */
html { scrollbar-gutter: stable !important; overflow-y: scroll; } /* reserve scrollbar gutter so tab switches that change page height (e.g. Downloads & Pricing injected form) don't cause horizontal content shift */
body.amrein-body {
  --bt-blue: rgb(0, 78, 140);        /* bitalus bg-darkblue */
  --bt-blue-dark: rgb(0, 60, 110);
  --bt-blue-light: rgb(0, 120, 212);
  --bt-link: #007bff;                /* bitalus hover blue (bt_button_light:hover) */
  --bt-grad: linear-gradient(to right, rgb(230, 230, 230), rgb(255, 255, 255));
  background: #eef0f2;               /* light gray page background like bitalus */
  color: #2c3e50;
  padding-top: 56px !important;      /* match navbar min-height (overrides amrein-modern 64px) so no gap/white line between the darkblue navbar and the darkblue hero */
  margin-bottom: 0 !important;
  /* Sticky footer: body is a flex column at least one viewport tall; the footer
     uses margin-top:auto (see below) to absorb leftover space so it always sits
     at the bottom of the page/viewport, even on large screens with short content. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════════════
   NAVBAR — bitalus darkblue with white text (counters spmodern white nav)
   ════════════════════════════════════════════════════════════════════ */
body.amrein-body nav.navbar.bg-darkblue {
  background-color: var(--bt-blue) !important;
  background-image: none !important;       /* strip any gradient from amrein-modern */
  box-shadow: 0 2px 8px rgba(0,0,0,0.22) !important;
  min-height: 56px;
}
body.amrein-body nav.navbar.bg-darkblue .navbar-brand {
  color: #fff !important;
  font-weight: 600;
  padding-top: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
body.amrein-body nav.navbar.bg-darkblue .navbar-brand .sp-brand-icon,   /* hide legacy icon box if present */
body.amrein-body nav.navbar.bg-darkblue .navbar-brand .sp-brand-text { display: inline; }
body.amrein-body nav.navbar.bg-darkblue .sp-brand { gap: 8px; }
body.amrein-body nav.navbar.bg-darkblue .sp-brand-icon {
  background: rgba(255,255,255,0.18); width: 30px; height: 30px; border-radius: 6px;
}
body.amrein-body nav.navbar.bg-darkblue .sp-brand-text strong { color: #fff; font: 700 15px "Segoe UI", sans-serif; }
body.amrein-body nav.navbar.bg-darkblue .sp-brand-text small { color: rgba(255,255,255,0.7); font: 400 11px "Segoe UI", sans-serif; }
body.amrein-body nav.navbar.bg-darkblue .nav-link {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
body.amrein-body nav.navbar.bg-darkblue .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.14);
}
body.amrein-body nav.navbar.bg-darkblue .navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}
body.amrein-body nav.navbar.bg-darkblue .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
/* keep nav items on one line (mirrors moreStyles.css bitalus rule) */
body.amrein-body nav.navbar.bg-darkblue .navbar-nav { flex-wrap: nowrap; }
body.amrein-body nav.navbar.bg-darkblue .nav-item { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════
   FOOTER — simple bitalus darkblue (counters spmodern light multi-col footer)
   ════════════════════════════════════════════════════════════════════ */
body.amrein-body footer.bg-darkblue {
  background-color: var(--bt-blue) !important;
  color: #fff;
  padding: 2.2rem 0 1.6rem !important;
  margin: 0 !important;
  margin-top: auto !important;   /* push footer to the bottom of the flex-column body (sticky footer) */
  border: none !important;
}
body.amrein-body footer.bg-darkblue .text-white { color: #fff !important; }
body.amrein-body footer.bg-darkblue .m-0 { margin: 0; }
body.amrein-body footer.bg-darkblue a.text-white { color: #fff !important; transition: color 0.2s; }
body.amrein-body footer.bg-darkblue a.text-white:hover { color: var(--bt-link) !important; }
body.amrein-body footer.bg-darkblue .btm_elements { margin-right: 5px; }
body.amrein-body footer.bg-darkblue .footer-copy { font-size: 13px; color: rgba(255,255,255,0.85); }

/* ════════════════════════════════════════════════════════════════════
   HERO — bitalus-style darkblue banner with bptop.jpg image overlay
   ════════════════════════════════════════════════════════════════════ */
/* Kill border-radius on ALL webpart/section wrappers. The admin theme CSS
   (themeCss) injects `body.amrein-body .wprow{border-radius:10px}` AFTER this
   file, so we use !important to win and give every full-bleed section (hero,
   services, compatibility bar, product grid, CTA, rotator, product-detail
   sections) flat square corners like bitalus.com. Inner cards/tiles keep their
   own border-radius from the rules below. */
body.amrein-body .wprow,
body.amrein-body .wprow .wp_innerCont,
body.amrein-body .hp-hero,
body.amrein-body .ae-product-hero,
body.amrein-body .hp-section { border-radius: 0 !important; }

/* Kill the weird section hover shadow + transform transition injected by the
   admin theme CSS (`body.amrein-body .wprow{transition:...}` and
   `.wprow:hover{box-shadow:...}`). Sections should not lift/glow on hover. */
body.amrein-body .wprow { transition: none !important; }
body.amrein-body .wprow:hover { box-shadow: none !important; transform: none !important; }

body.amrein-body .hp-hero {
  background:
    linear-gradient(120deg, rgba(0,78,140,0.92) 0%, rgba(0,60,110,0.82) 55%, rgba(0,40,80,0.68) 100%),
    url('/images/bptop.jpg') center center / cover no-repeat !important;
  color: #fff !important;
  padding: 72px 0 88px !important;
}
body.amrein-body .hp-hero::before { display: none; }   /* drop spmodern faint image overlay */
body.amrein-body .hp-hero h1 { color: #fff !important; }
body.amrein-body .hp-hero h1 strong { color: rgb(241, 95, 95) !important; }   /* "Amrein WebParts" brand accent */
body.amrein-body .hp-hero-subtitle { color: #fff !important; }
body.amrein-body .hp-hero-badge {
  border-color: rgba(255,255,255,0.4) !important; background: rgba(255,255,255,0.14) !important; color: #fff !important;
}
body.amrein-body .hp-hero-badge .badge-dot { background: #fff !important; }
/* CTA buttons: bitalus-style light buttons on the dark hero */
body.amrein-body .hp-btn-primary { background: #fff !important; color: var(--bt-blue) !important; border: 1px solid #fff !important; }
body.amrein-body .hp-btn-primary:hover { background: rgba(255,255,255,0.9) !important; color: var(--bt-blue-dark) !important; }
body.amrein-body .hp-btn-outline { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.65) !important; }
body.amrein-body .hp-btn-outline:hover { background: rgba(255,255,255,0.16) !important; color: #fff !important; }

/* ProductHero (product-detail) — same darkblue banner treatment */
body.amrein-body .ae-product-hero {
  background:
    linear-gradient(120deg, rgba(0,78,140,0.9) 0%, rgba(0,60,110,0.78) 100%),
    url('/images/bptop.jpg') center center / cover no-repeat !important;
  color: #fff !important;
}
body.amrein-body .ae-product-hero h1 { color: #fff !important; }
body.amrein-body .ae-product-hero h1 strong { color: rgb(241, 95, 95) !important; }   /* brand accent on product pages */
body.amrein-body .ae-product-hero-tagline { color: #fff !important; }
body.amrein-body .ae-product-hero-badge {
  border-color: rgba(255,255,255,0.4) !important; background: rgba(255,255,255,0.14) !important; color: #fff !important;
}
body.amrein-body .ae-product-hero-badge .badge-dot { background: #fff !important; }
body.amrein-body .ae-product-hero-icon { background: #fff; }

/* ════════════════════════════════════════════════════════════════════
   SECTIONS — bitalus gray-gradient backgrounds instead of pure white
   ════════════════════════════════════════════════════════════════════ */
/* Hide the small section-label pill (e.g. "Services" with icon) — the
   section title (h2) is enough. Applies to client (.hp-section-label) and
   server-rendered (.wp-section-label) webparts across all pages. */
body.amrein-body .hp-section-label,
body.amrein-body .wp-section-label { display: none !important; }
body.amrein-body .hp-section { padding: 56px 0 !important; background: var(--bt-grad); }
body.amrein-body .hp-section-alt { background: linear-gradient(to right, rgb(245,245,245), rgb(235,238,241)) !important; }
body.amrein-body .hp-section-label {
  color: var(--bt-blue); background: rgba(0,78,140,0.08);
}
body.amrein-body .hp-section-label i { color: var(--bt-blue); }
body.amrein-body .hp-section-title { color: #1a2e44; }
body.amrein-body .hp-section-desc { color: #4a607a; }

/* ════════════════════════════════════════════════════════════════════
   STATS / FEATURED CARDS / CATEGORIES / WHY GRID — bitalus darkblue accents
   ════════════════════════════════════════════════════════════════════ */
body.amrein-body .hp-stats-inner { background: #fff; border: 1px solid #d8dde2; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
body.amrein-body .hp-stat-icon { background: rgba(0,78,140,0.10); }
body.amrein-body .hp-stat i { color: var(--bt-blue); }
body.amrein-body .hp-stat:hover .hp-stat-icon { background: var(--bt-blue); }
body.amrein-body .hp-stat:hover .hp-stat i { color: #fff; }
body.amrein-body .hp-stat:not(:last-child)::after { background: #d8dde2; }
body.amrein-body .hp-stat-num { color: #1a2e44; }
body.amrein-body .hp-stat-label { color: #5a6f84; }

body.amrein-body .hp-featured-card {
  background: #fff; border: 1px solid #d8dde2; border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08); transition: all 0.18s;
}
body.amrein-body .hp-featured-card:hover {
  transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.14); border-color: var(--bt-blue);
}
body.amrein-body .hp-featured-img.default { background: linear-gradient(135deg, rgba(0,78,140,0.10), rgba(0,78,140,0.04)); }
body.amrein-body .hp-featured-img.default i { color: var(--bt-blue); }
body.amrein-body .hp-featured-img-overlay { background: rgba(0,78,140,0.85); }
body.amrein-body .hp-featured-tag { color: var(--bt-blue); background: rgba(0,78,140,0.10); }
body.amrein-body .hp-featured-badge.o365 { background: rgba(0,78,140,0.10); color: var(--bt-blue); }
body.amrein-body .hp-featured-title { color: #1a2e44; }
body.amrein-body .hp-featured-title a { color: #1a2e44; }
body.amrein-body .hp-featured-title a:hover { color: var(--bt-blue); }
body.amrein-body .hp-featured-desc { color: #4a607a; }
body.amrein-body .hp-featured-link { color: var(--bt-blue); }
body.amrein-body .hp-featured-link:hover { color: var(--bt-link); }

body.amrein-body .hp-cat-card { background: #fff; border: 1px solid #d8dde2; border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,0.06); }
body.amrein-body .hp-cat-card:hover { border-color: var(--bt-blue); box-shadow: 0 4px 14px rgba(0,78,140,0.12); }
body.amrein-body .hp-cat-card i { color: var(--bt-blue); background: rgba(0,78,140,0.10); }
body.amrein-body .hp-cat-card h3 { color: #1a2e44; }
body.amrein-body .hp-cat-card span { color: #4a607a; }

body.amrein-body .hp-why-card { background: #fff; border: 1px solid #d8dde2; border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,0.06); }
body.amrein-body .hp-why-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.10); border-color: var(--bt-blue); }
body.amrein-body .hp-why-icon { background: rgba(0,78,140,0.10); }
body.amrein-body .hp-why-card:hover .hp-why-icon { background: var(--bt-blue); }
body.amrein-body .hp-why-icon i { color: var(--bt-blue); }
body.amrein-body .hp-why-card:hover .hp-why-icon i { color: #fff; }
body.amrein-body .hp-why-title { color: #1a2e44; }
body.amrein-body .hp-why-desc { color: #4a607a; }

/* Testimonials */
body.amrein-body .hp-testimonial-card { background: #fff; border: 1px solid #d8dde2; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
body.amrein-body .hp-testimonial-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); border-color: var(--bt-blue); }
body.amrein-body .hp-testimonial-avatar { background: linear-gradient(135deg, var(--bt-blue), var(--bt-blue-dark)); }
body.amrein-body .hp-testimonial-name { color: #1a2e44; }
body.amrein-body .hp-testimonial-content { color: #2c3e50; }
body.amrein-body .hp-testimonial-product { border-top: 1px solid #d8dde2; color: #5a6f84; }
body.amrein-body .hp-testimonial-product i { color: var(--bt-blue); }

/* CTA band — bitalus darkblue */
body.amrein-body .hp-cta-green { background: var(--bt-blue); }
body.amrein-body .hp-cta-green h3 { color: #fff; }
body.amrein-body .hp-cta-green p { color: rgba(255,255,255,0.9); }
body.amrein-body .hp-cta-green .hp-btn { background: #fff; color: var(--bt-blue); }
body.amrein-body .hp-cta-green .hp-btn:hover { background: rgba(255,255,255,0.9); color: var(--bt-blue-dark); }

/* Compatibility bar */
body.amrein-body .compatibility-card { background: #fff; border: 1px solid #d8dde2; border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,0.06); }
body.amrein-body .compatibility-card:hover { border-color: var(--bt-blue); box-shadow: 0 4px 14px rgba(0,78,140,0.10); }
body.amrein-body .compatibility-card i { color: var(--bt-blue); }
body.amrein-body .compatibility-card span { color: #1a2e44; }

/* Catalog tools */
body.amrein-body .hp-filter-btn { border: 1px solid #d8dde2; background: #fff; color: #4a607a; }
body.amrein-body .hp-filter-btn:hover { border-color: var(--bt-blue); color: var(--bt-blue); }
body.amrein-body .hp-filter-btn.active { background: var(--bt-blue); color: #fff; border-color: var(--bt-blue); }
body.amrein-body .hp-search-input { border: 1px solid #d8dde2; }
body.amrein-body .hp-search-input:focus { border-color: var(--bt-blue); box-shadow: 0 0 0 3px rgba(0,78,140,0.14); }
body.amrein-body .hp-sort-select { border: 1px solid #d8dde2; color: #4a607a; }

/* ════════════════════════════════════════════════════════════════════
   IMAGE TILE QUICK-LINKS — bitalus darkblue left accent
   ════════════════════════════════════════════════════════════════════ */
body.amrein-body .WP_TilesImage_innerCont {
  background: #fff; border: 1px solid #d8dde2; border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06) !important; border-left: 4px solid var(--bt-blue);
}
body.amrein-body .WP_TilesImage_innerCont:hover {
  box-shadow: 0 6px 18px rgba(0,78,140,0.12) !important; border-color: var(--bt-blue);
}
body.amrein-body .WP_TilesImage_title { color: var(--bt-blue); }
body.amrein-body .WP_TilesImage_desc { color: #4a607a; }

/* ════════════════════════════════════════════════════════════════════
   PRODUCT-DETAIL webparts — bitalus darkblue accents (override spmodern SP blue)
   ════════════════════════════════════════════════════════════════════ */
body.amrein-body .ae-overview { background: #fff; border: 1px solid #d8dde2; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
body.amrein-body .ae-overview-label { color: var(--bt-blue); background: rgba(0,78,140,0.08); }
body.amrein-body .ae-overview-header { border-bottom: 1px solid #d8dde2; }
body.amrein-body .ae-overview-header h2 { color: #1a2e44; }
body.amrein-body .ae-overview-body { color: #2c3e50; }
body.amrein-body .ae-overview-body a { color: var(--bt-blue); }
body.amrein-body .ae-overview-body a:hover { color: var(--bt-link); }
body.amrein-body .ae-overview-body ul.wpAbstract li::before { color: var(--bt-blue); }

body.amrein-body .ae-tabs { background: #fff; border: 1px solid #d8dde2; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
body.amrein-body .ae-tabs-label { color: var(--bt-blue); background: rgba(0,78,140,0.08); }
body.amrein-body .ae-tabs-header { border-bottom: 1px solid #d8dde2; }
body.amrein-body .ae-tabs-header h2 { color: #1a2e44; }
body.amrein-body .ae-tabs-bar { border-bottom: 2px solid #d8dde2; background: #f4f6f8; }
body.amrein-body .ae-tab-btn { color: #4a607a; }
body.amrein-body .ae-tab-btn:hover { color: var(--bt-blue); background: rgba(0,78,140,0.06); }
body.amrein-body .ae-tab-btn.active { color: var(--bt-blue); border-bottom-color: var(--bt-blue); }
body.amrein-body .ae-tab-panel { color: #2c3e50; }
body.amrein-body .ae-tab-panel a { color: var(--bt-blue); }
body.amrein-body .ae-tab-panel a:hover { color: var(--bt-link); }
body.amrein-body .ae-tab-panel .subheader { color: var(--bt-blue); border-bottom: 1px solid #d8dde2; }

/* BannerRotator */
body.amrein-body .ae-rotator-stage { background: #f4f6f8; border: 1px solid #d8dde2; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
body.amrein-body .ae-rotator-nav { background: rgba(255,255,255,0.85); color: var(--bt-blue); }
body.amrein-body .ae-rotator-nav:hover { background: var(--bt-blue); color: #fff; }
body.amrein-body .ae-rotator-dot { background: rgba(0,78,140,0.25); }
body.amrein-body .ae-rotator-dot.active { background: var(--bt-blue); }

/* ProductListNav sidebar — enhanced bitalus styling */
/* Card */
body.amrein-body .ae-listnav { background: #fff !important; border: 1px solid #dde3ea !important; border-radius: 8px !important; box-shadow: 0 2px 12px rgba(0,78,140,0.08) !important; }
/* Title bar — darkblue accent, bolder */
body.amrein-body .ae-listnav-title { background: rgba(0,78,140,0.08) !important; border-bottom: 2px solid rgba(0,78,140,0.15) !important; color: #004e8c !important; font: 700 15px "Segoe UI", sans-serif !important; padding: 18px 20px !important; }
body.amrein-body .ae-listnav-title i { color: var(--bt-blue) !important; font-size: 18px !important; }
/* Search box */
body.amrein-body .ae-listnav-search { background: #fafbfc !important; border-bottom: 1px solid #edebe9 !important; padding: 14px 18px !important; }
body.amrein-body .ae-listnav-search-icon { left: 30px !important; color: #8a97a8 !important; }
body.amrein-body .ae-listnav-search-input { border: 1px solid #dde3ea !important; border-radius: 6px !important; font: 400 13px "Segoe UI", sans-serif !important; padding: 9px 12px 9px 34px !important; background: #fff !important; color: #323130 !important; }
body.amrein-body .ae-listnav-search-input:focus { border-color: var(--bt-blue) !important; box-shadow: 0 0 0 3px rgba(0,78,140,0.14) !important; }
body.amrein-body .ae-listnav-search-input::placeholder { color: #8a97a8 !important; }
/* Groups — more breathing room */
body.amrein-body .ae-listnav-groups { padding: 6px 0 10px !important; }
body.amrein-body .ae-listnav-group { border-bottom: 1px solid #eef0f3 !important; }
body.amrein-body .ae-listnav-group:last-child { border-bottom: none !important; }
/* Group header — bolder, bigger icon badges */
body.amrein-body .ae-listnav-group-header { font: 700 14px "Segoe UI", sans-serif !important; color: #1a2e44 !important; padding: 12px 16px !important; gap: 10px !important; }
body.amrein-body .ae-listnav-group-header:hover { background: rgba(0,78,140,0.07) !important; color: var(--bt-blue) !important; }
body.amrein-body .ae-listnav-group-icon { width: 30px !important; height: 30px !important; border-radius: 8px !important; background: rgba(0,78,140,0.10) !important; }
body.amrein-body .ae-listnav-group-icon i { color: var(--bt-blue) !important; font-size: 14px !important; }
body.amrein-body .ae-listnav-group-header:hover .ae-listnav-group-icon { background: var(--bt-blue) !important; }
body.amrein-body .ae-listnav-group-header:hover .ae-listnav-group-icon i { color: #fff !important; }
/* Count badge — polished darkblue pill */
body.amrein-body .ae-listnav-group-count { font: 700 12px "Segoe UI", sans-serif !important; color: #004e8c !important; background: rgba(0,78,140,0.12) !important; padding: 3px 10px !important; border-radius: 12px !important; min-width: 28px !important; text-align: center !important; }
body.amrein-body .ae-listnav-group.open .ae-listnav-group-count { background: var(--bt-blue) !important; color: #fff !important; }
body.amrein-body .ae-listnav-group.open .ae-listnav-chevron { color: var(--bt-blue) !important; }
/* Items — per-item icon + flex layout + better spacing */
body.amrein-body .ae-listnav-item a { display: flex !important; align-items: center !important; gap: 10px !important; padding: 8px 16px 8px 20px !important; font: 500 13.5px/1.4 "Segoe UI", sans-serif !important; color: #4a607a !important; border-left: 3px solid transparent !important; overflow: hidden !important; }
body.amrein-body .ae-listnav-item-icon { flex-shrink: 0; width: 20px; text-align: center; font-size: 13px; color: #6b7a8f; transition: color 0.15s; }
body.amrein-body .ae-listnav-item-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.amrein-body .ae-listnav-item a:hover { color: var(--bt-blue) !important; background: rgba(0,78,140,0.06) !important; border-left-color: rgba(0,78,140,0.4) !important; }
body.amrein-body .ae-listnav-item a:hover .ae-listnav-item-icon { color: var(--bt-blue) !important; }
/* Active item — coral brand accent rgb(241,95,95) */
body.amrein-body .ae-listnav-item.active a { color: rgb(241,95,95) !important; background: rgba(241,95,95,0.08) !important; border-left-color: rgb(241,95,95) !important; font-weight: 700 !important; }
body.amrein-body .ae-listnav-item.active .ae-listnav-item-icon { color: rgb(241,95,95) !important; }
/* Search highlight mark */
body.amrein-body .ae-listnav-hl { background: rgba(241,95,95,0.18) !important; color: rgb(241,95,95) !important; font-weight: 700 !important; border-radius: 2px !important; padding: 0 1px !important; }
/* Scrollbar */
body.amrein-body .ae-listnav::-webkit-scrollbar-thumb { background: rgba(0,78,140,0.3) !important; }

/* Download table */
body.amrein-body .ae-dl-table { background: #fff; border: 1px solid #d8dde2; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
body.amrein-body .ae-dl-table-inner th { background: #f4f6f8; color: #1a2e44; border-bottom: 2px solid var(--bt-blue); }
body.amrein-body .ae-dl-table-inner .btn-primary { background: var(--bt-blue); border-color: var(--bt-blue); }
body.amrein-body .ae-dl-license-row { background: rgba(0,78,140,0.06); }

/* Maintenance mode banners (downloads disabled) */
body.amrein-body .ae-maintenance-banner {
  display: flex; align-items: flex-start; gap: 16px;
  margin: 0 0 20px; padding: 20px 24px;
  border-radius: 8px; border: 1px solid #b8c6d6;
  background: linear-gradient(135deg, #f0f5fa, #e8f0f8);
}
body.amrein-body .ae-maintenance-banner .ae-maintenance-icon {
  flex: 0 0 auto; font-size: 2.4rem; color: var(--bt-blue); margin-top: 2px;
}
body.amrein-body .ae-maintenance-banner .ae-maintenance-body { flex: 1; }
body.amrein-body .ae-maintenance-banner .ae-maintenance-body h4 {
  margin: 0 0 6px; color: #1a2e44; font-weight: 700; font-size: 1.15rem;
}
body.amrein-body .ae-maintenance-banner .ae-maintenance-body p {
  margin: 0; color: #4a5e72; font-size: 0.92rem; line-height: 1.5;
}
body.amrein-body .ae-doc-maintenance-banner {
  display: flex; align-items: flex-start; gap: 16px;
  margin: 0 0 20px; padding: 20px 24px;
  border-radius: 8px; border: 1px solid #f0d8a8;
  background: linear-gradient(135deg, #fff9ef, #fff5e6);
}
body.amrein-body .ae-doc-maintenance-banner .ae-maintenance-icon {
  flex: 0 0 auto; font-size: 2.4rem; color: #c8861e; margin-top: 2px;
}
body.amrein-body .ae-doc-maintenance-banner .ae-maintenance-body { flex: 1; }
body.amrein-body .ae-doc-maintenance-banner .ae-maintenance-body h4 {
  margin: 0 0 6px; color: #8a6d1e; font-weight: 700; font-size: 1.15rem;
}
body.amrein-body .ae-doc-maintenance-banner .ae-maintenance-body p {
  margin: 0 0 12px; color: #6b5a3e; font-size: 0.92rem; line-height: 1.5;
}
body.amrein-body .ae-doc-old-files { display: block; margin-top: 8px; }
body.amrein-body .ae-doc-old-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 6px;
  border: 1px solid #d8c098; background: #fff;
  color: #8a6d1e; font-weight: 600; font-size: 0.88rem;
  text-decoration: none; transition: all 0.2s;
  margin: 0 0 8px 0; width: 100%; max-width: 100%;
}
body.amrein-body .ae-doc-old-btn:last-child { margin-bottom: 0; }
body.amrein-body .ae-doc-old-btn:hover {
  background: #fdf5e6; border-color: #c8861e; text-decoration: none;
  box-shadow: 0 2px 6px rgba(200,134,30,0.15);
}
body.amrein-body .ae-doc-old-btn i { font-size: 1rem; flex: 0 0 auto; }

/* Gallery */
body.amrein-body .ae-gallery-item { border: 1px solid #d8dde2; background: #f4f6f8; }
body.amrein-body .ae-gallery-item:hover { border-color: var(--bt-blue); box-shadow: 0 2px 8px rgba(0,78,140,0.14); }

/* Banner Rotator (Gallery with layout=banner-rotator) */
body.amrein-body .wp-gallery-rotator { width: 100%; margin: 0 0 20px; }
body.amrein-body .wp-rotator-viewport {
  position: relative; width: 100%; height: 420px; overflow: hidden;
  border-radius: 6px; background: #1a2e44;
}
body.amrein-body .wp-rotator-slides { width: 100%; height: 100%; }
body.amrein-body .wp-rotator-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  opacity: 0; transition: opacity 0.8s ease-in-out; cursor: pointer;
}
body.amrein-body .wp-rotator-slide.active { opacity: 1; }
body.amrein-body .wp-rotator-prev,
body.amrein-body .wp-rotator-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(0,78,140,0.7); color: #fff; border: none;
  font-size: 24px; padding: 8px 14px; cursor: pointer; border-radius: 3px;
  transition: background 0.18s;
}
body.amrein-body .wp-rotator-prev { left: 12px; }
body.amrein-body .wp-rotator-next { right: 12px; }
body.amrein-body .wp-rotator-prev:hover,
body.amrein-body .wp-rotator-next:hover { background: var(--bt-blue); }
body.amrein-body .wp-rotator-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
body.amrein-body .wp-rotator-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.18s;
}
body.amrein-body .wp-rotator-dot.active { background: rgb(241,95,95); width: 22px; border-radius: 4px; }
/* Rotator inside tab panel */
body.amrein-body .ae-product-tab-panel .wp-gallery-rotator { margin: 0 0 16px; }
body.amrein-body .ae-product-tab-panel .wp-rotator-viewport { height: 380px; }
@media (max-width: 768px) {
  body.amrein-body .wp-rotator-viewport { height: 240px; }
  body.amrein-body .ae-product-tab-panel .wp-rotator-viewport { height: 220px; }
}

/* Lightbox (rotator + gallery) */
body.amrein-body .ae-gallery-lightbox {
  position: fixed; inset: 0; background: rgba(15,23,42,0.92);
  display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 2rem;
}
body.amrein-body .ae-gallery-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
body.amrein-body .ae-lb-imgwrap { display: flex; align-items: center; justify-content: center; }
body.amrein-body .ae-lb-prev,
body.amrein-body .ae-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); color: #fff; border: none;
  font-size: 32px; padding: 10px 18px; cursor: pointer; border-radius: 4px;
  transition: background 0.2s; z-index: 10000;
}
body.amrein-body .ae-lb-prev { left: 20px; }
body.amrein-body .ae-lb-next { right: 20px; }
body.amrein-body .ae-lb-prev:hover,
body.amrein-body .ae-lb-next:hover { background: rgba(255,255,255,0.35); }
body.amrein-body .ae-lb-close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,0.15); color: #fff; border: none;
  font-size: 28px; cursor: pointer; border-radius: 4px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10000;
}
body.amrein-body .ae-lb-close:hover { background: rgba(255,255,255,0.35); }
body.amrein-body .ae-lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px; background: rgba(0,0,0,0.5);
  padding: 4px 12px; border-radius: 4px; z-index: 10000;
}

/* Breadcrumb */
body.amrein-body .ae-breadcrumb a { color: var(--bt-blue); }
body.amrein-body .ae-breadcrumb a:hover { color: var(--bt-link); }
body.amrein-body .ae-breadcrumb-current { color: #4a607a; }

/* ── bitalus-style light buttons for inline links in richtext ── */
body.amrein-body a.bt_button_light {
  border: 1px solid var(--bt-blue); color: var(--bt-blue); background: #fff;
  padding: 5px 12px; border-radius: 4px; font-weight: 600; font-size: 14px;
  text-decoration: none !important; transition: all 0.2s;
}
body.amrein-body a.bt_button_light:hover { background: var(--bt-blue); color: #fff; }

/* ── Links globally ── */
body.amrein-body a { color: var(--bt-blue); }
body.amrein-body a:hover { color: var(--bt-link); }
body.amrein-body h1, body.amrein-body h2, body.amrein-body h3, body.amrein-body h4 { color: #1a2e44; }

/* ── Hide legacy decorative bars like bitalus does (keep clean) ── */
body.amrein-body #header_shadow { display: none !important; }
body.amrein-body .btanls_messagebar_cont { display: none !important; }

/* ── Chapter page navigation (breadcrumb back to TOC) ── */
body.amrein-body .ae-chapter-nav {
  margin-bottom: 18px; padding: 10px 16px;
  background: #eef4f9; border-left: 3px solid var(--bt-blue); border-radius: 0 4px 4px 0;
  font: 500 14px "Segoe UI", sans-serif;
}
body.amrein-body .ae-chapter-nav a {
  color: var(--bt-blue); text-decoration: none; font-weight: 600;
}
body.amrein-body .ae-chapter-nav a:hover { color: var(--bt-link); }

/* ── Chapter page content (documentation from amrein.com) ── */
body.amrein-body .ae-chapter-content {
  font: 400 15px/1.7 "Segoe UI", sans-serif; color: #2c3e50;
  max-width: 800px;
}
body.amrein-body .ae-chapter-content h1 {
  font: 700 22px "Segoe UI", sans-serif; color: #1a2e44; margin: 0 0 16px;
}
body.amrein-body .ae-chapter-content h2 {
  font: 600 17px "Segoe UI", sans-serif; color: #1a2e44;
  margin: 20px 0 10px; padding-top: 10px; border-top: 1px solid #e0e4e8;
}
body.amrein-body .ae-chapter-content p {
  margin: 0 0 12px;
}
body.amrein-body .ae-chapter-content strong { font-weight: 700; color: #1a2e44; }
body.amrein-body .ae-chapter-content img { max-width: 100%; height: auto; }
body.amrein-body .ae-chapter-content ul { margin: 8px 0 12px; padding-left: 20px; }
body.amrein-body .ae-chapter-content li { margin-bottom: 4px; }
/* Configuration table */
body.amrein-body .ae-chapter-content table.tiles {
  width: 100%; border-collapse: separate; border-spacing: 10px; margin: 16px 0;
}
body.amrein-body .ae-chapter-content table.tiles > tbody > tr > td {
  vertical-align: top; padding: 8px;
}
body.amrein-body .ae-chapter-content table:not(.tiles) {
  width: 100%; border-collapse: collapse; margin: 12px 0; font: 400 14px "Segoe UI", sans-serif;
}
body.amrein-body .ae-chapter-content table:not(.tiles) td {
  padding: 8px 12px; border-bottom: 1px solid #e8ecef; vertical-align: top;
}
body.amrein-body .ae-chapter-content table:not(.tiles) th {
  padding: 8px 12px; border-bottom: 2px solid var(--bt-blue); text-align: left;
  font-weight: 600; color: #1a2e44; background: #f4f6f8;
}
/* Download CTA button */
body.amrein-body .ae-chapter-dl-btn {
  display: inline-block; padding: 10px 20px; margin: 16px 0;
  background: var(--bt-blue); color: #fff !important; text-decoration: none !important;
  border-radius: 4px; font: 700 14px "Segoe UI", sans-serif; transition: all 0.18s;
}
body.amrein-body .ae-chapter-dl-btn:hover { background: var(--bt-link); }
/* Fix amrein inline styles that conflict with our theme */
body.amrein-body .ae-chapter-content span[style*="display:inline-block;width:99"] {
  display: block !important; width: auto !important;
}
body.amrein-body .ae-chapter-content .subh {
  display: block !important; font: 700 22px "Segoe UI", sans-serif !important;
  color: #1a2e44 !important; margin: 0 0 16px !important;
}
body.amrein-body .ae-chapter-content a {
  color: var(--bt-blue); text-decoration: none; font-weight: 600;
}
body.amrein-body .ae-chapter-content a:hover { color: var(--bt-link); }
body.amrein-body .ae-chapter-content .tbar {
  display: none !important;
}
body.amrein-body .ae-chapter-content hr.ae-comment-divider {
  border: none; border-top: 1px solid #e8ecef; margin: 8px 0;
}

/* ── Hide "Related SharePoint Web Parts" section on product pages ── */
body.amrein-body div[wptype="RelatedProducts"] { display: none !important; }
body.amrein-body .outerContainer:has(div[wptype="RelatedProducts"]) { display: none !important; }

/* ════════════════════════════════════════════════════════════════════
   ProductGrid tiles (server-rendered .wp-product-card) — styled to match
   the /sharepoint ProductCatalog .hp-featured-card look: 16/9 image area,
   default placeholder when no icon, category tag, title, description,
   "View details" link. Bitalus darkblue accents.
   ════════════════════════════════════════════════════════════════════ */
/* Space above the product-tiles section so it doesn't sit flush against the
   CompatibilityBar section above it. !important beats the full-bleed margin:0. */
body.amrein-body .outerContainer:has(.wp-product-grid) { margin-top: 40px !important; }
body.amrein-body .wp-product-grid { width: 100%; }
body.amrein-body .wp-product-grid-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
body.amrein-body .wp-product-card {
  background: #fff; border: 1px solid #d8dde2; border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06); transition: all 0.18s;
}
body.amrein-body .wp-product-card:hover {
  transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  border-color: var(--bt-blue);
}
/* Image area: 16/9 thumb */
body.amrein-body .wp-product-card-img {
  display: block; aspect-ratio: 16/9; overflow: hidden; background: #f4f6f8;
}
body.amrein-body .wp-product-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s;
}
body.amrein-body .wp-product-card:hover .wp-product-card-img img { transform: scale(1.04); }
/* Default placeholder when no icon (Staff Directory, etc.) */
body.amrein-body .wp-product-card-img.default {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,78,140,0.10), rgba(0,78,140,0.04));
  text-decoration: none;
}
body.amrein-body .wp-product-card-img.default i {
  font-size: 34px; color: var(--bt-blue); opacity: 0.5;
}
/* Body */
body.amrein-body .wp-product-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
/* Category tag */
body.amrein-body .wp-product-card-cat {
  display: inline-block; font: 600 10px "Segoe UI", sans-serif; color: var(--bt-blue);
  background: rgba(0,78,140,0.10); padding: 3px 8px; border-radius: 3px; margin-bottom: 8px;
  align-self: flex-start;
}
/* Title */
body.amrein-body .wp-product-card-title {
  font: 600 15px/1.3 "Segoe UI", sans-serif; color: #1a2e44; margin: 0 0 6px;
}
body.amrein-body .wp-product-card-title a { color: #1a2e44; text-decoration: none; }
body.amrein-body .wp-product-card-title a:hover { color: var(--bt-blue); }
/* Description */
body.amrein-body .wp-product-card-desc {
  font: 400 13px/1.5 "Segoe UI", sans-serif; color: #4a607a; margin: 0 0 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* View details link */
body.amrein-body .wp-product-card-cta {
  font: 600 12px "Segoe UI", sans-serif; color: var(--bt-blue); display: inline-flex;
  align-items: center; gap: 6px; text-decoration: none; align-self: flex-start;
  transition: gap 0.2s, color 0.15s;
}
body.amrein-body .wp-product-card-cta:hover { gap: 10px; color: var(--bt-link); text-decoration: none; }
body.amrein-body .wp-product-card-cta i { font-size: 11px; }
/* Responsive */
@media (max-width: 1280px) { body.amrein-body .wp-product-grid-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { body.amrein-body .wp-product-grid-inner { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ════════════════════════════════════════════════════════════════════
   Testimonials (server-rendered .wp-testimonials) — bitalus darkblue theme
   ════════════════════════════════════════════════════════════════════ */
body.amrein-body .wp-testimonials { width: 100%; }
/* Modern single-card carousel (slides horizontally, starts at a random card) */
body.amrein-body .wp-testimonial-carousel {
  position: relative; display: flex; align-items: center; gap: 10px;
  margin-top: 18px;
}
body.amrein-body .wp-testimonial-viewport {
  flex: 1 1 auto; overflow: hidden; border-radius: 8px;
}
body.amrein-body .wp-testimonial-track {
  display: flex; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
body.amrein-body .wp-testimonial-track .wp-testimonial-card {
  flex: 0 0 100%; min-width: 100%; max-width: 100%;
}
body.amrein-body .wp-testimonial-card {
  background: #fff; border: 1px solid #d8dde2; border-radius: 6px;
  padding: 32px 40px; margin: 0; box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.18s, border-color 0.18s; display: flex; flex-direction: column;
}
body.amrein-body .wp-testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12); border-color: var(--bt-blue);
}
/* Stars */
body.amrein-body .wp-testimonial-stars { margin-bottom: 14px; line-height: 1; }
body.amrein-body .wp-testimonial-stars .wp-star { color: #fbbf24; font-size: 16px; letter-spacing: 2px; }
body.amrein-body .wp-testimonial-stars .wp-star-empty { color: #d8dde2; font-size: 16px; letter-spacing: 2px; }
/* Quote */
body.amrein-body .wp-testimonial-text {
  font: 400 16px/1.7 "Segoe UI", sans-serif; color: #2c3e50; font-style: italic;
  margin: 0 0 16px; flex: 1; padding: 0;
}
/* Author */
body.amrein-body .wp-testimonial-author { padding-top: 16px; border-top: 1px solid #d8dde2; display: flex; flex-direction: column; gap: 4px; }
body.amrein-body .wp-testimonial-author .wp-name { font: 600 15px "Segoe UI", sans-serif; color: #1a2e44; }
body.amrein-body .wp-testimonial-author .wp-company { font: 400 13px "Segoe UI", sans-serif; color: #5a6f84; }
body.amrein-body .wp-testimonial-author .wp-product { font: 500 12px "Segoe UI", sans-serif; color: var(--bt-blue); }
body.amrein-body .wp-testimonial-author .wp-product::before { content: '\f02d'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-right: 6px; color: var(--bt-blue); }
/* Prev / Next arrows */
body.amrein-body .wp-tc-nav {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #d8dde2; background: #fff; color: var(--bt-blue);
  font: 700 22px/1 "Segoe UI", sans-serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
body.amrein-body .wp-tc-nav:hover { background: var(--bt-blue); color: #fff; border-color: var(--bt-blue); transform: scale(1.08); }
body.amrein-body .wp-tc-nav:disabled { opacity: 0.35; cursor: default; transform: none; }
/* Dots */
body.amrein-body .wp-tc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
body.amrein-body .wp-tc-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: #d8dde2; transition: background 0.15s, transform 0.15s;
}
body.amrein-body .wp-tc-dot.active { background: var(--bt-blue); transform: scale(1.25); }
body.amrein-body .wp-tc-dot:hover { background: var(--bt-blue); }
@media (max-width: 768px) {
  body.amrein-body .wp-testimonial-card { padding: 22px 22px; }
  body.amrein-body .wp-tc-nav { width: 36px; height: 36px; font-size: 20px; }
  body.amrein-body .wp-testimonial-carousel { gap: 6px; }
}

/* ════════════════════════════════════════════════════════════════════
   Product page tab layout — wraps Overview / Documentation / Download
   content into a clean tabbed interface (bitalus darkblue + coral accent).
   ════════════════════════════════════════════════════════════════════ */
body.amrein-body .ae-product-tabs {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #d8dde2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
body.amrein-body .ae-product-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--bt-blue);
  padding: 0;
  border-bottom: 3px solid rgb(241,95,95);
}
body.amrein-body .ae-product-tab {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font: 600 14px "Segoe UI", sans-serif;
  padding: 12px 22px;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  white-space: nowrap;
}
body.amrein-body .ae-product-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
body.amrein-body .ae-product-tab.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-weight: 700;
}
body.amrein-body .ae-product-tab.active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 3px;
  background: rgb(241,95,95);
}
body.amrein-body .ae-product-tab-panel {
  display: none;
  padding: 24px 28px;
  background: #fff;
}
body.amrein-body .ae-product-tab-panel.active {
  display: block;
}
/* Make inner webparts blend into the panel (remove their own margins/borders) */
body.amrein-body .ae-product-tab-panel > .wprow {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* Section labels inside tabs */
body.amrein-body .ae-product-tab-panel .ae-overview-label,
body.amrein-body .ae-product-tab-panel .ae-tabs-label {
  display: inline-block;
  font: 600 11px "Segoe UI", sans-serif;
  color: var(--bt-blue);
  background: #eef4f9;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
body.amrein-body .ae-product-tab-panel h2 {
  font: 700 18px "Segoe UI", sans-serif;
  color: #1a2e44;
  margin: 0 0 16px;
}
body.amrein-body .ae-product-tab-panel h2 strong { color: rgb(241,95,95); }
/* Gallery inside tab */
body.amrein-body .ae-product-tab-panel .wp-gallery-grid {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
body.amrein-body .ae-product-tab-panel .wp-gallery-tile {
  margin: 0; border: 1px solid #d8dde2; border-radius: 4px; overflow: hidden;
}
body.amrein-body .ae-product-tab-panel .wp-gallery-tile img {
  max-width: 100%; height: auto; display: block;
}
/* Download table inside tab */
body.amrein-body .ae-product-tab-panel .wp-download-table {
  margin: 0;
}
body.amrein-body .ae-product-tab-panel .wp-download-table-table {
  width: 100%; border-collapse: collapse; font: 400 14px "Segoe UI", sans-serif;
}
body.amrein-body .ae-product-tab-panel .wp-download-table-table th {
  background: #f4f6f8; color: #1a2e44; font-weight: 600;
  padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--bt-blue);
}
body.amrein-body .ae-product-tab-panel .wp-download-table-table td {
  padding: 10px 14px; border-bottom: 1px solid #e8ecef; color: #2c3e50;
}
body.amrein-body .ae-product-tab-panel .wp-download-table-table a {
  color: var(--bt-blue); text-decoration: none; font-weight: 600;
}
body.amrein-body .ae-product-tab-panel .wp-download-table-table a:hover { color: var(--bt-link); }
body.amrein-body .ae-product-tab-panel .wp-dl-eval-btn {
  display: inline-block; padding: 4px 12px; border-radius: 4px;
  background: var(--bt-blue); color: #fff !important; font-weight: 600; font-size: 13px;
  text-decoration: none !important; transition: all 0.18s;
}
body.amrein-body .ae-product-tab-panel .wp-dl-eval-btn:hover { background: var(--bt-link); }
/* Pricing note above download table */
body.amrein-body .wp-dl-pricing-note {
  font: 400 13px/1.6 "Segoe UI", sans-serif; color: #5a6f84;
  background: #eef4f9; border-left: 3px solid var(--bt-blue);
  padding: 10px 14px; margin: 0 0 16px; border-radius: 0 4px 4px 0;
}
body.amrein-body .wp-dl-pricing-note strong { color: var(--bt-blue); }
/* ProductTabs (sub-tabs) inside Documentation tab */
body.amrein-body .ae-product-tab-panel .ae-tabs {
  margin: 0; border: none; box-shadow: none;
}
body.amrein-body .ae-product-tab-panel .ae-tabs-header { margin-bottom: 12px; }
body.amrein-body .ae-product-tab-panel .ae-tabs-bar {
  border-bottom: 2px solid var(--bt-blue); margin-bottom: 16px;
}
body.amrein-body .ae-product-tab-panel .ae-tab-btn {
  background: transparent; border: none; color: #5a6f84;
  font: 600 13px "Segoe UI", sans-serif; padding: 8px 16px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.18s;
}
body.amrein-body .ae-product-tab-panel .ae-tab-btn:hover { color: var(--bt-blue); }
body.amrein-body .ae-product-tab-panel .ae-tab-btn.active {
  color: var(--bt-blue); border-bottom-color: rgb(241,95,95); font-weight: 700;
}
body.amrein-body .ae-product-tab-panel .ae-tab-panel { padding: 0; }
/* Responsive */
@media (max-width: 768px) {
  body.amrein-body .ae-product-tabs-bar { flex-direction: column; }
  body.amrein-body .ae-product-tab { padding: 10px 16px; text-align: left; }
  body.amrein-body .ae-product-tab-panel { padding: 16px; }
}

/* ════════════════════════════════════════════════════════════════════
   Pricing contact form (injected into Downloads & Pricing tab)
   ════════════════════════════════════════════════════════════════════ */
body.amrein-body .ae-pricing-contact {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid #d8dde2;
}
body.amrein-body .ae-pricing-contact-hdr h3 {
  font: 700 17px "Segoe UI", sans-serif; color: #1a2e44; margin: 0 0 8px;
}
body.amrein-body .ae-pricing-contact-hdr h3 strong { color: rgb(241,95,95); }
body.amrein-body .ae-pricing-contact-hdr p {
  font: 400 14px/1.6 "Segoe UI", sans-serif; color: #5a6f84; margin: 0 0 18px;
}
body.amrein-body .ae-pricing-contact-hdr strong { color: var(--bt-blue); }
body.amrein-body .ae-pricing-contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  max-width: 640px;
}
body.amrein-body .ae-pricing-contact-form .ae-pc-field:nth-child(3),
body.amrein-body .ae-pricing-contact-form .ae-pc-field:nth-child(4),
body.amrein-body .ae-pricing-contact-form .ae-pc-submit,
body.amrein-body .ae-pricing-contact-form .ae-pc-status {
  grid-column: 1 / -1;
}
body.amrein-body .ae-pc-field { display: flex; flex-direction: column; gap: 4px; }
body.amrein-body .ae-pc-field label {
  font: 600 13px "Segoe UI", sans-serif; color: #2c3e50;
}
body.amrein-body .ae-pc-input {
  border: 1px solid #c8cdd3; border-radius: 4px; padding: 9px 12px;
  font: 400 14px "Segoe UI", sans-serif; color: #2c3e50; background: #fff;
  transition: border-color 0.18s; width: 100%; box-sizing: border-box;
}
body.amrein-body .ae-pc-input:focus {
  outline: none; border-color: var(--bt-blue); box-shadow: 0 0 0 2px rgba(0,78,140,0.12);
}
body.amrein-body textarea.ae-pc-input { resize: vertical; min-height: 80px; }
body.amrein-body .ae-pc-submit {
  background: var(--bt-blue); color: #fff; border: none; border-radius: 4px;
  padding: 11px 24px; font: 700 14px "Segoe UI", sans-serif; cursor: pointer;
  transition: all 0.18s; justify-self: start;
}
body.amrein-body .ae-pc-submit:hover { background: var(--bt-link); }
body.amrein-body .ae-pc-submit:disabled { opacity: 0.6; cursor: wait; }
body.amrein-body .ae-pc-status { margin-top: 4px; }
body.amrein-body .ae-pc-status .alert { padding: 10px 14px; border-radius: 4px; font: 400 14px "Segoe UI", sans-serif; }
body.amrein-body .ae-pc-status .alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c5e3c8; }
body.amrein-body .ae-pc-status .alert-danger { background: #fef7f7; color: #c62828; border: 1px solid #f0d0d0; }
body.amrein-body .ae-pc-status .alert-info { background: #eef4f9; color: var(--bt-blue); border: 1px solid #d0def0; }
@media (max-width: 768px) {
  body.amrein-body .ae-pricing-contact-form { grid-template-columns: 1fr; }
}
