
:root {
  --gesim-blue: #1769ff;
  --gesim-blue-2: #4e88ff;
  --gesim-blue-dark: #0b4bd4;
  --gesim-ink: #0b1730;
  --gesim-muted: #62738d;
  --gesim-line: #dfe7f2;
  --gesim-soft: #f4f8ff;
  --gesim-soft-2: #edf4ff;
  --gesim-white: #fff;
  --gesim-warm: #f0bf7e;
  --gesim-radius-xl: 34px;
  --gesim-radius-lg: 26px;
  --gesim-radius-md: 18px;
  --gesim-shadow: 0 22px 70px rgba(27, 68, 127, .11);
  --gesim-shadow-card: 0 13px 34px rgba(31, 69, 124, .07);
}

.germany-esim-home-page .entry-header,
.germany-esim-home-page .ast-single-post-order {
  display: none !important;
}

.germany-esim-home-page .site-content > .ast-container,
.germany-esim-home-page #primary,
.germany-esim-home-page .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gesim-home, .gesim-home * { box-sizing: border-box; }

.gesim-home {
  color: var(--gesim-ink);
  background: var(--gesim-white);
  font-family: inherit;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.gesim-shell {
  width: min(1200px, calc(100% - 42px));
  margin: 0 auto;
}

.gesim-section { padding: 92px 0; }

.gesim-hero-section {
  padding: 34px 0 56px;
  background:
    radial-gradient(circle at 80% 0%, rgba(23,105,255,.08), transparent 28%),
    #fff;
}

.gesim-hero-stage {
  position: relative;
  min-height: 640px;
  border-radius: var(--gesim-radius-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,247,255,.98));
  border: 1px solid #e1eaf6;
  box-shadow: var(--gesim-shadow);
}

.gesim-hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 20%, rgba(23,105,255,.12), transparent 28%),
    radial-gradient(circle at 18% 90%, rgba(84,136,255,.08), transparent 26%);
}

.gesim-hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: center;
  padding: 70px 72px;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}

.gesim-hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.gesim-eyebrow,
.gesim-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gesim-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
  margin-bottom: 14px;
}

.gesim-eyebrow::before,
.gesim-section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.gesim-hero-copy h1,
.gesim-section-heading h2 {
  margin: 0;
  color: var(--gesim-ink);
  letter-spacing: -.045em;
}

.gesim-hero-copy h1 {
  max-width: 600px;
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: .99;
}

.gesim-subline {
  max-width: 540px;
  margin: 22px 0 25px;
  color: var(--gesim-muted);
  font-size: 18px;
  line-height: 1.66;
}

.gesim-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
  color: #32445f;
  font-size: 13.5px;
  font-weight: 720;
}

.gesim-benefits span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.gesim-access-pill {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 13px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  color: #244c88;
  background: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 760;
}

.gesim-plan-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 480px;
  margin: 0 0 22px;
  padding: 17px 18px;
  border: 1px solid #dce7f4;
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 32px rgba(36,76,135,.08);
}

.gesim-plan-box strong { display:block; font-size:18px; }
.gesim-plan-box small { display:block; margin-top:4px; color:var(--gesim-muted); }
.gesim-plan-price { font-size:18px; font-weight:850; white-space:nowrap; }
.gesim-price-pending { font-size:13px; color:var(--gesim-muted); font-weight:720; }

.gesim-btn {
  display: inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 49px;
  padding: 12px 19px;
  border-radius: 13px;
  text-decoration: none !important;
  font-weight: 820;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.gesim-btn:hover { transform: translateY(-1px); }

.gesim-btn-primary {
  color:#fff !important;
  background: linear-gradient(135deg, var(--gesim-blue), var(--gesim-blue-2));
  box-shadow: 0 12px 27px rgba(23,105,255,.25);
}

.gesim-btn-primary:hover { background: linear-gradient(135deg, var(--gesim-blue-dark), var(--gesim-blue)); }

.gesim-btn-secondary {
  color: var(--gesim-blue) !important;
  background: #eef4ff;
}

.gesim-hero-visual {
  position: relative;
  min-height: 500px;
}

.gesim-landmark {
  position:absolute;
  inset: 8px 0 14px 0;
  overflow:hidden;
  border-radius: 28px;
  background:
    #eaf2ff var(--gesim-hero-image) center/cover no-repeat;
  box-shadow: 0 16px 50px rgba(24,59,108,.10);
}

.gesim-destination-shade {
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(7,34,77,.02), rgba(7,34,77,.10)),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(23,105,255,.04));
}

.gesim-landmark-label {
  position:absolute;
  left:20px;
  bottom:18px;
  z-index:3;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.7);
  border-radius:999px;
  background:rgba(255,255,255,.87);
  backdrop-filter: blur(12px);
  color:#27446f;
  font-size:12px;
  font-weight:820;
  box-shadow: 0 5px 18px rgba(29,63,112,.10);
}

.gesim-phone {
  position:absolute;
  right:6%;
  top:7%;
  width: 224px;
  height: 438px;
  padding: 10px;
  border-radius: 36px;
  background:#08111f;
  box-shadow: 0 28px 74px rgba(14,41,84,.28);
  transform: rotate(2deg);
  z-index:5;
}

.gesim-phone-notch {
  position:absolute;
  left:50%;
  top:12px;
  transform:translateX(-50%);
  width:82px;
  height:21px;
  border-radius:999px;
  background:#040914;
  z-index:6;
}

.gesim-phone-screen {
  height:100%;
  padding:58px 22px 24px;
  border-radius:28px;
  text-align:center;
  color:var(--gesim-ink);
  background:
    radial-gradient(circle at 80% 12%, rgba(23,105,255,.14), transparent 28%),
    linear-gradient(180deg,#fbfdff,#e8f2ff);
}

.gesim-phone-brand {
  display:block;
  margin-bottom:18px;
  color:var(--gesim-blue);
  font-size:12px;
  font-weight:850;
}

.gesim-phone-screen strong { display:block; margin-bottom:20px; font-size:23px; }
.gesim-phone-screen small { display:block; margin-top:13px; color:var(--gesim-muted); }

.gesim-qr {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:5px;
  width:132px;
  height:132px;
  margin:0 auto;
  padding:10px;
  border:1px solid #d6e3f4;
  border-radius:13px;
  background:#fff;
  box-shadow:0 8px 20px rgba(25,60,110,.08);
}

.gesim-qr i { display:block; border-radius:2px; background:#12223a; }
.gesim-qr i:nth-child(2n),
.gesim-qr i:nth-child(5n) { background:#fff; }

.gesim-esim-badge {
  position:absolute;
  left:8%;
  bottom:10%;
  z-index:4;
  display:grid;
  min-width:128px;
  gap:2px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:18px;
  background:rgba(255,255,255,.90);
  backdrop-filter:blur(13px);
  box-shadow:0 14px 36px rgba(22,55,105,.16);
}

.gesim-esim-badge span { color:var(--gesim-blue); font-size:11px; font-weight:850; letter-spacing:.1em; }
.gesim-esim-badge strong { font-size:22px; line-height:1.1; }
.gesim-esim-badge small { color:var(--gesim-muted); }

.gesim-arrow {
  position:absolute;
  top:50%;
  z-index:7;
  width:44px;
  height:44px;
  border:1px solid #d5e1f1;
  border-radius:50%;
  background:rgba(255,255,255,.93);
  color:#17304f;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 7px 22px rgba(35,70,118,.11);
}
.gesim-arrow-prev { left:16px; }
.gesim-arrow-next { right:16px; }

.gesim-dots {
  position:absolute;
  left:50%;
  bottom:19px;
  z-index:7;
  display:flex;
  gap:7px;
  transform:translateX(-50%);
}

.gesim-dot {
  width:8px;
  height:8px;
  padding:0;
  border:0;
  border-radius:999px;
  background:#b8c6d9;
  cursor:pointer;
  transition:width .2s ease, background .2s ease;
}
.gesim-dot.is-active { width:25px; background:var(--gesim-blue); }

/* Trust strip */
.gesim-trust-strip {
  padding: 0 0 12px;
  background:#fff;
}
.gesim-trust-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  padding:16px;
  border:1px solid #e4ebf4;
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 30px rgba(24,65,120,.05);
}
.gesim-trust-grid > span {
  display:grid;
  gap:3px;
  min-height:58px;
  padding:8px 15px;
  border-right:1px solid #edf1f6;
}
.gesim-trust-grid > span:last-child { border-right:0; }
.gesim-trust-grid b { font-size:14px; }
.gesim-trust-grid small { color:var(--gesim-muted); font-size:12px; line-height:1.45; }

.gesim-products-section, .gesim-faq-section { background:#fff; }
.gesim-how-section, .gesim-why-section { background:var(--gesim-soft); }

.gesim-section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:36px;
}
.gesim-section-heading h2 {
  font-size:clamp(34px,4vw,50px);
  line-height:1.06;
}
.gesim-section-heading p {
  margin:12px 0 0;
  color:var(--gesim-muted);
  font-size:17px;
}
.gesim-centered { justify-content:center; text-align:center; }

.gesim-tabs {
  display:inline-flex;
  padding:4px;
  border:1px solid #e2eaf5;
  border-radius:999px;
  background:#edf3fb;
}
.gesim-tab {
  min-width:104px;
  padding:10px 16px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#50627b;
  font-weight:820;
  cursor:pointer;
}
.gesim-tab.is-active {
  background:#fff;
  color:var(--gesim-blue);
  box-shadow:0 4px 16px rgba(31,64,110,.10);
}

.gesim-product-grid {
  display:none;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.gesim-product-grid[data-region-panel="china"] {
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.gesim-product-grid.is-active { display:grid; }

.gesim-product-card {
  display:flex;
  flex-direction:column;
  min-height:415px;
  padding:14px 20px 22px;
  border:1px solid var(--gesim-line);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--gesim-shadow-card);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gesim-product-card:hover {
  transform:translateY(-3px);
  border-color:#cbdaf0;
  box-shadow:0 18px 45px rgba(27,67,124,.10);
}

.gesim-product-visual {
  position:relative;
  height:138px;
  margin:0 0 19px;
  overflow:hidden;
  border-radius:14px;
  background:#eaf2ff var(--gesim-card-image) center/cover no-repeat;
}
.gesim-product-visual::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 45%,rgba(11,35,74,.28));
}
.gesim-product-visual span {
  position:absolute;
  left:11px;
  bottom:9px;
  z-index:2;
  max-width:calc(100% - 22px);
  padding:6px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:#29456d;
  font-size:10px;
  font-weight:780;
}

.gesim-product-kicker {
  color:var(--gesim-blue);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
}
.gesim-product-card h3 {
  margin:9px 0 19px;
  font-size:23px;
  letter-spacing:-.025em;
}
.gesim-product-card dl { margin:0; }
.gesim-product-card dl > div {
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:9px 0;
  border-bottom:1px solid #edf1f6;
}
.gesim-product-card dt { color:var(--gesim-muted); font-size:13px; }
.gesim-product-card dd { margin:0; text-align:right; font-weight:760; font-size:13px; }

.gesim-product-footer {
  margin-top:auto;
  padding-top:22px;
}
.gesim-product-price {
  min-height:28px;
  margin-bottom:12px;
  font-size:24px;
  font-weight:860;
}

.gesim-step-grid, .gesim-feature-grid { display:grid; gap:20px; }
.gesim-step-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.gesim-step-grid-four { grid-template-columns:repeat(4,minmax(0,1fr)); }

.gesim-step-grid article,
.gesim-feature-grid article {
  padding:30px;
  border:1px solid #e1e9f4;
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 30px rgba(34,74,127,.04);
}

.gesim-step-grid article > span,
.gesim-feature-grid article > span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin-bottom:19px;
  border-radius:13px;
  background:#eaf2ff;
  color:var(--gesim-blue);
  font-weight:900;
}
.gesim-step-grid h3, .gesim-feature-grid h3 { margin:0 0 9px; font-size:21px; }
.gesim-step-grid p, .gesim-feature-grid p { margin:0; color:var(--gesim-muted); line-height:1.68; }

.gesim-center-link { margin-top:29px; text-align:center; }
.gesim-center-link a, .gesim-text-link {
  color:var(--gesim-blue);
  text-decoration:none !important;
  font-weight:820;
}

.gesim-feature-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.gesim-network-note { margin:23px 0 0; color:var(--gesim-muted); font-size:13px; text-align:center; }

.gesim-faq-list { border-top:1px solid var(--gesim-line); }
.gesim-faq-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:21px 2px;
  border-bottom:1px solid var(--gesim-line);
  color:var(--gesim-ink) !important;
  text-decoration:none !important;
  font-size:17px;
  font-weight:720;
  transition:color .15s ease, padding .15s ease;
}
.gesim-faq-row:hover { color:var(--gesim-blue) !important; padding-left:5px; }
.gesim-faq-row b { color:var(--gesim-blue); }

@media (max-width: 1024px) {
  .gesim-section { padding:72px 0; }
  .gesim-hero-stage { min-height:700px; }
  .gesim-hero-slide { grid-template-columns:1fr 1fr; padding:50px; gap:28px; }
  .gesim-hero-copy h1 { font-size:52px; }
  .gesim-phone { width:190px; height:380px; }
  .gesim-product-grid,
  .gesim-product-grid[data-region-panel="china"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gesim-step-grid-four { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gesim-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gesim-trust-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gesim-trust-grid > span:nth-child(2) { border-right:0; }
}

@media (max-width: 767px) {
  .gesim-shell { width:min(100% - 24px,620px); }
  .gesim-section { padding:56px 0; }
  .gesim-hero-section { padding-top:16px; padding-bottom:38px; }

  .gesim-hero-stage { min-height:980px; border-radius:24px; }
  .gesim-hero-slide {
    grid-template-columns:1fr;
    align-content:start;
    gap:28px;
    padding:39px 24px 72px;
  }
  .gesim-hero-copy h1 { font-size:43px; line-height:1.02; }
  .gesim-subline { font-size:16px; margin-top:17px; }
  .gesim-benefits { display:grid; gap:8px; }
  .gesim-plan-box { align-items:flex-start; }
  .gesim-btn-primary { width:100%; }

  .gesim-hero-visual { min-height:410px; }
  .gesim-landmark { inset:0; border-radius:20px; }
  .gesim-phone { right:5%; top:5%; width:170px; height:342px; }
  .gesim-qr { width:108px; height:108px; }
  .gesim-esim-badge { left:5%; bottom:7%; min-width:116px; padding:12px 14px; }

  .gesim-arrow { top:auto; bottom:18px; }
  .gesim-arrow-prev { left:18px; }
  .gesim-arrow-next { right:18px; }

  .gesim-section-heading {
    align-items:flex-start;
    flex-direction:column;
    margin-bottom:28px;
  }
  .gesim-section-heading h2 { font-size:35px; }
  .gesim-tabs { width:100%; }
  .gesim-tab { flex:1; }

  .gesim-product-grid,
  .gesim-product-grid[data-region-panel="china"],
  .gesim-step-grid,
  .gesim-feature-grid,
  .gesim-trust-grid { grid-template-columns:1fr; }

  .gesim-trust-grid > span { border-right:0; border-bottom:1px solid #edf1f6; }
  .gesim-trust-grid > span:last-child { border-bottom:0; }

  .gesim-product-card { min-height:0; }
  .gesim-product-visual { height:180px; }
  .gesim-faq-row { font-size:16px; }
}


/* =========================================================
   v0.3 GLOBAL HEADER + FOOTER
   On pages using [germany_esim_home], hide Astra / legacy theme chrome.
   ========================================================= */
.germany-esim-home-page #masthead,
.germany-esim-home-page .site-header,
.germany-esim-home-page header.site-header,
.germany-esim-home-page #colophon,
.germany-esim-home-page .site-footer,
.germany-esim-home-page footer.site-footer,
.germany-esim-home-page .site-above-footer-wrap,
.germany-esim-home-page .site-primary-footer-wrap,
.germany-esim-home-page .site-below-footer-wrap,
.germany-esim-home-page .ast-footer-overlay,
.germany-esim-home-page .elementor-location-header,
.germany-esim-home-page .elementor-location-footer {
  display: none !important;
}

.gesim-site-header,
.gesim-site-footer {
  font-family: inherit;
  color: var(--gesim-ink);
}

.gesim-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,229,241,.92);
}

.admin-bar .gesim-site-header {
  top: 32px;
}

.gesim-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  gap: 34px;
}

.gesim-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gesim-ink) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.gesim-brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 3px;
  width: 26px;
  height: 26px;
  transform: rotate(8deg);
}

.gesim-brand-mark i {
  display: block;
  border-radius: 4px;
  background: var(--gesim-blue);
}

.gesim-brand-mark i:nth-child(2),
.gesim-brand-mark i:nth-child(3) {
  opacity: .55;
}

.gesim-brand-name {
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.025em;
}

.gesim-brand-name b {
  color: var(--gesim-blue);
}

.gesim-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.gesim-desktop-nav a {
  position: relative;
  color: #233550 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 690;
}

.gesim-desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--gesim-blue);
  transition: right .18s ease;
}

.gesim-desktop-nav a:hover::after {
  right: 0;
}

.gesim-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.gesim-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--gesim-ink) !important;
  text-decoration: none !important;
  border: 1px solid #e0e8f3;
  border-radius: 13px;
  background: #fff;
}

.gesim-cart-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gesim-cart-count {
  position: absolute;
  right: -5px;
  top: -5px;
  display: inline-flex;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gesim-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  box-shadow: 0 3px 10px rgba(23,105,255,.25);
}

.gesim-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid #e0e8f3;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}

.gesim-menu-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--gesim-ink);
}

.gesim-mobile-menu {
  border-top: 1px solid #edf1f6;
  background: rgba(255,255,255,.98);
}

.gesim-mobile-menu-inner {
  display: grid;
  padding-top: 12px;
  padding-bottom: 18px;
}

.gesim-mobile-menu-inner > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  border-bottom: 1px solid #edf1f6;
  color: var(--gesim-ink) !important;
  text-decoration: none !important;
  font-weight: 720;
}

.gesim-language-placeholder {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--gesim-soft);
  color: #385172;
}

.gesim-language-placeholder small {
  justify-self: end;
  color: var(--gesim-muted);
}

/* Footer */
.gesim-site-footer {
  background:
    radial-gradient(circle at 10% 10%, rgba(23,105,255,.11), transparent 24%),
    #081426;
  color: #e9f0fb;
}

.gesim-footer-help {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 70px 0 46px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.gesim-footer-help .gesim-section-kicker {
  color: #86adff;
}

.gesim-footer-help h2 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  /* P5.7.3: align global footer CTA heading with the frozen User Center title scale. */
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.gesim-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr .9fr .9fr;
  gap: 46px;
  padding: 52px 0;
}

.gesim-footer-grid .gesim-brand {
  color: #fff !important;
}

.gesim-footer-grid .gesim-brand-name {
  color: #fff;
}

.gesim-footer-brand p,
.gesim-footer-grid small,
.gesim-payment-note {
  color: #94a7c2;
  line-height: 1.65;
}

.gesim-footer-brand p {
  max-width: 310px;
  margin: 18px 0 12px;
}

.gesim-footer-about,
.gesim-footer-grid > div > a {
  color: #dce8fb !important;
  text-decoration: none !important;
}

.gesim-footer-about {
  font-weight: 760;
}

.gesim-footer-grid h3 {
  margin: 2px 0 18px;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gesim-footer-grid > div:not(.gesim-footer-brand) > a {
  display: block;
  margin: 0 0 11px;
  color: #b9c8dc !important;
}

.gesim-footer-grid a:hover {
  color: #fff !important;
}

.gesim-footer-language {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gesim-footer-language span {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #aebed4;
  font-size: 12px;
}

.gesim-footer-language span.is-active {
  border-color: rgba(134,173,255,.45);
  background: rgba(23,105,255,.16);
  color: #fff;
}

.gesim-payment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gesim-payment-list span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  color: #d9e4f3;
  font-size: 12px;
}

.gesim-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #8196b1;
  font-size: 12px;
}

.gesim-back-to-top {
  border: 0;
  background: transparent;
  color: #b8c8dc;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.gesim-back-to-top:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .gesim-header-inner {
    gap: 20px;
  }

  .gesim-desktop-nav {
    gap: 20px;
  }

  .gesim-footer-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 767px) {
  .admin-bar .gesim-site-header {
    top: 46px;
  }

  .gesim-header-inner {
    min-height: 64px;
    grid-template-columns: 1fr auto;
  }

  .gesim-desktop-nav {
    display: none;
  }

  .gesim-brand-name {
    font-size: 18px;
  }

  .gesim-menu-toggle {
    display: inline-block;
  }

  .gesim-footer-help {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 54px;
  }

  .gesim-footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 0;
  }

  .gesim-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   v0.4 PRODUCT DETAIL
   ========================================================= */
.gesim-product-detail-page {
  color: var(--gesim-ink);
  background: #fff;
  font-family: inherit;
}

.gesim-detail-hero {
  padding: 44px 0 70px;
  background:
    radial-gradient(circle at 80% 10%, rgba(23,105,255,.08), transparent 26%),
    linear-gradient(180deg,#fff,#f7faff);
}

.gesim-detail-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  align-items: center;
  gap: 60px;
}

.gesim-detail-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 5.3vw, 72px);
  line-height: 1;
  letter-spacing: -.05em;
}

.gesim-detail-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--gesim-muted) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 720;
}

.gesim-detail-intro {
  max-width: 620px;
  margin: 20px 0 16px;
  color: var(--gesim-muted);
  font-size: 18px;
  line-height: 1.65;
}

.gesim-detail-price {
  min-height: 34px;
  margin: 0 0 24px;
  font-size: 30px;
  font-weight: 860;
}

.gesim-detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  max-width: 620px;
  margin-bottom: 20px;
}

.gesim-detail-spec-grid > div {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 16px 18px;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30,68,121,.05);
}

.gesim-detail-spec-grid span {
  color: var(--gesim-muted);
  font-size: 12px;
}

.gesim-detail-spec-grid strong {
  font-size: 16px;
}

.gesim-detail-access {
  display: grid;
  gap: 5px;
  max-width: 620px;
  margin: 0 0 20px;
  padding: 17px 18px;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  background: #eef5ff;
}

.gesim-detail-access span {
  color: var(--gesim-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
}

.gesim-detail-access small {
  color: var(--gesim-muted);
}

.gesim-detail-buy {
  min-width: 180px;
}

.gesim-detail-note {
  margin: 13px 0 0;
  color: var(--gesim-muted);
  font-size: 12px;
}

.gesim-detail-visual-wrap {
  min-width: 0;
}

.gesim-detail-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #dfe8f4;
  border-radius: 30px;
  background: #eaf2ff var(--gesim-detail-image) center/cover no-repeat;
  box-shadow: var(--gesim-shadow);
}

.gesim-detail-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,rgba(11,35,74,.02),rgba(11,35,74,.14)),
    radial-gradient(circle at 80% 10%,rgba(23,105,255,.08),transparent 26%);
}

.gesim-detail-landmark {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 4;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #27446f;
  font-size: 12px;
  font-weight: 820;
}

.gesim-detail-phone {
  position: absolute;
  right: 7%;
  top: 9%;
  z-index: 4;
  width: 230px;
  height: 450px;
  padding: 10px;
  border-radius: 36px;
  background: #08111f;
  box-shadow: 0 30px 76px rgba(14,41,84,.30);
  transform: rotate(2deg);
}

.gesim-detail-phone .gesim-phone-screen {
  border-radius: 28px;
}

.gesim-detail-info {
  background: #fff;
}

.gesim-detail-feature-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
}

.gesim-detail-feature-grid article {
  padding: 28px;
  border: 1px solid #e1e9f4;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--gesim-shadow-card);
}

.gesim-detail-feature-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eaf2ff;
  color: var(--gesim-blue);
  font-weight: 900;
}

.gesim-detail-feature-grid h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.gesim-detail-feature-grid p {
  margin: 0;
  color: var(--gesim-muted);
  line-height: 1.65;
}

.gesim-detail-steps {
  background: var(--gesim-soft);
}

@media (max-width: 1024px) {
  .gesim-detail-grid {
    gap: 34px;
  }

  .gesim-detail-copy h1 {
    font-size: 54px;
  }

  .gesim-detail-phone {
    width: 190px;
    height: 380px;
  }

  .gesim-detail-feature-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 767px) {
  .gesim-detail-hero {
    padding-top: 28px;
  }

  .gesim-detail-grid {
    grid-template-columns: 1fr;
  }

  .gesim-detail-copy h1 {
    font-size: 43px;
  }

  .gesim-detail-spec-grid {
    grid-template-columns: 1fr;
  }

  .gesim-detail-buy {
    width: 100%;
  }

  .gesim-detail-visual {
    min-height: 430px;
  }

  .gesim-detail-phone {
    width: 170px;
    height: 342px;
  }

  .gesim-detail-feature-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   v0.5 WOOCOMMERCE CART + CHECKOUT SHELL
   Keeps WooCommerce business logic intact; visual layer only.
   ========================================================= */

.germany-esim-commerce-page #masthead,
.germany-esim-commerce-page .site-header,
.germany-esim-commerce-page header.site-header,
.germany-esim-commerce-page #colophon,
.germany-esim-commerce-page .site-footer,
.germany-esim-commerce-page footer.site-footer,
.germany-esim-commerce-page .site-above-footer-wrap,
.germany-esim-commerce-page .site-primary-footer-wrap,
.germany-esim-commerce-page .site-below-footer-wrap,
.germany-esim-commerce-page .ast-footer-overlay,
.germany-esim-commerce-page .elementor-location-header,
.germany-esim-commerce-page .elementor-location-footer {
  display: none !important;
}

.germany-esim-commerce-page .site-content {
  background:
    radial-gradient(circle at 80% 0%, rgba(23,105,255,.06), transparent 24%),
    #f8fbff;
}

.germany-esim-commerce-page .site-content > .ast-container {
  width: min(1180px, calc(100% - 42px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 56px 0 82px !important;
}

.germany-esim-commerce-page #primary {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.germany-esim-commerce-page .entry-header {
  display: none !important;
}

.germany-esim-commerce-page .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

.gesim-commerce-intro {
  max-width: 760px;
  margin: 0 0 34px;
}

.gesim-commerce-intro h1 {
  margin: 0;
  color: var(--gesim-ink);
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.gesim-commerce-intro p {
  margin: 14px 0 0;
  color: var(--gesim-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Woo notices */
.germany-esim-commerce-page .woocommerce-notices-wrapper,
.germany-esim-commerce-page .woocommerce-message,
.germany-esim-commerce-page .woocommerce-info,
.germany-esim-commerce-page .woocommerce-error {
  margin-bottom: 22px;
}

.germany-esim-commerce-page .woocommerce-message,
.germany-esim-commerce-page .woocommerce-info {
  border: 1px solid #dce8f7;
  border-top: 1px solid #dce8f7;
  border-radius: 16px;
  background: #fff;
  color: #2f4666;
  box-shadow: 0 9px 28px rgba(30,68,121,.05);
}

.germany-esim-commerce-page .woocommerce-message::before,
.germany-esim-commerce-page .woocommerce-info::before {
  color: var(--gesim-blue);
}

/* CART */
.germany-esim-commerce-page.woocommerce-cart form.woocommerce-cart-form {
  margin-bottom: 30px;
}

.germany-esim-commerce-page .woocommerce-cart-form__contents {
  overflow: hidden;
  border: 1px solid #dfe7f2 !important;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--gesim-shadow-card);
}

.germany-esim-commerce-page .woocommerce-cart-form table.shop_table,
.germany-esim-commerce-page table.shop_table {
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid #dfe7f2 !important;
  border-radius: 20px !important;
  background: #fff;
  overflow: hidden;
}

.germany-esim-commerce-page table.shop_table th {
  color: #50627b;
  background: #f7faff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.germany-esim-commerce-page table.shop_table td {
  border-top: 1px solid #edf1f6 !important;
  color: var(--gesim-ink);
}

.germany-esim-commerce-page .product-name a {
  color: var(--gesim-ink) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.germany-esim-commerce-page .product-price,
.germany-esim-commerce-page .product-subtotal {
  font-weight: 800;
}

.germany-esim-commerce-page .quantity .qty {
  min-height: 42px;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  background: #fff;
}

.germany-esim-commerce-page .coupon {
  display: flex;
  gap: 9px;
}

.germany-esim-commerce-page .coupon #coupon_code {
  min-width: 180px;
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid #dce5f1;
  border-radius: 11px;
}

.germany-esim-commerce-page .button,
.germany-esim-commerce-page button.button,
.germany-esim-commerce-page input.button,
.germany-esim-commerce-page #place_order {
  min-height: 46px;
  padding: 11px 18px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  transition: transform .16s ease, box-shadow .16s ease !important;
}

.germany-esim-commerce-page .button:hover,
.germany-esim-commerce-page button.button:hover,
.germany-esim-commerce-page #place_order:hover {
  transform: translateY(-1px);
}

.germany-esim-commerce-page .checkout-button,
.germany-esim-commerce-page #place_order {
  background: linear-gradient(135deg,var(--gesim-blue),var(--gesim-blue-2)) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(23,105,255,.22);
}

.germany-esim-commerce-page .cart-collaterals {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

.germany-esim-commerce-page .cart_totals {
  width: min(100%, 520px) !important;
  float: none !important;
  padding: 28px;
  border: 1px solid #dfe7f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--gesim-shadow-card);
}

.germany-esim-commerce-page .cart_totals h2 {
  margin: 0 0 18px;
  color: var(--gesim-ink);
  font-size: 24px;
  letter-spacing: -.03em;
}

.germany-esim-commerce-page .cart_totals table {
  border: 0 !important;
  box-shadow: none !important;
}

.germany-esim-commerce-page .cart_totals th,
.germany-esim-commerce-page .cart_totals td {
  background: transparent !important;
  border-top: 1px solid #edf1f6 !important;
}

.germany-esim-commerce-page .wc-proceed-to-checkout {
  margin-bottom: 0;
}

.germany-esim-commerce-page .wc-proceed-to-checkout .checkout-button {
  margin-bottom: 0 !important;
  font-size: 16px !important;
}

/* CHECKOUT */
.germany-esim-commerce-page.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: 28px;
  align-items: start;
}

.germany-esim-commerce-page.woocommerce-checkout #customer_details,
.germany-esim-commerce-page.woocommerce-checkout #order_review {
  min-width: 0;
}

.germany-esim-commerce-page.woocommerce-checkout #customer_details {
  grid-column: 1;
}

.germany-esim-commerce-page.woocommerce-checkout #order_review_heading,
.germany-esim-commerce-page.woocommerce-checkout #order_review {
  grid-column: 2;
}

.germany-esim-commerce-page.woocommerce-checkout #order_review_heading {
  margin: 0 0 -6px;
  padding: 0 4px;
  color: var(--gesim-ink);
  font-size: 22px;
  letter-spacing: -.03em;
}

.germany-esim-commerce-page.woocommerce-checkout .col2-set {
  width: 100%;
}

.germany-esim-commerce-page.woocommerce-checkout .col2-set .col-1,
.germany-esim-commerce-page.woocommerce-checkout .col2-set .col-2 {
  width: 100%;
  float: none;
}

.germany-esim-commerce-page.woocommerce-checkout .woocommerce-billing-fields,
.germany-esim-commerce-page.woocommerce-checkout .woocommerce-shipping-fields,
.germany-esim-commerce-page.woocommerce-checkout .woocommerce-additional-fields,
.germany-esim-commerce-page.woocommerce-checkout #order_review {
  padding: 26px;
  border: 1px solid #dfe7f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--gesim-shadow-card);
}

.germany-esim-commerce-page.woocommerce-checkout .woocommerce-billing-fields h3,
.germany-esim-commerce-page.woocommerce-checkout .woocommerce-additional-fields h3 {
  margin-top: 0;
  color: var(--gesim-ink);
  font-size: 22px;
  letter-spacing: -.03em;
}

.germany-esim-commerce-page.woocommerce-checkout .form-row label {
  margin-bottom: 6px;
  color: #445873;
  font-size: 12px;
  font-weight: 800;
}

.germany-esim-commerce-page.woocommerce-checkout input.input-text,
.germany-esim-commerce-page.woocommerce-checkout textarea,
.germany-esim-commerce-page.woocommerce-checkout select,
.germany-esim-commerce-page.woocommerce-checkout .select2-selection {
  min-height: 46px;
  border: 1px solid #dbe4ef !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.germany-esim-commerce-page.woocommerce-checkout input.input-text,
.germany-esim-commerce-page.woocommerce-checkout textarea {
  padding: 10px 12px;
}

.germany-esim-commerce-page.woocommerce-checkout .select2-selection__rendered {
  line-height: 44px !important;
}

.germany-esim-commerce-page.woocommerce-checkout .select2-selection__arrow {
  height: 44px !important;
}

.germany-esim-commerce-page.woocommerce-checkout #payment {
  margin-top: 22px;
  border-radius: 16px;
  background: #f5f8fd;
}

.germany-esim-commerce-page.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid #dde7f3;
}

.germany-esim-commerce-page.woocommerce-checkout #payment div.payment_box {
  border-radius: 12px;
  background: #eaf2ff;
  color: #314a6d;
}

.germany-esim-commerce-page.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #eaf2ff;
}

.germany-esim-commerce-page.woocommerce-checkout .woocommerce-privacy-policy-text,
.germany-esim-commerce-page.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  color: var(--gesim-muted);
  font-size: 12px;
  line-height: 1.6;
}

.germany-esim-commerce-page.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  font-size: 16px !important;
}

/* Hide default page-level old CTA/footer widgets if a theme/plugin injects them */
.germany-esim-commerce-page .elementor-location-footer,
.germany-esim-commerce-page .footer-widget-area,
.germany-esim-commerce-page .site-footer-focus-item {
  display: none !important;
}

@media (max-width: 900px) {
  .germany-esim-commerce-page.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }

  .germany-esim-commerce-page.woocommerce-checkout #customer_details,
  .germany-esim-commerce-page.woocommerce-checkout #order_review_heading,
  .germany-esim-commerce-page.woocommerce-checkout #order_review {
    grid-column: 1;
  }

  .germany-esim-commerce-page .cart-collaterals {
    display: block;
  }

  .germany-esim-commerce-page .cart_totals {
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  .germany-esim-commerce-page .site-content > .ast-container {
    width: min(100% - 24px, 620px) !important;
    padding: 34px 0 60px !important;
  }

  .gesim-commerce-intro h1 {
    font-size: 38px;
  }

  .germany-esim-commerce-page .woocommerce-cart-form__contents,
  .germany-esim-commerce-page table.shop_table {
    border-radius: 16px !important;
  }

  .germany-esim-commerce-page .cart_totals,
  .germany-esim-commerce-page.woocommerce-checkout .woocommerce-billing-fields,
  .germany-esim-commerce-page.woocommerce-checkout .woocommerce-shipping-fields,
  .germany-esim-commerce-page.woocommerce-checkout .woocommerce-additional-fields,
  .germany-esim-commerce-page.woocommerce-checkout #order_review {
    padding: 20px;
    border-radius: 16px;
  }

  .germany-esim-commerce-page .coupon {
    flex-direction: column;
  }

  .germany-esim-commerce-page .coupon #coupon_code,
  .germany-esim-commerce-page .coupon .button {
    width: 100% !important;
  }
}


/* =========================================================
   v0.5.1 CHECKOUT WIDTH FIX
   Astra/WooCommerce can retain float/percentage widths on
   #customer_details / #order_review. Force grid items to full width.
   ========================================================= */

.germany-esim-commerce-page.woocommerce-checkout form.checkout::before,
.germany-esim-commerce-page.woocommerce-checkout form.checkout::after {
  display: none !important;
  content: none !important;
}

.germany-esim-commerce-page.woocommerce-checkout #customer_details,
.germany-esim-commerce-page.woocommerce-checkout #order_review_heading,
.germany-esim-commerce-page.woocommerce-checkout #order_review,
.germany-esim-commerce-page.woocommerce-checkout .col2-set,
.germany-esim-commerce-page.woocommerce-checkout .col2-set .col-1,
.germany-esim-commerce-page.woocommerce-checkout .col2-set .col-2 {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.germany-esim-commerce-page.woocommerce-checkout #customer_details {
  grid-column: 1 / 2 !important;
  grid-row: 1 / span 2;
}

.germany-esim-commerce-page.woocommerce-checkout #order_review_heading {
  grid-column: 2 / 3 !important;
  grid-row: 1;
  align-self: end;
}

.germany-esim-commerce-page.woocommerce-checkout #order_review {
  grid-column: 2 / 3 !important;
  grid-row: 2;
}

.germany-esim-commerce-page.woocommerce-checkout #order_review table.shop_table,
.germany-esim-commerce-page.woocommerce-checkout #payment {
  width: 100% !important;
  max-width: none !important;
}

.germany-esim-commerce-page.woocommerce-checkout #payment ul.payment_methods,
.germany-esim-commerce-page.woocommerce-checkout #payment .payment_box,
.germany-esim-commerce-page.woocommerce-checkout #payment .place-order {
  width: 100% !important;
  max-width: none !important;
}

.germany-esim-commerce-page.woocommerce-checkout #payment ul.payment_methods li {
  width: 100% !important;
  white-space: normal !important;
}

.germany-esim-commerce-page.woocommerce-checkout #payment label {
  display: inline !important;
  white-space: normal !important;
}

@media (max-width: 900px) {
  .germany-esim-commerce-page.woocommerce-checkout #customer_details,
  .germany-esim-commerce-page.woocommerce-checkout #order_review_heading,
  .germany-esim-commerce-page.woocommerce-checkout #order_review {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}


/* =========================================================
   v0.6 REAL CORE EMAIL VERIFICATION IN CHECKOUT
   ========================================================= */

.gesim-checkout-email-step {
  margin: 0 0 28px;
  padding: 26px;
  border: 1px solid #cfe0ff;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 10%, rgba(23,105,255,.08), transparent 28%),
    #fff;
  box-shadow: var(--gesim-shadow-card);
}

.gesim-checkout-step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.gesim-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gesim-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(23,105,255,.20);
}

.gesim-checkout-step-head h2 {
  margin: 0;
  color: var(--gesim-ink);
  font-size: 24px;
  letter-spacing: -.03em;
}

.gesim-checkout-step-head p {
  margin: 5px 0 0;
  color: var(--gesim-muted);
  line-height: 1.55;
}

.gesim-core-email-verification .germany-esim-email-verify {
  max-width: none !important;
}

.gesim-core-email-verification .germany-esim-email-verify > div {
  align-items: flex-end !important;
  gap: 10px !important;
}

.gesim-core-email-verification .germany-esim-email-verify label {
  color: #445873;
  font-size: 12px;
}

.gesim-core-email-verification .germany-esim-email-verify input.ge-email,
.gesim-core-email-verification .germany-esim-email-verify input.ge-code {
  min-height: 46px;
  padding: 10px 12px !important;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
  background: #fff;
  color: var(--gesim-ink);
  box-shadow: none;
}

.gesim-core-email-verification .germany-esim-email-verify .ge-send,
.gesim-core-email-verification .germany-esim-email-verify .ge-verify {
  min-height: 46px;
  padding: 10px 16px !important;
  border: 0;
  border-radius: 11px;
  font-weight: 800;
  cursor: pointer;
}

.gesim-core-email-verification .germany-esim-email-verify .ge-send {
  background: #edf4ff;
  color: var(--gesim-blue);
}

.gesim-core-email-verification .germany-esim-email-verify .ge-verify {
  background: linear-gradient(135deg,var(--gesim-blue),var(--gesim-blue-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(23,105,255,.20);
}

.gesim-core-email-verification .germany-esim-email-verify .ge-msg {
  min-height: 20px;
  margin-bottom: 0;
  color: #385172;
  font-size: 13px;
  font-weight: 700;
}

.gesim-checkout-email-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf1f6;
  color: #52657e;
  font-size: 13px;
  font-weight: 720;
}

.gesim-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e2a338;
  box-shadow: 0 0 0 4px rgba(226,163,56,.12);
}

.gesim-checkout-email-step.is-verified {
  border-color: #b8dfc7;
  background:
    radial-gradient(circle at 92% 10%, rgba(39,174,96,.08), transparent 28%),
    #fff;
}

.gesim-checkout-email-step.is-verified .gesim-status-dot {
  background: #28a660;
  box-shadow: 0 0 0 4px rgba(40,166,96,.12);
}

.gesim-checkout-admin-warning,
.gesim-checkout-config-warning {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.55;
}

.gesim-checkout-admin-warning {
  border: 1px solid #f1d39b;
  background: #fff8e8;
  color: #6d4a0d;
}

.gesim-checkout-config-warning {
  border: 1px solid #efc3c3;
  background: #fff2f2;
  color: #7b2727;
}

/* Make email visually the key identity field in Billing details */
.germany-esim-commerce-page.woocommerce-checkout #billing_email_field {
  padding: 14px;
  border: 1px solid #d9e5f5;
  border-radius: 13px;
  background: #f8fbff;
}

.germany-esim-commerce-page.woocommerce-checkout #billing_email_field label::after {
  content: " — must match verified email";
  color: var(--gesim-blue);
  font-weight: 700;
}

@media (max-width: 767px) {
  .gesim-checkout-email-step {
    padding: 20px;
    border-radius: 16px;
  }

  .gesim-core-email-verification .germany-esim-email-verify > div {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .gesim-core-email-verification .germany-esim-email-verify label {
    min-width: 0 !important;
  }

  .gesim-core-email-verification .germany-esim-email-verify .ge-send,
  .gesim-core-email-verification .germany-esim-email-verify .ge-verify {
    width: 100%;
  }
}


/* =========================================================
   v0.7 SECURE PAYMENT SUCCESS / ORDER RECEIVED
   ========================================================= */

.germany-esim-success-page {
  margin: 0;
  background: #f8fbff;
}

.germany-esim-success-page #wpadminbar {
  display: none !important;
}

.gesim-success-page {
  color: var(--gesim-ink);
  background:
    radial-gradient(circle at 75% 8%, rgba(23,105,255,.08), transparent 24%),
    #f8fbff;
}

.gesim-success-hero {
  padding: 74px 0 90px;
}

.gesim-success-shell {
  max-width: 850px;
  text-align: center;
}

.gesim-success-icon {
  display: inline-flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gesim-blue), var(--gesim-blue-2));
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(23,105,255,.22);
}

.gesim-success-shell .gesim-section-kicker {
  display: flex;
  width: max-content;
  margin: 0 auto 14px;
}

.gesim-success-shell h1 {
  margin: 0;
  color: var(--gesim-ink);
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -.05em;
}

.gesim-success-lead {
  max-width: 690px;
  margin: 20px auto 34px;
  color: var(--gesim-muted);
  font-size: 18px;
  line-height: 1.68;
}

.gesim-success-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}

.gesim-success-progress > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 13px 15px;
  border: 1px solid #dfe7f2;
  border-radius: 15px;
  background: #fff;
  color: #62738d;
  text-align: left;
}

.gesim-success-progress span {
  display: inline-flex;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef3fa;
  color: #70819a;
  font-size: 12px;
  font-weight: 900;
}

.gesim-success-progress strong {
  font-size: 13px;
}

.gesim-success-progress .is-done {
  border-color: #c9e4d2;
  color: #315d43;
}

.gesim-success-progress .is-done span {
  background: #e7f6ed;
  color: #209454;
}

.gesim-success-progress .is-current {
  border-color: #cfe0ff;
  background: #f4f8ff;
  color: #234e8a;
}

.gesim-success-progress .is-current span {
  background: #e5efff;
  color: var(--gesim-blue);
}

.gesim-success-card {
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--gesim-shadow-card);
  text-align: left;
}

.gesim-success-card-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e8eef6;
}

.gesim-success-card-head > div {
  display: grid;
  gap: 4px;
  padding: 20px;
  background: #f8fbff;
}

.gesim-success-card-head span,
.gesim-success-email span {
  color: var(--gesim-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.gesim-success-card-head strong {
  color: var(--gesim-ink);
  font-size: 17px;
}

.gesim-success-items {
  padding: 12px 20px;
}

.gesim-success-items > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f6;
}

.gesim-success-items > div:last-child {
  border-bottom: 0;
}

.gesim-success-items span {
  font-weight: 760;
}

.gesim-success-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-top: 1px solid #edf1f6;
  background: #fbfdff;
}

.gesim-success-email strong {
  color: #304a6c;
}

.gesim-success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.gesim-success-security {
  margin: 16px 0 0;
  color: #7d8da4;
  font-size: 12px;
}

@media (max-width: 767px) {
  .gesim-success-hero {
    padding: 52px 0 66px;
  }

  .gesim-success-shell h1 {
    font-size: 43px;
  }

  .gesim-success-progress,
  .gesim-success-card-head {
    grid-template-columns: 1fr;
  }

  .gesim-success-card-head {
    gap: 0;
  }

  .gesim-success-card-head > div {
    border-bottom: 1px solid #edf1f6;
  }

  .gesim-success-card-head > div:last-child {
    border-bottom: 0;
  }

  .gesim-success-email {
    align-items: flex-start;
    flex-direction: column;
  }

  .gesim-success-actions {
    flex-direction: column;
  }

  .gesim-success-actions .gesim-btn {
    width: 100%;
  }
}


/* =========================================================
   v0.8 USER CENTER
   Verified-email portal; no WordPress password required.
   ========================================================= */

.germany-esim-user-center-page .entry-header,
.germany-esim-user-center-page .entry-title {
  display: none !important;
}

.germany-esim-user-center-page .site-content > .ast-container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

.germany-esim-user-center-page #primary,
.germany-esim-user-center-page .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gesim-user-center {
  min-height: 70vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(23,105,255,.07), transparent 23%),
    #f8fbff;
  color: var(--gesim-ink);
}

.gesim-user-center-shell {
  padding-top: 62px;
  padding-bottom: 82px;
}

.gesim-portal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.gesim-portal-head h1,
.gesim-portal-auth h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.05em;
}

.gesim-portal-head p,
.gesim-portal-auth > p {
  margin: 14px 0 0;
  color: var(--gesim-muted);
  font-size: 16px;
}

.gesim-portal-badge {
  padding: 9px 13px;
  border: 1px solid #bfe0ca;
  border-radius: 999px;
  background: #edf9f1;
  color: #267747;
  font-size: 12px;
  font-weight: 850;
}

.gesim-portal-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  padding: 5px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #fff;
}

.gesim-portal-tabs a {
  padding: 10px 14px;
  border-radius: 10px;
  color: #536681 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.gesim-portal-tabs a.is-active {
  background: #edf4ff;
  color: var(--gesim-blue) !important;
}

.gesim-portal-section {
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid #dfe7f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--gesim-shadow-card);
}

.gesim-portal-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.gesim-portal-section-head h2,
.gesim-portal-support h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.04em;
}

.gesim-portal-esim-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.gesim-portal-esim-card {
  padding: 22px;
  border: 1px solid #e0e8f3;
  border-radius: 18px;
  background: #fbfdff;
}

.gesim-portal-esim-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gesim-portal-esim-top > div > span {
  color: var(--gesim-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.gesim-portal-esim-top h3 {
  margin: 5px 0 0;
  font-size: 22px;
}

.gesim-portal-state {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--gesim-blue);
  font-size: 11px;
  font-weight: 850;
}

.gesim-portal-esim-card dl {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
}

.gesim-portal-esim-card dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid #edf1f6;
}

.gesim-portal-esim-card dt {
  color: var(--gesim-muted);
  font-size: 12px;
}

.gesim-portal-esim-card dd {
  margin: 0;
  font-weight: 750;
}

.gesim-portal-sensitive-note {
  margin-top: 16px;
  padding: 12px 13px;
  border-radius: 12px;
  background: #f1f5fa;
  color: #65758c;
  font-size: 12px;
  line-height: 1.55;
}

.gesim-portal-empty {
  padding: 42px 24px;
  border: 1px dashed #cdd9e8;
  border-radius: 18px;
  background: #fafcff;
  text-align: center;
}

.gesim-portal-empty.compact {
  padding: 28px 22px;
}

.gesim-portal-empty-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 15px;
  background: #eaf2ff;
  color: var(--gesim-blue);
  font-size: 24px;
  font-weight: 900;
}

.gesim-portal-empty h3 {
  margin: 0;
  font-size: 22px;
}

.gesim-portal-empty p {
  max-width: 620px;
  margin: 9px auto 0;
  color: var(--gesim-muted);
  line-height: 1.6;
}

.gesim-order-history {
  display: grid;
  gap: 10px;
}

.gesim-order-history-row {
  display: grid;
  grid-template-columns: .75fr 1.5fr 1fr .7fr;
  align-items: center;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid #e2e9f3;
  border-radius: 15px;
  background: #fbfdff;
}

.gesim-order-history-row > div {
  display: grid;
  gap: 4px;
}

.gesim-order-history-row span {
  color: var(--gesim-muted);
  font-size: 11px;
}

.gesim-order-history-row strong {
  font-size: 13px;
}

/* P4.1 order provenance: distinguish frozen LIVE vs SANDBOX Top-up checkout
   environments without hiding either order from the owner's history. */
.gesim-order-number-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.gesim-order-env-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 7px;
  border: 1px solid #d8e1ee;
  border-radius: 999px;
  background: #f5f8fc;
  color: #44546a !important;
  font-size: 9px !important;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .045em;
  white-space: nowrap;
}

.gesim-order-env-live {
  border-color: #c9d8ff;
  background: #f0f5ff;
  color: #3157c8 !important;
}

.gesim-order-env-sandbox,
.gesim-order-env-review {
  border-color: #d7dee8;
  background: #f6f7f9;
  color: #596779 !important;
}

.gesim-order-products {
  gap: 5px !important;
}

.gesim-order-products span {
  color: var(--gesim-ink);
  font-size: 13px;
  font-weight: 760;
}

.gesim-portal-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 32px;
  border-radius: 22px;
  background: #0b1830;
  color: #fff;
}

.gesim-portal-support .gesim-section-kicker {
  color: #8eb2ff;
}

.gesim-portal-support h2 {
  color: #fff;
}

.gesim-portal-support p {
  max-width: 650px;
  margin: 9px 0 0;
  color: #a9bbd2;
}

.gesim-portal-auth {
  max-width: 780px;
  margin: 20px auto;
  padding: 34px;
  border: 1px solid #d9e5f3;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--gesim-shadow-card);
}

.gesim-portal-verify {
  margin-top: 26px;
}

.gesim-portal-verify .germany-esim-email-verify {
  max-width: none !important;
}

.gesim-portal-auth-note {
  margin-top: 12px;
  color: var(--gesim-muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .gesim-portal-esim-grid {
    grid-template-columns: 1fr;
  }

  .gesim-order-history-row {
    grid-template-columns: 1fr 1fr;
  }

  .gesim-portal-support {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .gesim-user-center-shell {
    padding-top: 40px;
    padding-bottom: 62px;
  }

  .gesim-portal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gesim-portal-head h1,
  .gesim-portal-auth h1 {
    font-size: 42px;
  }

  .gesim-portal-section {
    padding: 20px;
    border-radius: 17px;
  }

  .gesim-order-history-row {
    grid-template-columns: 1fr;
  }

  .gesim-portal-auth {
    padding: 22px;
    border-radius: 18px;
  }
}

/* =========================================================
   v0.8.0.1-RB1.1 OTP PAYMENT UI GATE
   Core is authoritative. Payment UI is hidden until a valid
   verified-email session exists; WooPayments DOM is not moved.
   ========================================================= */
.gesim-payment-gate-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -12px 0 24px;
  padding: 12px 14px;
  border: 1px solid #f0d7a4;
  border-radius: 12px;
  background: #fff9ec;
  color: #6b4a11;
  font-size: 13px;
  line-height: 1.45;
}

.gesim-payment-gate-notice strong {
  flex: 0 0 auto;
  font-weight: 850;
}

body.gesim-payment-unlocked .gesim-payment-gate-notice,
.gesim-payment-gate-notice[hidden] {
  display: none !important;
}

body.gesim-payment-locked.woocommerce-checkout #payment,
body.gesim-payment-locked.woocommerce-checkout .woocommerce-checkout-payment,
body.gesim-payment-locked.woocommerce-checkout #wcpay-payment-request-wrapper,
body.gesim-payment-locked.woocommerce-checkout #wcpay-payment-request-button,
body.gesim-payment-locked.woocommerce-checkout #wcpay-payment-request-button-separator,
body.gesim-payment-locked.woocommerce-checkout #wcpay-express-checkout-element,
body.gesim-payment-locked.woocommerce-checkout #wc-woocommerce_payments-express-checkout-element,
body.gesim-payment-locked.woocommerce-checkout .wcpay-express-checkout-wrapper,
body.gesim-payment-locked.woocommerce-checkout .wcpay-payment-request-wrapper,
body.gesim-payment-locked.woocommerce-checkout .wc-block-components-express-payment {
  display: none !important;
}

@media (max-width: 767px) {
  .gesim-payment-gate-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}



/* =========================================================
   v0.8.0.2-RB2 BILLING CONTACT FIELD TEST
   Hide duplicate Phone and Email inputs from the customer.
   billing_email remains in the form/DOM and is populated from
   the verified OTP email; no WooPayments/Stripe node is moved.
   ========================================================= */
body.woocommerce-checkout #billing_phone_field,
body.woocommerce-checkout #billing_email_field {
  display: none !important;
}


/* =========================================================
   v0.8.0.4-RB4 PAYMENT METHOD SELECTOR
   Native WooCommerce/WooPayments payment boxes stay in place.
   The new left selector is a visual proxy for native radios.
   ========================================================= */

body.gesim-payment-locked.woocommerce-checkout .gesim-payment-selector-shell {
  display: none !important;
}

.gesim-payment-selector-shell {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  background: #fff;
}

.gesim-payment-selector-shell[hidden] {
  display: none !important;
}

.gesim-payment-selector-head {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
}

.gesim-payment-selector-kicker {
  color: #667a96;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gesim-payment-selector-head strong {
  color: #17263b;
  font-size: 16px;
  line-height: 1.25;
}

.gesim-payment-selector-head > span:last-child {
  color: #6d7f97;
  font-size: 12px;
  line-height: 1.45;
}

.gesim-payment-selector-list {
  display: grid;
  gap: 9px;
}

.gesim-payment-choice {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid #dce5f1;
  border-radius: 13px;
  background: #fff;
  color: #20354f;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.gesim-payment-choice:hover {
  border-color: #a9c6f5;
  background: #f8fbff;
}

.gesim-payment-choice.is-selected {
  border-color: #2c74df;
  background: #f4f8ff;
  box-shadow: 0 0 0 2px rgba(44, 116, 223, .09);
}

.gesim-payment-choice:focus-visible {
  outline: 3px solid rgba(44, 116, 223, .18);
  outline-offset: 2px;
}

.gesim-payment-choice-icon {
  width: 46px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e0e7f0;
  border-radius: 9px;
  background: #fff;
  color: #25446e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.gesim-payment-choice-icon img {
  display: block;
  width: auto !important;
  max-width: 40px !important;
  max-height: 24px !important;
  margin: 0 !important;
}

.gesim-payment-choice-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.gesim-payment-choice-copy strong {
  color: #182a43;
  font-size: 14px;
  line-height: 1.25;
}

.gesim-payment-choice-copy small {
  color: #75859a;
  font-size: 11px;
  line-height: 1.35;
}

/* Give the payment-method selector and the official payment interface real room.
   Billing stays above and unchanged in RB4. */
.germany-esim-commerce-page.woocommerce-checkout form.checkout {
  grid-template-columns: 1fr !important;
}

.germany-esim-commerce-page.woocommerce-checkout #customer_details,
.germany-esim-commerce-page.woocommerce-checkout #order_review_heading,
.germany-esim-commerce-page.woocommerce-checkout #order_review {
  grid-column: 1 !important;
  grid-row: auto !important;
}

.germany-esim-commerce-page.woocommerce-checkout #order_review {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.germany-esim-commerce-page.woocommerce-checkout #order_review > table.shop_table {
  grid-column: 1 / -1;
}

.germany-esim-commerce-page.woocommerce-checkout #order_review > .gesim-payment-selector-shell {
  grid-column: 1;
}

.germany-esim-commerce-page.woocommerce-checkout #order_review > #payment {
  grid-column: 2;
  margin-top: 0;
}

/* When the visual selector is active, native radios/labels remain in the DOM
   for WooCommerce but are visually hidden. Payment boxes remain native. */
body.gesim-payment-selector-active.woocommerce-checkout #payment ul.payment_methods > li > input[name="payment_method"],
body.gesim-payment-selector-active.woocommerce-checkout #payment ul.payment_methods > li > label {
  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;
}

body.gesim-payment-selector-active.woocommerce-checkout #payment ul.payment_methods {
  padding-top: 0;
}

body.gesim-payment-selector-active.woocommerce-checkout #payment ul.payment_methods > li {
  min-height: 0;
  margin: 0;
  padding: 0;
}

body.gesim-payment-selector-active.woocommerce-checkout #payment div.payment_box {
  margin: 0 0 12px;
}

@media (max-width: 900px) {
  .germany-esim-commerce-page.woocommerce-checkout #order_review {
    grid-template-columns: 1fr;
  }

  .germany-esim-commerce-page.woocommerce-checkout #order_review > .gesim-payment-selector-shell,
  .germany-esim-commerce-page.woocommerce-checkout #order_review > #payment {
    grid-column: 1;
  }
}


/* =========================================================
   v0.8.0.5-RB5.1 INVOICE REQUEST
   Functional styling only. Payment/Billing layout is unchanged.
   ========================================================= */
.gesim-invoice-request {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.gesim-invoice-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.gesim-invoice-toggle input {
  margin-top: 4px;
}

.gesim-invoice-toggle > span {
  display: grid;
  gap: 3px;
}

.gesim-invoice-toggle strong {
  color: #17263b;
  font-size: 14px;
}

.gesim-invoice-toggle small {
  color: #75859a;
  font-size: 11px;
  line-height: 1.45;
}

.gesim-invoice-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  background: #f9fbfe;
}

.gesim-invoice-panel[hidden] {
  display: none !important;
}

.gesim-invoice-panel-head {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
}

.gesim-invoice-panel-head strong {
  color: #17263b;
  font-size: 15px;
}

.gesim-invoice-panel-head span {
  color: #75859a;
  font-size: 11px;
}

.gesim-invoice-grid::after {
  display: table;
  clear: both;
  content: "";
}


/* =========================================================
   v0.8.0.5-RB5.2 INVOICE POSITION
   Invoice is a standalone checkout module after Payment.
   Payment Billing remains in the WooCommerce Rechnungsdaten area.
   ========================================================= */

.germany-esim-commerce-page.woocommerce-checkout #order_review > .gesim-invoice-request {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 18px;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  background: #fff;
}

.germany-esim-commerce-page.woocommerce-checkout #order_review > .gesim-invoice-request .gesim-invoice-panel {
  margin-top: 16px;
}


/* =========================================================
   v0.8.0.6-RB6.2.4-CLEAN
   CLEAN CHECKOUT LAYOUT
   Fresh from v0.8.0.5-RB5.2.1 PASS.
   No RB6 experimental CSS inherited.
   ========================================================= */

/* Transaction page: no large marketing intro. */
body.germany-esim-commerce-page.woocommerce-checkout .gesim-checkout-intro {
  display: none !important;
}

/* Email verification lives full-width above the checkout form. */
body.germany-esim-commerce-page.woocommerce-checkout .gesim-checkout-email-step {
  width: 100% !important;
  margin: 10px 0 12px !important;
  padding: 18px !important;
  border-radius: 15px !important;
  box-shadow: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-checkout-email-step.is-verified:not(.is-editing) {
  min-height: 42px;
  padding: 7px 12px !important;
  background: #fbfefc;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-checkout-email-step.is-verified:not(.is-editing)
.gesim-checkout-step-head,
body.germany-esim-commerce-page.woocommerce-checkout
.gesim-checkout-email-step.is-verified:not(.is-editing)
.gesim-core-email-verification {
  display: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-checkout-email-step.is-verified
.gesim-checkout-email-status {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 12px !important;
}

.gesim-email-change {
  margin-left: auto;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #1769ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

/* Until OTP is verified, the actual checkout remains out of view. */
body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-locked form.checkout {
  display: none !important;
}

/* Coupon is secondary, not a full-height card. */
body.germany-esim-commerce-page.woocommerce-checkout .woocommerce-form-coupon-toggle {
  margin: 0 0 8px !important;
}
body.germany-esim-commerce-page.woocommerce-checkout
.woocommerce-form-coupon-toggle .woocommerce-info {
  min-height: 28px !important;
  margin: 0 !important;
  padding: 4px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

/* Duplicate native heading is unnecessary beside our Payment method header. */
body.germany-esim-commerce-page.woocommerce-checkout #order_review_heading {
  display: none !important;
}

/* =========================================================
   Payment selector
   ========================================================= */
body.germany-esim-commerce-page.woocommerce-checkout .gesim-payment-selector-shell {
  padding: 14px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout .gesim-payment-selector-head {
  margin: 0 0 10px !important;
}

body.germany-esim-commerce-page.woocommerce-checkout .gesim-payment-selector-head strong {
  font-size: 17px !important;
}

body.germany-esim-commerce-page.woocommerce-checkout .gesim-payment-selector-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.germany-esim-commerce-page.woocommerce-checkout .gesim-payment-choice {
  position: relative;
  min-height: 52px;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 7px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
}

body.germany-esim-commerce-page.woocommerce-checkout .gesim-payment-choice-icon {
  width: 32px !important;
  height: 28px !important;
  border: 0 !important;
  background: transparent !important;
}

body.germany-esim-commerce-page.woocommerce-checkout .gesim-payment-choice-copy {
  display: block !important;
}

body.germany-esim-commerce-page.woocommerce-checkout .gesim-payment-choice-copy strong {
  font-size: 13px !important;
}

body.germany-esim-commerce-page.woocommerce-checkout .gesim-payment-choice-copy small {
  display: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout .gesim-payment-choice.is-selected::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #1769ff;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

/* WooPayments native Express separator only; wallet Element stays untouched. */
body.germany-esim-commerce-page.woocommerce-checkout
#wcpay-express-checkout-button-separator {
  display: none !important;
}

/* =========================================================
   Card-only Billing
   ========================================================= */
body.germany-esim-commerce-page.woocommerce-checkout.gesim-noncard-gateway-selected
#customer_details {
  display: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#customer_details {
  display: block !important;
}

body.germany-esim-commerce-page.woocommerce-checkout #customer_details {
  margin: 0 !important;
}

body.germany-esim-commerce-page.woocommerce-checkout #customer_details .col-1 {
  width: 100% !important;
  float: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout #customer_details .col-2,
body.germany-esim-commerce-page.woocommerce-checkout .woocommerce-additional-fields,
body.germany-esim-commerce-page.woocommerce-checkout #order_comments_field {
  display: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout .woocommerce-billing-fields {
  padding: 15px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout .woocommerce-billing-fields h3 {
  margin: 0 0 11px !important;
  font-size: 15px !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.woocommerce-billing-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 0;
}

body.germany-esim-commerce-page.woocommerce-checkout
.woocommerce-billing-fields__field-wrapper .form-row {
  width: 100% !important;
  float: none !important;
  margin: 0 0 9px !important;
}

body.germany-esim-commerce-page.woocommerce-checkout #billing_country_field,
body.germany-esim-commerce-page.woocommerce-checkout #billing_address_1_field {
  grid-column: 1 / -1;
}

/* These are not part of the minimal Card requirement. */
body.germany-esim-commerce-page.woocommerce-checkout #billing_company_field,
body.germany-esim-commerce-page.woocommerce-checkout #billing_address_2_field,
body.germany-esim-commerce-page.woocommerce-checkout #billing_state_field {
  display: none !important;
}

/* First/last/country/street/postcode/city are Card-required even though
   WooCommerce global required validation is disabled for non-Card gateways. */
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_first_name_field .optional,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_last_name_field .optional,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_country_field .optional,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_address_1_field .optional,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_postcode_field .optional,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_city_field .optional {
  display: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_first_name_field > label::after,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_last_name_field > label::after,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_country_field > label::after,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_address_1_field > label::after,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_postcode_field > label::after,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_city_field > label::after {
  content: " *";
  color: #d63638;
}

body.germany-esim-commerce-page.woocommerce-checkout input.input-text,
body.germany-esim-commerce-page.woocommerce-checkout select,
body.germany-esim-commerce-page.woocommerce-checkout .select2-selection {
  min-height: 42px !important;
}

/* Native gateway radios/labels remain authoritative but visually hidden
   when our selector is active. Native payment_box remains untouched. */
body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-selector-active
#payment ul.payment_methods {
  padding: 10px !important;
  border: 1px solid #dfe7f2 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
#payment div.payment_box {
  margin: 0 !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
}

/* =========================================================
   Compact order / invoice / Germanized legal / buy
   ========================================================= */
body.germany-esim-commerce-page.woocommerce-checkout
#order_review > table.shop_table {
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid #dfe7f2 !important;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
#order_review > table.shop_table th,
body.germany-esim-commerce-page.woocommerce-checkout
#order_review > table.shop_table td {
  padding: 10px 12px !important;
  font-size: 12px;
}

/* Invoice row. */
body.germany-esim-commerce-page.woocommerce-checkout
#order_review > .gesim-invoice-request {
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid #dfe7f2 !important;
  border-radius: 14px !important;
  background: #fff;
}

.gesim-invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gesim-invoice-toggle {
  align-items: center !important;
  min-width: 0;
}

.gesim-invoice-toggle input {
  margin-top: 0 !important;
}

.gesim-invoice-toggle > span {
  gap: 1px !important;
}

.gesim-invoice-toggle small {
  color: #7a899b;
  font-size: 10px !important;
}

.gesim-invoice-change {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1769ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

/* Germanized legal block. */
body.germany-esim-commerce-page.woocommerce-checkout
#order_review > .wc-gzd-checkbox-placeholder-legal {
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid #dfe7f2 !important;
  border-radius: 14px !important;
  background: #fff !important;
  clear: none !important;
  box-shadow: none !important;

  /* RB7.4: keep Germanized legal checkbox above the PayPal Smart Button iframe.
   * Console A/B verified: z-index 1000 restores click access after failed AGB validation.
   */
  z-index: 1000 !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
#order_review > .wc-gzd-checkbox-placeholder-legal .legal {
  margin: 0 !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}

/* Germanized real Buy container. */
body.germany-esim-commerce-page.woocommerce-checkout
#order_review > .wc-gzd-order-submit {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
#order_review > .wc-gzd-order-submit .wc-gzd-place-order {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.germany-esim-commerce-page.woocommerce-checkout #place_order {
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
}

/* =========================================================
   Invoice in-page Modal
   ========================================================= */
.gesim-invoice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(13, 24, 38, .46);
  backdrop-filter: blur(2px);
}

.gesim-invoice-backdrop[hidden],
.gesim-invoice-panel[hidden] {
  display: none !important;
}

.gesim-invoice-panel {
  position: fixed !important;
  z-index: 99999;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  margin: 0 !important;
  padding: 20px !important;
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid #d8e1ec !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 24px 70px rgba(20, 35, 55, .24);
}

body.gesim-invoice-modal-open {
  overflow: hidden;
}

.gesim-invoice-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.gesim-invoice-modal-head > div {
  display: grid;
  gap: 3px;
}

.gesim-invoice-modal-head strong {
  color: #17263b;
  font-size: 18px;
}

.gesim-invoice-modal-head span {
  color: #75859a;
  font-size: 11px;
}

.gesim-invoice-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #26364c;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.gesim-invoice-panel .form-row {
  margin-bottom: 10px !important;
}

.gesim-invoice-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.gesim-invoice-actions-spacer {
  flex: 1 1 auto;
}

.gesim-invoice-modal-actions button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.gesim-invoice-use-billing,
.gesim-invoice-cancel {
  border: 1px solid #d8e1ec;
  background: #fff;
  color: #30445f;
}

.gesim-invoice-save {
  border: 1px solid #1769ff;
  background: #1769ff;
  color: #fff;
}

/* =========================================================
   Desktop: LEFT is natural document flow.
   RIGHT is an independent stack positioned from actual node heights.
   No payment DOM is moved.
   ========================================================= */
@media (min-width: 1000px) {
  body.germany-esim-commerce-page.woocommerce-checkout
  .site-content > .ast-container {
    width: min(100% - 32px, 1180px) !important;
    padding-top: 10px !important;
    padding-bottom: 28px !important;
  }

  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  form.checkout {
    display: block !important;
    position: relative !important;
    width: 100% !important;
  }

  /*
   * Structural wrappers become boxless only.
   * Their DOM hierarchy and all WooPayments/Stripe nodes remain unchanged.
   */
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  #order_review,
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  #payment {
    display: contents !important;
  }

  /* LEFT natural flow. */
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  form.checkout > .gesim-payment-selector-shell,
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  form.checkout > .wcpay-express-checkout-wrapper,
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  form.checkout > .wcpay-payment-request-wrapper,
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  form.checkout > #wcpay-payment-request-wrapper,
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  form.checkout > #customer_details,
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  #payment > ul.payment_methods {
    position: relative !important;
    display: block;
    width: calc(66.666% - 10px) !important;
    margin: 0 0 10px 0 !important;
    float: none !important;
    clear: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Preserve WooPayments' own flex wrapper behavior. */
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  form.checkout > .wcpay-express-checkout-wrapper {
    display: flex !important;
  }

  /*
   * RIGHT independent stack.
   * JS only supplies --gesim-right-top from measured element heights.
   * No reparenting, cloning, or payment-node mutation.
   */
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  #order_review > table.shop_table,
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  #order_review > .gesim-invoice-request,
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  #order_review > .wc-gzd-checkbox-placeholder-legal,
  body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
  #order_review > .wc-gzd-order-submit {
    position: absolute !important;
    right: 0 !important;
    top: var(--gesim-right-top, 0px) !important;
    width: calc(33.333% - 10px) !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Checkout footer stays transaction-focused. */
  body.germany-esim-commerce-page.woocommerce-checkout
  .gesim-site-footer .gesim-footer-help,
  body.germany-esim-commerce-page.woocommerce-checkout
  .gesim-site-footer .gesim-footer-grid {
    display: none !important;
  }

  body.germany-esim-commerce-page.woocommerce-checkout .gesim-site-footer {
    padding: 10px 0 !important;
  }

  body.germany-esim-commerce-page.woocommerce-checkout
  .gesim-site-footer .gesim-footer-bottom {
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    font-size: 10px !important;
  }
}

/* Mobile/tablet: normal single-column WooCommerce flow. */
@media (max-width: 999px) {
  body.germany-esim-commerce-page.woocommerce-checkout form.checkout,
  body.germany-esim-commerce-page.woocommerce-checkout #order_review,
  body.germany-esim-commerce-page.woocommerce-checkout #payment {
    display: block !important;
  }

  body.germany-esim-commerce-page.woocommerce-checkout
  #order_review > table.shop_table,
  body.germany-esim-commerce-page.woocommerce-checkout
  #order_review > .gesim-invoice-request,
  body.germany-esim-commerce-page.woocommerce-checkout
  #order_review > .wc-gzd-checkbox-placeholder-legal,
  body.germany-esim-commerce-page.woocommerce-checkout
  #order_review > .wc-gzd-order-submit {
    position: static !important;
    width: 100% !important;
    margin: 0 0 10px !important;
  }

  body.germany-esim-commerce-page.woocommerce-checkout
  .gesim-payment-selector-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .gesim-invoice-panel {
    top: auto !important;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 88vh;
    transform: none !important;
    border-radius: 18px 18px 0 0 !important;
  }
}


/* =========================================================
   v0.8.0.6-RB6.2.4.1-CLEAN — small UI patch
   ========================================================= */

/* Duplicate WooCommerce / Germanized heading beside our own selector. */
body.germany-esim-commerce-page.woocommerce-checkout
.gesim-duplicate-payment-heading {
  display: none !important;
}

/*
 * WooPayments Express Checkout may briefly re-evaluate / remount after a
 * payment_method change. Reserve its normal 48px line height so the left
 * column does not jump vertically during that native lifecycle.
 */
body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-unlocked
form.checkout > .wcpay-express-checkout-wrapper {
  min-height: 48px !important;
}

/* Card selector shows both major card brands instead of implying Visa-only. */
body.germany-esim-commerce-page.woocommerce-checkout
.gesim-payment-choice-icon.gesim-card-brand-pair {
  width: 58px !important;
  min-width: 58px !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  overflow: visible !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-payment-choice:has(.gesim-card-brand-pair) {
  grid-template-columns: 58px minmax(0, 1fr) !important;
}

.gesim-card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.gesim-card-brand-visa {
  font-size: 11px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.4px;
  color: #2732bd;
}

.gesim-card-brand-mastercard {
  position: relative;
  width: 23px;
  height: 14px;
}

.gesim-card-brand-mastercard .gesim-mc-circle {
  position: absolute;
  top: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: .78;
}

.gesim-card-brand-mastercard .gesim-mc-circle:first-child {
  left: 1px;
  color: #d24a3a;
}

.gesim-card-brand-mastercard .gesim-mc-circle:last-child {
  right: 1px;
  color: #dc8a2a;
}

/* Keep the title compact beside the two marks. */
body.germany-esim-commerce-page.woocommerce-checkout
.gesim-payment-choice:has(.gesim-card-brand-pair)
.gesim-payment-choice-copy strong {
  white-space: nowrap;
}


/* =========================================================
   v0.8.0.6-RB6.2.4.2-CLEAN
   Card UI cleanup after live screenshots
   ========================================================= */

/* ---------------------------------------------------------
   A. Card Billing: exactly ONE required star
   --------------------------------------------------------- */

/* Hide WooCommerce/Germanized's rendered required markers for these six
   Card-only fields, then add exactly one controlled marker on the label. */
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_first_name_field label .required,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_last_name_field label .required,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_country_field label .required,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_address_1_field label .required,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_postcode_field label .required,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_city_field label .required,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_first_name_field label abbr.required,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_last_name_field label abbr.required,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_country_field label abbr.required,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_address_1_field label abbr.required,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_postcode_field label abbr.required,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_city_field label abbr.required {
  display: none !important;
}

/* Prevent older CLEAN rule from visually stacking with any native marker. */
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_first_name_field > label::after,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_last_name_field > label::after,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_country_field > label::after,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_address_1_field > label::after,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_postcode_field > label::after,
body.germany-esim-commerce-page.woocommerce-checkout.gesim-card-gateway-selected
#billing_city_field > label::after {
  content: " *" !important;
  display: inline !important;
  color: #d63638 !important;
}

/* ---------------------------------------------------------
   B. Remove EMPTY native payment-method shell
   --------------------------------------------------------- */

/*
 * Germany eSIM's own selector is the visible gateway chooser.
 * WooCommerce's native radio list remains the authority, but its outer UL
 * should not draw a second empty white rounded card.
 *
 * IMPORTANT:
 * payment_box / Stripe / Alipay / WeChat contents are NOT hidden or moved.
 */
body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-selector-active
#payment > ul.wc_payment_methods.payment_methods.methods {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Native LI shell should not add blank padding/margins around the active box. */
body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-selector-active
#payment > ul.wc_payment_methods.payment_methods.methods
> li.wc_payment_method {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Keep only the ACTIVE gateway's payment box visually present. */
body.germany-esim-commerce-page.woocommerce-checkout.gesim-payment-selector-active
#payment > ul.wc_payment_methods.payment_methods.methods
> li.wc_payment_method > div.payment_box {
  margin: 0 !important;
}

/* ---------------------------------------------------------
   C. Explicit Visa + Mastercard text
   --------------------------------------------------------- */

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-payment-choice-icon.gesim-card-brand-pair {
  width: 92px !important;
  min-width: 92px !important;
  gap: 7px !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-payment-choice:has(.gesim-card-brand-pair) {
  grid-template-columns: 92px minmax(0, 1fr) !important;
}

.gesim-card-brand-visa {
  font-size: 11px !important;
}

.gesim-card-brand-mastercard {
  position: static !important;
  width: auto !important;
  height: auto !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: -.2px;
  color: #5b6472 !important;
  line-height: 1 !important;
  white-space: nowrap;
}

/* Old simulated circles are no longer used. */
.gesim-card-brand-mastercard .gesim-mc-circle {
  display: none !important;
}


/* =========================================================
   v0.8.0.6-RB6.2.4.3-CLEAN
   Card brand visual alignment only
   ========================================================= */

/*
 * Make VISA and Mastercard use the same visual type scale and line box.
 * This patch only affects Germany eSIM's visual payment selector.
 * Native WooPayments gateway / Stripe UI is untouched.
 */
body.germany-esim-commerce-page.woocommerce-checkout
.gesim-card-brand-pair {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  min-height: 18px !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-card-brand-pair .gesim-card-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 18px !important;
  font-size: 11px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-card-brand-pair .gesim-card-brand-visa {
  font-size: 11px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
  font-style: italic !important;
  letter-spacing: -0.25px !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-card-brand-pair .gesim-card-brand-mastercard {
  position: static !important;
  width: auto !important;
  height: 18px !important;
  font-size: 11px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.25px !important;
  color: #5b6472 !important;
}

/* Keep the whole logo group vertically aligned with "Credit Card". */
body.germany-esim-commerce-page.woocommerce-checkout
.gesim-payment-choice:has(.gesim-card-brand-pair) {
  align-items: center !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-payment-choice:has(.gesim-card-brand-pair)
.gesim-payment-choice-copy {
  align-self: center !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-payment-choice:has(.gesim-card-brand-pair)
.gesim-payment-choice-copy strong {
  line-height: 18px !important;
}


/* =========================================================
   v0.8.0.6-RB6.2.4.4-CLEAN
   Final Card visual cleanup experiment
   ========================================================= */

/* ---------------------------------------------------------
   A. VISA / Mastercard visual-weight calibration
   Same CSS font-size did not look the same because VISA is uppercase/italic.
   Mastercard receives a slightly larger optical size.
   --------------------------------------------------------- */
body.germany-esim-commerce-page.woocommerce-checkout
.gesim-card-brand-pair .gesim-card-brand-visa {
  height: 18px !important;
  font-size: 11px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-card-brand-pair .gesim-card-brand-mastercard {
  height: 18px !important;
  font-size: 12.5px !important;
  line-height: 18px !important;
  font-weight: 750 !important;
  letter-spacing: -0.35px !important;
  transform: translateY(-0.15px);
}

/* Slightly more room for the optically balanced two-brand group. */
body.germany-esim-commerce-page.woocommerce-checkout
.gesim-payment-choice-icon.gesim-card-brand-pair {
  width: 103px !important;
  min-width: 103px !important;
  gap: 8px !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
.gesim-payment-choice:has(.gesim-card-brand-pair) {
  grid-template-columns: 103px minmax(0, 1fr) !important;
}

/* =========================================================
   v0.8.0.6-RB6.2.4.7-CLEAN
   Exact blank-shell fix from live DOM diagnostics
   ========================================================= */

/*
 * Confirmed root cause:
 * form.checkout > #customer_details > .col-1 > .woocommerce-shipping-fields
 *
 * Computed live styles:
 * - height: 54px
 * - padding-top/bottom: 26px
 * - white background
 * - 1px border
 * - 20px border-radius
 * - box-shadow
 *
 * Germany eSIM is a digital product checkout and does not require shipping
 * fields. Hide this empty WooCommerce shipping container only on this checkout.
 */
body.germany-esim-commerce-page.woocommerce-checkout
#customer_details .woocommerce-shipping-fields {
  display: none !important;
}

/* =========================================================
   v0.8.0.9-RB9 — USER CENTER VIEW eSIM DELIVERY
   Scoped to .gesim-user-center only. No checkout/payment DOM.
   ========================================================= */
.gesim-user-center .gesim-portal-esim-actions {
  margin-top: 14px;
}

.gesim-user-center .gesim-portal-view-esim,
.gesim-user-center .gesim-portal-install-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--gesim-blue);
  border-radius: 12px;
  background: var(--gesim-blue);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.gesim-user-center .gesim-portal-view-esim:hover,
.gesim-user-center .gesim-portal-install-link:hover {
  filter: brightness(.96);
  color: #fff;
}

.gesim-user-center .gesim-portal-delivery {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid #e7edf5;
}

.gesim-user-center .gesim-portal-delivery-status {
  color: #65758c;
  font-size: 12px;
}

.gesim-user-center .gesim-portal-qr-wrap h4,
.gesim-user-center .gesim-portal-manual h4 {
  margin: 0 0 7px;
  font-size: 16px;
}

.gesim-user-center .gesim-portal-qr-wrap p,
.gesim-user-center .gesim-portal-manual p {
  margin: 0 0 12px;
  color: #65758c;
  font-size: 12px;
  line-height: 1.5;
}

.gesim-user-center .gesim-portal-qr {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin: 12px 0 16px;
  padding: 10px;
  border: 1px solid #e0e8f3;
  border-radius: 14px;
  background: #fff;
}

.gesim-user-center .gesim-portal-install-link {
  margin: 0 10px 14px 0;
}

.gesim-user-center .gesim-portal-manual {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f5f8fc;
}

.gesim-user-center .gesim-portal-manual-button {
  background: #fff;
  color: var(--gesim-blue);
}

.gesim-user-center .gesim-portal-manual-button:hover {
  background: #f7faff;
  color: var(--gesim-blue);
}

.gesim-user-center .gesim-portal-manual-details {
  margin-top: 12px;
}

.gesim-user-center .gesim-portal-manual-row {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #e1e8f1;
  font-size: 12px;
}

.gesim-user-center .gesim-portal-manual-row strong {
  color: #65758c;
}

.gesim-user-center .gesim-portal-manual-row code {
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 12px;
}

@media (max-width: 640px) {
  .gesim-user-center .gesim-portal-manual-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}



/* =========================================================
   v0.8.0.9-RB9.1 — ONE-CLICK CREDENTIAL DISPLAY
   ========================================================= */
.gesim-user-center .gesim-portal-manual-details {
  margin-top: 12px;
}

.gesim-user-center .gesim-portal-manual-row {
  grid-template-columns: 130px minmax(0,1fr) auto;
  align-items: center;
}

.gesim-user-center .gesim-portal-copy-credential {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #d5dfed;
  border-radius: 9px;
  background: #fff;
  color: var(--gesim-blue);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.gesim-user-center .gesim-portal-copy-credential:hover {
  background: #f7faff;
}

.gesim-user-center .gesim-portal-credential-warning {
  margin: 12px 0 0;
  color: #65758c;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .gesim-user-center .gesim-portal-manual-row {
    grid-template-columns: 1fr auto;
  }

  .gesim-user-center .gesim-portal-manual-row strong {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   v0.8.0.9-RB9.2 — HIDDEN STATE HARDENING
   HTML [hidden] must always win over component display styles.
   This prevents Install eSIM / QR / Manual details from appearing
   when the credential manifest request has not succeeded.
   ========================================================= */
.gesim-user-center .gesim-portal-delivery[hidden],
.gesim-user-center .gesim-portal-qr-wrap[hidden],
.gesim-user-center .gesim-portal-install-link[hidden],
.gesim-user-center .gesim-portal-manual[hidden] {
  display: none !important;
}

/* =========================================================
   v0.8.0.9-RB9.4 — INSTALLATION UX
   User Center only. No checkout/payment styles.
   ========================================================= */
.gesim-user-center .gesim-portal-install-heading {
  margin: 0 0 14px;
}

.gesim-user-center .gesim-portal-install-heading h4 {
  margin: 0 0 5px;
  font-size: 17px;
}

.gesim-user-center .gesim-portal-install-heading p {
  margin: 0;
  color: #65758c;
  font-size: 12px;
  line-height: 1.5;
}

.gesim-user-center .gesim-portal-qr-wrap h5,
.gesim-user-center .gesim-portal-manual h5,
.gesim-user-center .gesim-portal-quick-guide h5 {
  margin: 0 0 7px;
  font-size: 14px;
}

.gesim-user-center .gesim-portal-install-link {
  margin-bottom: 4px;
}

.gesim-user-center .gesim-portal-install-link-note {
  margin: 0 0 14px;
  color: #65758c;
  font-size: 11px;
  line-height: 1.45;
}

.gesim-user-center .gesim-portal-quick-guide {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  background: #fff;
}

.gesim-user-center .gesim-portal-quick-guide p {
  margin: 6px 0 0;
  color: #65758c;
  font-size: 11px;
  line-height: 1.5;
}

.gesim-user-center .gesim-portal-install-link-note[hidden] {
  display: none !important;
}

/* =========================================================
   v0.8.0.9-RB9.5 — COMPACT INSTALLATION UX
   Visual/copy refinement only. User Center scope.
   ========================================================= */
.gesim-user-center .gesim-portal-install-heading {
  margin-bottom: 10px;
}

.gesim-user-center .gesim-portal-install-heading h4 {
  font-size: 16px;
}

.gesim-user-center .gesim-portal-install-heading p,
.gesim-user-center .gesim-portal-qr-wrap p,
.gesim-user-center .gesim-portal-manual p {
  max-width: 520px;
}

.gesim-user-center .gesim-portal-qr {
  width: min(220px, 100%);
  margin: 10px 0 12px;
  padding: 8px;
}

.gesim-user-center .gesim-portal-install-link {
  min-height: 40px;
  padding: 9px 14px;
}

.gesim-user-center .gesim-portal-install-link-note {
  max-width: 520px;
  margin-bottom: 10px;
}

.gesim-user-center .gesim-portal-manual {
  margin-top: 10px;
  padding: 12px;
}

.gesim-user-center .gesim-portal-manual-row {
  padding: 7px 0;
}

.gesim-user-center .gesim-portal-copy-credential {
  min-height: 30px;
  padding: 5px 9px;
}

.gesim-user-center .gesim-portal-credential-warning {
  margin-top: 10px;
}

.gesim-user-center .gesim-portal-quick-guide {
  margin-top: 10px;
  padding: 12px;
}

.gesim-user-center .gesim-portal-quick-guide p {
  margin-top: 4px;
}

/* =========================================================
   v0.8.0.9-RB9.6 — NUMBERED INSTALL METHODS
   Frozen user-center UX refinement only.
   ========================================================= */
.gesim-user-center .gesim-portal-install-heading {
  margin: 0 0 16px;
}

.gesim-user-center .gesim-portal-install-heading p {
  margin: 0;
  color: var(--gesim-blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.gesim-user-center .gesim-portal-qr-wrap h5,
.gesim-user-center .gesim-portal-direct-install h5,
.gesim-user-center .gesim-portal-manual h5 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 800;
}

.gesim-user-center .gesim-portal-method-number {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gesim-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.gesim-user-center .gesim-portal-direct-install {
  margin-top: 10px;
}

.gesim-user-center .gesim-portal-direct-install p {
  margin: 0 0 8px;
  color: #65758c;
  font-size: 11px;
  line-height: 1.45;
}

.gesim-user-center .gesim-portal-direct-install[hidden],
.gesim-user-center .gesim-portal-qr-wrap[hidden],
.gesim-user-center .gesim-portal-manual[hidden] {
  display: none !important;
}

/* RB9.6 supersedes the old single-link hidden helper rule. */
.gesim-user-center .gesim-portal-install-link-note[hidden] {
  display: none !important;
}

/* =========================================================
   v0.8.0.9-RB9.6.1 — INSTALL METHOD NUMBER ALIGNMENT
   Visual alignment only. User Center scope.
   ========================================================= */

/* One shared two-column heading grid for methods 1 / 2 / 3. */
.gesim-user-center .gesim-portal-qr-wrap h5,
.gesim-user-center .gesim-portal-direct-install h5,
.gesim-user-center .gesim-portal-manual h5 {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  margin: 0 0 7px;
}

/* Center each circle inside the same fixed 40px column. */
.gesim-user-center .gesim-portal-method-number {
  justify-self: start;
  width: 28px;
  height: 28px;
  flex: none;
}

/*
 * RB9.6 placed method 3 inside the padded gray manual card, which shifted
 * the "3" to the right. RB9.6.1 keeps the heading on the common left edge
 * and moves only the manual credential content into the padded card body.
 */
.gesim-user-center .gesim-portal-manual {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.gesim-user-center .gesim-portal-manual-body {
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #f5f8fc;
}

.gesim-user-center .gesim-portal-manual-body > p {
  margin: 0 0 8px;
  color: #65758c;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .gesim-user-center .gesim-portal-qr-wrap h5,
  .gesim-user-center .gesim-portal-direct-install h5,
  .gesim-user-center .gesim-portal-manual h5 {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 10px;
  }
}

/* =========================================================
   v0.8.0.9-RB9.7 — USER CENTER TYPOGRAPHY HIERARCHY
   Same logical level = same typography.
   "Your travel eSIMs", "Manage your eSIM", "Your orders"
   share one title specification.
   ========================================================= */
.gesim-user-center .gesim-portal-head h1,
.gesim-user-center .gesim-portal-section-head h2 {
  margin: 0;
  font-family: inherit;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
}

/* Keep the same title hierarchy on mobile as well. */
@media (max-width: 767px) {
  .gesim-user-center .gesim-portal-head h1,
  .gesim-user-center .gesim-portal-section-head h2 {
    font-size: 30px;
    line-height: 1.15;
  }
}

/* =========================================================
   v0.8.0.9-RB9.8 — AUTH HIERARCHY + CUSTOMER LOGOUT
   Same User Center title level = same typography.
   ========================================================= */
.gesim-user-center .gesim-portal-auth h1,
.gesim-user-center .gesim-portal-head h1,
.gesim-user-center .gesim-portal-section-head h2 {
  margin: 0;
  font-family: inherit;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.gesim-user-center .gesim-portal-account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gesim-user-center .gesim-portal-logout-form {
  margin: 0;
}

.gesim-user-center .gesim-portal-logout-form input[type="hidden"] {
  display: none;
}

.gesim-user-center .gesim-portal-logout {
  appearance: none;
  border: 0;
  background: transparent;
  color: #53647d;
  padding: 7px 2px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gesim-user-center .gesim-portal-logout:hover,
.gesim-user-center .gesim-portal-logout:focus-visible {
  color: var(--gesim-blue);
}

.gesim-user-center .gesim-portal-logout-confirmation {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid #cfe2d5;
  border-radius: 12px;
  background: #f1faf4;
  color: #286f46;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .gesim-user-center .gesim-portal-auth h1,
  .gesim-user-center .gesim-portal-head h1,
  .gesim-user-center .gesim-portal-section-head h2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .gesim-user-center .gesim-portal-account-actions {
    gap: 10px;
  }
}


/* =========================================================
   P5.3.2 — Single eSIM Top-up activity
   Readable cards + customer-visible Processing state.
   ========================================================= */
.gesim-user-center .gesim-portal-topup-history {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f2;
}

.gesim-user-center .gesim-portal-topup-history-head {
  margin-bottom: 14px;
}

.gesim-user-center .gesim-portal-topup-history-head h5 {
  margin: 0;
  color: #15172d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.gesim-user-center .gesim-portal-topup-history-head p,
.gesim-user-center .gesim-portal-topup-history-status {
  margin: 6px 0 0;
  color: #737b91;
  font-size: 14px;
  line-height: 1.5;
}

.gesim-user-center .gesim-portal-topup-history-list {
  display: grid;
  gap: 12px;
}

.gesim-user-center .gesim-portal-topup-history-row {
  display: block;
  padding: 16px;
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  background: #fbfcff;
}

.gesim-user-center .gesim-portal-topup-history-row.is-processing {
  border-color: #dce5ff;
  background: #f8faff;
}

.gesim-user-center .gesim-portal-topup-history-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.gesim-user-center .gesim-portal-topup-history-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gesim-user-center .gesim-portal-topup-history-main strong {
  min-width: 0;
  color: #15172d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.gesim-user-center .gesim-portal-topup-history-facts {
  color: #566078;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.gesim-user-center .gesim-portal-topup-history-message {
  margin: 1px 0 0;
  color: #667087;
  font-size: 13px;
  line-height: 1.5;
}

.gesim-user-center .gesim-portal-topup-history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 14px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #edf0f5;
}

.gesim-user-center .gesim-portal-topup-history-meta span {
  color: #697187;
  font-size: 13px;
  line-height: 1.35;
}

.gesim-user-center .gesim-portal-topup-history-state {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf8ef;
  color: #28733b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.gesim-user-center .gesim-portal-topup-history-row.is-processing .gesim-portal-topup-history-state {
  background: #edf2ff;
  color: #405fd4;
}

@media (max-width: 720px) {
  .gesim-user-center .gesim-portal-topup-history {
    margin-top: 22px;
    padding-top: 20px;
  }

  .gesim-user-center .gesim-portal-topup-history-row {
    padding: 14px;
  }

  .gesim-user-center .gesim-portal-topup-history-topline {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .gesim-user-center .gesim-portal-topup-history-meta {
    gap: 7px 12px;
  }
}

/* =========================================================
   P5.7.2 PRODUCTS LANDING PAGE V1
   Code-rendered /products/ page. No Elementor dependency.
   ========================================================= */
.gesim-products-page-main,
.gesim-products-page-main * {
  box-sizing: border-box;
}

.gesim-products-page-main {
  color: var(--gesim-ink);
  background: #fff;
  font-family: inherit;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.gesim-products-hero {
  padding: 58px 0 66px;
  background:
    radial-gradient(circle at 88% 6%, rgba(23,105,255,.12), transparent 29%),
    radial-gradient(circle at 8% 90%, rgba(78,136,255,.07), transparent 24%),
    linear-gradient(180deg,#fff,#f7faff);
}

.gesim-products-hero-inner {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(380px,.9fr);
  gap: 58px;
  align-items: center;
}

.gesim-products-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--gesim-ink);
  /* P5.7.2 typography alignment: match frozen User Center H1 scale. */
  font-size: clamp(44px,5vw,64px);
  line-height: 1;
  letter-spacing: -.05em;
}

.gesim-products-hero-copy > p {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--gesim-muted);
  font-size: 18px;
  line-height: 1.7;
}

.gesim-products-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.gesim-products-hero-panel {
  position: relative;
  padding: 28px;
  border: 1px solid #dae6f5;
  border-radius: 30px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.98),rgba(237,244,255,.96));
  box-shadow: var(--gesim-shadow);
  overflow: hidden;
}

.gesim-products-hero-panel::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -95px;
  top: -105px;
  border-radius: 50%;
  background: rgba(23,105,255,.10);
}

.gesim-products-hero-panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dfe8f4;
}

.gesim-products-hero-panel-top span {
  color: var(--gesim-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gesim-products-hero-panel-top strong {
  font-size: 24px;
}

.gesim-products-hero-destinations {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.gesim-products-hero-destinations > div {
  display: grid;
  gap: 5px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid #e0e9f5;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
}

.gesim-products-hero-destinations small {
  color: var(--gesim-blue);
  font-weight: 850;
  letter-spacing: .10em;
}

.gesim-products-hero-destinations strong {
  font-size: 21px;
  line-height: 1.15;
}

.gesim-products-hero-destinations span {
  margin-top: auto;
  color: var(--gesim-muted);
  font-size: 13px;
}

.gesim-products-hero-note {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 14px;
  background: #e8f1ff;
  color: #234c89;
  font-size: 13px;
  font-weight: 760;
  text-align: center;
}

.gesim-products-trust {
  padding: 0 0 12px;
  background: #fff;
}

.gesim-products-trust-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  padding: 15px 18px;
  border: 1px solid #e3ebf5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24,65,120,.05);
}

.gesim-products-trust-grid > span {
  display: grid;
  gap: 3px;
  padding: 8px 18px;
  border-right: 1px solid #edf1f6;
}

.gesim-products-trust-grid > span:last-child {
  border-right: 0;
}

.gesim-products-trust-grid b {
  font-size: 14px;
}

.gesim-products-trust-grid small {
  color: var(--gesim-muted);
  font-size: 12px;
  line-height: 1.5;
}

.gesim-products-region {
  padding: 92px 0;
  scroll-margin-top: 90px;
  background: #fff;
}

.gesim-products-region-alt {
  background: var(--gesim-soft);
}

.gesim-products-region-heading,
.gesim-products-regional-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 34px;
}

.gesim-products-region-heading h2,
.gesim-products-regional-heading h2,
.gesim-products-help h2 {
  margin: 0;
  color: var(--gesim-ink);
  /* Match the frozen site-wide section-heading scale. */
  font-size: clamp(34px,4vw,50px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.gesim-products-region-heading p,
.gesim-products-regional-heading p {
  max-width: 690px;
  margin: 13px 0 0;
  color: var(--gesim-muted);
  font-size: 16px;
  line-height: 1.65;
}

.gesim-products-region-chip {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid #d9e5f4;
  border-radius: 999px;
  background: #fff;
  color: #45617f;
  font-size: 12px;
  font-weight: 800;
}

.gesim-products-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}

.gesim-products-regional-heading {
  margin-top: 76px;
}

.gesim-products-regional-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
}

.gesim-products-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--gesim-shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gesim-products-card:hover {
  transform: translateY(-3px);
  border-color: #c9d9ee;
  box-shadow: 0 19px 46px rgba(27,67,124,.11);
}

.gesim-products-card-visual {
  position: relative;
  min-height: 170px;
  background: #eaf2ff var(--gesim-products-image) center/cover no-repeat;
  overflow: hidden;
}

.gesim-products-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(7,24,52,.02),rgba(7,24,52,.32));
}

.gesim-products-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--gesim-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
}

.gesim-products-landmark {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  color: #29456d;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.gesim-products-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.gesim-products-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--gesim-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gesim-products-card h3 {
  margin: 13px 0 5px;
  color: var(--gesim-ink);
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.gesim-products-card-data {
  margin: 2px 0 18px;
  color: var(--gesim-ink);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.gesim-products-card dl {
  margin: 0;
}

.gesim-products-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f6;
}

.gesim-products-card dt {
  color: var(--gesim-muted);
  font-size: 12px;
}

.gesim-products-card dd {
  margin: 0;
  max-width: 58%;
  text-align: right;
  color: #263b58;
  font-size: 12px;
  font-weight: 760;
}

.gesim-products-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.gesim-products-card-price {
  font-size: 25px;
  font-weight: 900;
  white-space: nowrap;
}

.gesim-products-card.is-wide {
  display: grid;
  grid-template-columns: minmax(320px,.88fr) minmax(0,1.12fr);
}

.gesim-products-card.is-wide .gesim-products-card-visual {
  min-height: 360px;
}

.gesim-products-card.is-wide .gesim-products-card-body {
  justify-content: center;
  padding: 38px 42px;
}

.gesim-products-card.is-wide h3 {
  font-size: 31px;
}

.gesim-products-card.is-wide .gesim-products-card-data {
  font-size: 48px;
}

.gesim-products-how {
  padding: 92px 0;
  background: #fff;
}

.gesim-products-how-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}

.gesim-products-how-grid article {
  padding: 28px;
  border: 1px solid #e1e9f4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(34,74,127,.04);
}

.gesim-products-how-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: #eaf2ff;
  color: var(--gesim-blue);
  font-weight: 900;
}

.gesim-products-how-grid h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.gesim-products-how-grid p {
  margin: 0;
  color: var(--gesim-muted);
  font-size: 14px;
  line-height: 1.65;
}

.gesim-products-help {
  padding: 0 0 92px;
  background: #fff;
}

.gesim-products-help-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 42px 46px;
  border: 1px solid #dce7f4;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%,rgba(23,105,255,.11),transparent 31%),
    var(--gesim-soft);
}

.gesim-products-help h2 {
  max-width: 780px;
  font-size: clamp(32px,3.5vw,46px);
}

.gesim-products-help p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--gesim-muted);
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .gesim-products-hero-inner {
    grid-template-columns: 1fr;
  }

  .gesim-products-hero-panel {
    max-width: 760px;
  }

  .gesim-products-trust-grid,
  .gesim-products-how-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .gesim-products-trust-grid > span:nth-child(2) {
    border-right: 0;
  }

  .gesim-products-catalog-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .gesim-products-card.is-wide {
    grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr);
  }
}

@media (max-width: 767px) {
  .gesim-products-hero {
    padding: 42px 0 48px;
  }

  .gesim-products-hero-copy h1 {
    /* Frozen User Center mobile H1 = 42px. */
    font-size: 42px;
  }

  .gesim-products-hero-copy > p {
    font-size: 16px;
  }

  .gesim-products-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gesim-products-hero-actions .gesim-btn {
    width: 100%;
  }

  .gesim-products-hero-panel {
    padding: 20px;
    border-radius: 23px;
  }

  .gesim-products-hero-destinations {
    grid-template-columns: 1fr;
  }

  .gesim-products-hero-destinations > div {
    min-height: 125px;
  }

  .gesim-products-trust-grid,
  .gesim-products-how-grid,
  .gesim-products-catalog-grid {
    grid-template-columns: 1fr;
  }

  .gesim-products-trust-grid > span {
    border-right: 0;
    border-bottom: 1px solid #edf1f6;
  }

  .gesim-products-trust-grid > span:last-child {
    border-bottom: 0;
  }

  .gesim-products-region,
  .gesim-products-how {
    padding: 62px 0;
  }

  .gesim-products-region-heading,
  .gesim-products-regional-heading,
  .gesim-products-help-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .gesim-products-region-heading h2,
  .gesim-products-regional-heading h2 {
    /* Frozen generic section-heading mobile scale. */
    font-size: 35px;
  }

  .gesim-products-regional-heading {
    margin-top: 56px;
  }

  .gesim-products-card.is-wide {
    display: flex;
  }

  .gesim-products-card.is-wide .gesim-products-card-visual {
    min-height: 210px;
  }

  .gesim-products-card.is-wide .gesim-products-card-body {
    padding: 24px;
  }

  .gesim-products-card.is-wide h3 {
    font-size: 24px;
  }

  .gesim-products-card.is-wide .gesim-products-card-data {
    font-size: 40px;
  }

  .gesim-products-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .gesim-products-card-footer .gesim-btn {
    width: 100%;
  }

  .gesim-products-help {
    padding-bottom: 62px;
  }

  .gesim-products-help-inner {
    padding: 30px 24px;
  }

  .gesim-products-help-inner .gesim-btn {
    width: 100%;
  }
}

/* =========================================================
   v0.8.0.9-RB9.8.8.3 — PRODUCTS ↔ FROZEN USER CENTER TYPOGRAPHY
   Canonical reference: User Center RB9.8 hierarchy.
   Same logical title level uses the same 30px/800/1.15 spec.
   Product metrics (GB / price) retain their numeric emphasis.
   ========================================================= */
.gesim-products-page-main .gesim-products-hero-copy h1,
.gesim-products-page-main .gesim-products-region-heading h2,
.gesim-products-page-main .gesim-products-regional-heading h2,
.gesim-products-page-main .gesim-products-how .gesim-section-heading h2,
.gesim-products-page-main .gesim-products-help h2 {
  margin-top: 0;
  font-family: inherit;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
}

/* User Center body/subtitle scale. */
.gesim-products-page-main .gesim-products-hero-copy > p,
.gesim-products-page-main .gesim-products-region-heading p,
.gesim-products-page-main .gesim-products-regional-heading p,
.gesim-products-page-main .gesim-products-how .gesim-section-heading p,
.gesim-products-page-main .gesim-products-help p {
  font-size: 16px;
  line-height: 1.6;
}

/* Product card title maps to the frozen User Center card/empty-state H3 scale. */
.gesim-products-page-main .gesim-products-card h3,
.gesim-products-page-main .gesim-products-card.is-wide h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}

/* Keep the same title hierarchy on mobile, exactly as User Center RB9.8. */
@media (max-width: 767px) {
  .gesim-products-page-main .gesim-products-hero-copy h1,
  .gesim-products-page-main .gesim-products-region-heading h2,
  .gesim-products-page-main .gesim-products-regional-heading h2,
  .gesim-products-page-main .gesim-products-how .gesim-section-heading h2,
  .gesim-products-page-main .gesim-products-help h2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .gesim-products-page-main .gesim-products-card h3,
  .gesim-products-page-main .gesim-products-card.is-wide h3 {
    font-size: 22px;
  }
}

/* =========================================================
   v0.8.0.9-RB9.8.8.4 — PRODUCT DATA TYPOGRAPHY ALIGNMENT
   Reduce 3GB / 10GB / 20GB visual dominance to match the
   frozen User Center hierarchy. These are product metrics,
   not page/section titles, so they stay below the 30px title scale.
   ========================================================= */
.gesim-products-page-main .gesim-products-card-data {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.gesim-products-page-main .gesim-products-card.is-wide .gesim-products-card-data {
  font-size: 30px;
}

@media (max-width: 767px) {
  .gesim-products-page-main .gesim-products-card-data,
  .gesim-products-page-main .gesim-products-card.is-wide .gesim-products-card-data {
    font-size: 28px;
    line-height: 1.08;
  }
}

/* =========================================================
   v0.8.0.9-RB9.8.8.7 — GENERATED PAGE TYPOGRAPHY CONTRACT
   Canonical reference: frozen User Center RB9.8 typography.

   Scope:
   - Products landing
   - Product Detail
   - Cart / Checkout shell
   - Payment Success
   - User Center
   - Shared site footer

   Homepage marketing hero is intentionally NOT changed here because its
   display typography is already a separately frozen marketing design.

   Contract:
   - Customer-flow page/section title: 30px / 800 / 1.15 / -0.04em
   - Body / explanatory copy: 16px / 1.6
   - Card/component title: ~20–22px
   - Numeric commercial metrics: 24–28px, never larger than primary title
   - Meta / labels: 11–13px
   ========================================================= */

:root {
  --gesim-type-title: 30px;
  --gesim-type-title-weight: 800;
  --gesim-type-title-line: 1.15;
  --gesim-type-title-track: -.04em;
  --gesim-type-body: 16px;
  --gesim-type-body-line: 1.6;
  --gesim-type-card-title: 20px;
  --gesim-type-metric: 24px;
}

/* ---------- Product Detail ---------- */
.gesim-product-detail-page .gesim-detail-copy h1,
.gesim-product-detail-page .gesim-section-heading h2 {
  margin-top: 0;
  font-family: inherit;
  font-size: var(--gesim-type-title);
  font-weight: var(--gesim-type-title-weight);
  line-height: var(--gesim-type-title-line);
  letter-spacing: var(--gesim-type-title-track);
}

.gesim-product-detail-page .gesim-detail-intro,
.gesim-product-detail-page .gesim-section-heading p,
.gesim-product-detail-page .gesim-detail-feature-grid p,
.gesim-product-detail-page .gesim-step-grid p {
  font-size: var(--gesim-type-body);
  line-height: var(--gesim-type-body-line);
}

.gesim-product-detail-page .gesim-detail-price {
  font-size: var(--gesim-type-metric);
  font-weight: 800;
  line-height: 1.15;
}

.gesim-product-detail-page .gesim-detail-feature-grid h3,
.gesim-product-detail-page .gesim-step-grid h3 {
  font-size: var(--gesim-type-card-title);
  font-weight: 800;
  line-height: 1.2;
}

/* ---------- Cart / Checkout ---------- */
.germany-esim-commerce-page .gesim-commerce-intro h1 {
  margin-top: 0;
  font-family: inherit;
  font-size: var(--gesim-type-title);
  font-weight: var(--gesim-type-title-weight);
  line-height: var(--gesim-type-title-line);
  letter-spacing: var(--gesim-type-title-track);
}

.germany-esim-commerce-page .gesim-commerce-intro p,
.germany-esim-commerce-page .gesim-checkout-step-head p {
  font-size: var(--gesim-type-body);
  line-height: var(--gesim-type-body-line);
}

.germany-esim-commerce-page .gesim-checkout-step-head h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}

/* ---------- Payment Success ---------- */
.gesim-success-page .gesim-success-shell h1 {
  margin-top: 0;
  font-family: inherit;
  font-size: var(--gesim-type-title);
  font-weight: var(--gesim-type-title-weight);
  line-height: var(--gesim-type-title-line);
  letter-spacing: var(--gesim-type-title-track);
}

.gesim-success-page .gesim-success-lead {
  font-size: var(--gesim-type-body);
  line-height: var(--gesim-type-body-line);
}

/* ---------- Products / User Center / Footer canonical reinforcement ---------- */
.gesim-products-page-main .gesim-products-hero-copy h1,
.gesim-products-page-main .gesim-products-region-heading h2,
.gesim-products-page-main .gesim-products-regional-heading h2,
.gesim-products-page-main .gesim-products-how .gesim-section-heading h2,
.gesim-products-page-main .gesim-products-help h2,
.gesim-user-center .gesim-portal-auth h1,
.gesim-user-center .gesim-portal-head h1,
.gesim-user-center .gesim-portal-section-head h2,
.gesim-site-footer .gesim-footer-help h2 {
  font-size: var(--gesim-type-title);
  font-weight: var(--gesim-type-title-weight);
  line-height: var(--gesim-type-title-line);
  letter-spacing: var(--gesim-type-title-track);
}

/* Keep customer-flow title hierarchy invariant on tablet/mobile as well. */
@media (max-width: 1024px) {
  .gesim-product-detail-page .gesim-detail-copy h1,
  .gesim-product-detail-page .gesim-section-heading h2,
  .germany-esim-commerce-page .gesim-commerce-intro h1,
  .gesim-success-page .gesim-success-shell h1 {
    font-size: var(--gesim-type-title);
    line-height: var(--gesim-type-title-line);
  }
}

@media (max-width: 767px) {
  .gesim-product-detail-page .gesim-detail-copy h1,
  .gesim-product-detail-page .gesim-section-heading h2,
  .germany-esim-commerce-page .gesim-commerce-intro h1,
  .gesim-success-page .gesim-success-shell h1,
  .gesim-products-page-main .gesim-products-hero-copy h1,
  .gesim-products-page-main .gesim-products-region-heading h2,
  .gesim-products-page-main .gesim-products-regional-heading h2,
  .gesim-products-page-main .gesim-products-how .gesim-section-heading h2,
  .gesim-products-page-main .gesim-products-help h2,
  .gesim-user-center .gesim-portal-auth h1,
  .gesim-user-center .gesim-portal-head h1,
  .gesim-user-center .gesim-portal-section-head h2,
  .gesim-site-footer .gesim-footer-help h2 {
    font-size: var(--gesim-type-title);
    line-height: var(--gesim-type-title-line);
  }
}

/* =========================================================
   P5.7.5.3 — CART MINIMAL / TEXT-ONLY CONTRACT
   - No product thumbnails or placeholder image column.
   - Keep remove / product / price / quantity / subtotal only.
   - WooCommerce business logic remains unchanged.
   ========================================================= */
.germany-esim-commerce-page.woocommerce-cart table.shop_table th.product-thumbnail,
.germany-esim-commerce-page.woocommerce-cart table.shop_table td.product-thumbnail {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.germany-esim-commerce-page.woocommerce-cart table.shop_table td.product-name {
  padding-left: 18px;
}

/* P5.7.5.5 CART COUNT SYNC */
.gesim-cart-count.is-empty,
.gesim-mobile-cart-count.is-empty {
  display: none !important;
}

/* P5.7.6.1 CHECKOUT ENGLISH MINIMAL
 * Transaction-first Checkout: no product artwork or placeholder thumbnail.
 */
body.germany-esim-commerce-page.woocommerce-checkout
#order_review .product-name img,
body.germany-esim-commerce-page.woocommerce-checkout
#order_review .product-thumbnail,
body.germany-esim-commerce-page.woocommerce-checkout
#order_review th.product-thumbnail,
body.germany-esim-commerce-page.woocommerce-checkout
#order_review td.product-thumbnail {
  display: none !important;
}

body.germany-esim-commerce-page.woocommerce-checkout
#order_review .product-name {
  background-image: none !important;
}

/* P5.7.6.5 CHECKOUT CARD DETAILS TYPOGRAPHY
 * Match "Card details" to the established "Billing details" heading hierarchy.
 */
body.germany-esim-commerce-page.woocommerce-checkout #order_payment_heading {
  margin: 0 0 11px !important;
  color: var(--gesim-ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

/* =========================================================
   P5.7.7 — USER CENTER ORDER DETAIL
   Order/payment detail only. No eSIM lifecycle actions here.
   ========================================================= */

.gesim-user-center a.gesim-order-history-row {
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.gesim-user-center a.gesim-order-history-row:hover {
  border-color: #c9d7e8;
  box-shadow: 0 8px 24px rgba(31, 51, 73, .07);
  transform: translateY(-1px);
}

.gesim-user-center a.gesim-order-history-row:focus-visible {
  outline: 2px solid var(--gesim-ink);
  outline-offset: 3px;
}

.gesim-order-detail {
  display: grid;
  gap: 24px;
}

.gesim-order-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e9f3;
}

.gesim-order-detail-head h2 {
  margin: 4px 0 5px;
}

.gesim-order-detail-head p {
  margin: 0;
  color: var(--gesim-muted);
  font-size: 13px;
}

.gesim-order-detail-back {
  color: var(--gesim-ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.gesim-order-detail-back:hover {
  text-decoration: underline;
}

.gesim-order-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gesim-order-detail-meta > div {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 15px 16px;
  border: 1px solid #e2e9f3;
  border-radius: 14px;
  background: #fbfdff;
}

.gesim-order-detail-meta span,
.gesim-order-detail-product-head span,
.gesim-order-detail-summary span {
  color: var(--gesim-muted);
  font-size: 11px;
}

.gesim-order-detail-meta strong {
  font-size: 13px;
}

.gesim-order-detail-products {
  display: grid;
  gap: 10px;
}

.gesim-order-detail-products h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.gesim-order-detail-product-head,
.gesim-order-detail-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) .7fr .7fr .8fr;
  gap: 16px;
  align-items: center;
}

.gesim-order-detail-product-head {
  padding: 0 16px;
}

.gesim-order-detail-product-row {
  padding: 16px;
  border: 1px solid #e2e9f3;
  border-radius: 14px;
  background: #fff;
}

.gesim-order-detail-product-row > div {
  display: grid;
  gap: 3px;
}

.gesim-order-detail-product-row > div strong,
.gesim-order-detail-product-row > strong {
  font-size: 13px;
}

.gesim-order-detail-product-row > div span,
.gesim-order-detail-product-row > span {
  color: var(--gesim-muted);
  font-size: 12px;
}

.gesim-order-detail-summary {
  width: min(420px, 100%);
  margin-left: auto;
  display: grid;
  gap: 0;
  border: 1px solid #e2e9f3;
  border-radius: 14px;
  overflow: hidden;
}

.gesim-order-detail-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 15px;
  background: #fff;
  border-bottom: 1px solid #edf1f6;
}

.gesim-order-detail-summary > div:last-child {
  border-bottom: 0;
}

.gesim-order-detail-summary .is-total {
  background: #f7faff;
}

.gesim-order-detail-summary strong {
  font-size: 13px;
}

.gesim-order-detail-summary .is-total strong {
  font-size: 15px;
}

.gesim-order-detail-boundary-note {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f4f7fb;
}

.gesim-order-detail-boundary-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.gesim-order-detail-boundary-note p {
  margin: 0;
  color: var(--gesim-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .gesim-order-detail-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .gesim-order-detail-head {
    flex-direction: column;
  }

  .gesim-order-detail-meta {
    grid-template-columns: 1fr;
  }

  .gesim-order-detail-product-head {
    display: none;
  }

  .gesim-order-detail-product-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gesim-order-detail-product-row > span,
  .gesim-order-detail-product-row > strong[data-label] {
    display: flex;
    justify-content: space-between;
    gap: 18px;
  }

  .gesim-order-detail-product-row > span::before,
  .gesim-order-detail-product-row > strong[data-label]::before {
    content: attr(data-label);
    color: var(--gesim-muted);
    font-size: 11px;
    font-weight: 400;
  }
}

/* P5.7.7.1 — Order Detail title typography */
.gesim-order-detail-head h2 {
  font-size: 24px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

@media (max-width: 767px) {
  .gesim-order-detail-head h2 {
    font-size: 22px !important;
  }
}



/* =========================================================
   P5.7.8 — USER CENTER DASHBOARD
   ========================================================= */

.gesim-dashboard {
  display: grid;
  gap: 22px;
}

.gesim-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
}

.gesim-dashboard-card {
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 20px;
  border: 1px solid #e2e9f3;
  border-radius: 16px;
  background: #fbfdff;
}

.gesim-dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gesim-dashboard-label {
  display: block;
  margin-bottom: 7px;
  color: #5471f2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.gesim-dashboard-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.gesim-dashboard-card p {
  margin: 0 0 18px;
  color: var(--gesim-muted);
  font-size: 13px;
  line-height: 1.6;
}

.gesim-dashboard-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #dce5f2;
  border-radius: 999px;
  background: #fff;
  color: var(--gesim-ink);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.gesim-dashboard-order-products {
  display: grid;
  gap: 5px;
  margin: 14px 0 16px;
}

.gesim-dashboard-order-products strong {
  font-size: 14px;
}

.gesim-dashboard-order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #e6edf5;
  color: var(--gesim-muted);
  font-size: 12px;
}

.gesim-dashboard-order-meta strong {
  color: var(--gesim-ink);
}

.gesim-dashboard-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 16px;
  color: #4668f2;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.gesim-dashboard-link:hover {
  text-decoration: underline;
}

.gesim-dashboard-boundary-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f4f7fb;
  color: var(--gesim-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .gesim-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .gesim-dashboard-card {
    min-height: 0;
  }
}

@media (max-width: 544px) {
  .gesim-dashboard-card-head {
    flex-direction: column;
  }
}


/* =========================================================
   P5.7.9.1 — ORDERS & PAYMENTS PAGINATION
   ========================================================= */

.gesim-orders-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5ebf4;
}

.gesim-orders-pagination-summary {
  color: var(--gesim-muted);
  font-size: 12px;
  line-height: 1.45;
}

.gesim-orders-pagination-summary span {
  margin: 0 5px;
}

.gesim-orders-pagination-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.gesim-orders-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  background: #fff;
  color: var(--gesim-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.gesim-orders-page-link:hover {
  border-color: #aebdf7;
  color: #4668f2;
}

.gesim-orders-page-link.is-current {
  border-color: #dce5ff;
  background: #eef3ff;
  color: #4668f2;
}

.gesim-orders-page-direction {
  padding-left: 12px;
  padding-right: 12px;
}

.gesim-orders-page-ellipsis {
  min-width: 20px;
  color: var(--gesim-muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 700px) {
  .gesim-orders-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .gesim-orders-pagination-links {
    justify-content: flex-start;
    width: 100%;
  }
}


/* =========================================================
   P5.7.10.1 — DEDICATED SINGLE eSIM DETAIL
   ========================================================= */

.gesim-single-esim-detail {
  display: grid;
  gap: 20px;
}

.gesim-single-esim-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.gesim-single-esim-detail-head h2 {
  margin: 7px 0 0;
  font-size: 24px;
  line-height: 1.25;
}

.gesim-portal-esim-detail-card {
  width: 100%;
}

.gesim-portal-esim-detail-card .gesim-single-esim-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.gesim-portal-esim-detail-card .gesim-single-esim-facts > div {
  grid-template-columns: 130px minmax(0, 1fr);
}

.gesim-single-esim-install-unavailable {
  margin-top: 18px;
  padding: 16px 17px;
  border: 1px solid #e1e8f1;
  border-radius: 14px;
  background: #f5f8fc;
}

.gesim-single-esim-install-unavailable strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.gesim-single-esim-install-unavailable p {
  margin: 0;
  color: var(--gesim-muted);
  font-size: 12px;
  line-height: 1.55;
}

.gesim-single-esim-boundary-note {
  padding: 15px 17px;
  border-radius: 14px;
  background: #f4f7fb;
}

.gesim-single-esim-boundary-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.gesim-single-esim-boundary-note p {
  margin: 0;
  color: var(--gesim-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .gesim-single-esim-detail-head {
    flex-direction: column;
  }

  .gesim-portal-esim-detail-card .gesim-single-esim-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gesim-single-esim-detail-head h2 {
    font-size: 22px;
  }
}


/* P5.7.10.3 — internal Single eSIM Detail loader is never customer-visible. */
.gesim-single-esim-detail .gesim-portal-detail-loader {
  display: none !important;
}


/* =========================================================
   P5.7.10.5 — TERMINAL eSIM DETAIL CLEANUP
   ========================================================= */

.gesim-portal-esim-detail-card .gesim-single-esim-facts.is-terminal {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
}

.gesim-portal-esim-detail-card .gesim-single-esim-facts.is-terminal > div {
  grid-template-columns: 130px minmax(0, 1fr);
}


/* =========================================================
   P5.7.11E — SINGLE eSIM TOP-UP ACTION UI
   Core is authoritative for availability, compatible plans,
   pending Checkout and customer-visible reason/message.
   ========================================================= */
.gesim-user-center .gesim-portal-topup-action {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f2;
}

.gesim-user-center .gesim-portal-topup-action-head h5 {
  margin: 0;
  color: #15172d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.gesim-user-center .gesim-portal-topup-action-head p,
.gesim-user-center .gesim-portal-topup-action-status {
  margin: 6px 0 0;
  color: #737b91;
  font-size: 14px;
  line-height: 1.5;
}

.gesim-user-center .gesim-portal-topup-action-status:not(:empty) {
  margin-bottom: 14px;
}

.gesim-user-center .gesim-portal-topup-action.is-processing .gesim-portal-topup-action-status {
  padding: 13px 14px;
  border: 1px solid #dce5ff;
  border-radius: 12px;
  background: #f8faff;
  color: #405fd4;
  font-weight: 650;
}

.gesim-user-center .gesim-portal-topup-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gesim-user-center .gesim-portal-topup-plan {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.gesim-user-center .gesim-portal-topup-plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gesim-user-center .gesim-portal-topup-plan-copy {
  display: grid;
  gap: 7px;
  min-height: 122px;
  padding: 15px;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  background: #fbfcff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.gesim-user-center .gesim-portal-topup-plan input:checked + .gesim-portal-topup-plan-copy {
  border-color: #4d6bff;
  background: #f8faff;
  box-shadow: 0 0 0 2px rgba(77,107,255,.12);
}

.gesim-user-center .gesim-portal-topup-plan-copy strong {
  color: #15172d;
  font-size: 14px;
  line-height: 1.35;
}

.gesim-user-center .gesim-portal-topup-plan-copy span {
  color: #697187;
  font-size: 13px;
  line-height: 1.45;
}

.gesim-user-center .gesim-portal-topup-plan-copy b {
  margin-top: auto;
  color: #15172d;
  font-size: 16px;
  line-height: 1.2;
}

.gesim-user-center .gesim-portal-topup-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.gesim-user-center .gesim-portal-topup-gateway-field {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
}

.gesim-user-center .gesim-portal-topup-gateway-field > span {
  color: #566078;
  font-size: 12px;
  font-weight: 750;
}

.gesim-user-center .gesim-portal-topup-gateway {
  min-height: 44px;
  padding: 0 38px 0 12px;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  background: #fff;
  color: #15172d;
  font: inherit;
  font-size: 14px;
}

.gesim-user-center .gesim-portal-topup-submit {
  min-height: 44px;
  white-space: nowrap;
}

.gesim-user-center .gesim-portal-topup-pending {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid #dce5ff;
  border-radius: 14px;
  background: #f8faff;
}

.gesim-user-center .gesim-portal-topup-pending strong {
  color: #15172d;
  font-size: 14px;
}

.gesim-user-center .gesim-portal-topup-pending span {
  color: #5f6980;
  font-size: 13px;
}

@media (max-width: 820px) {
  .gesim-user-center .gesim-portal-topup-plan-grid {
    grid-template-columns: 1fr;
  }

  .gesim-user-center .gesim-portal-topup-plan-copy {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .gesim-user-center .gesim-portal-topup-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .gesim-user-center .gesim-portal-topup-gateway-field {
    min-width: 0;
  }

  .gesim-user-center .gesim-portal-topup-submit {
    width: 100%;
  }
}


/* =========================================================
   P5.7.12A — SINGLE eSIM CANCEL / REFUND READ-ONLY UI
   Destructive cancellation is intentionally NOT exposed here.
   ========================================================= */
.gesim-user-center .gesim-portal-refund-action {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f2;
}

.gesim-user-center .gesim-portal-refund-action-head h5 {
  margin: 0;
  color: #15172d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.gesim-user-center .gesim-portal-refund-action-head p,
.gesim-user-center .gesim-portal-refund-action-status {
  margin: 6px 0 0;
  color: #737b91;
  font-size: 14px;
  line-height: 1.5;
}

.gesim-user-center .gesim-portal-refund-action-status:not(:empty) {
  margin-bottom: 14px;
}

.gesim-user-center .gesim-portal-refund-action.is-processing .gesim-portal-refund-action-status,
.gesim-user-center .gesim-portal-refund-action.is-blocked .gesim-portal-refund-action-status,
.gesim-user-center .gesim-portal-refund-action.is-support .gesim-portal-refund-action-status {
  padding: 13px 14px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #f8faff;
  color: #566078;
  font-weight: 650;
}

.gesim-user-center .gesim-portal-refund-progress,
.gesim-user-center .gesim-portal-refund-eligibility-result {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid #dce5ff;
  border-radius: 14px;
  background: #f8faff;
}

.gesim-user-center .gesim-portal-refund-progress strong,
.gesim-user-center .gesim-portal-refund-eligibility-result strong {
  color: #15172d;
  font-size: 14px;
}

.gesim-user-center .gesim-portal-refund-progress p,
.gesim-user-center .gesim-portal-refund-eligibility-result p {
  margin: 0;
  color: #697187;
  font-size: 13px;
  line-height: 1.5;
}

.gesim-user-center .gesim-portal-refund-check {
  min-height: 42px;
}


/* P5.7.12B — explicit destructive second confirmation */
.gesim-user-center .gesim-portal-refund-confirmation {
  gap: 12px;
}
.gesim-user-center .gesim-portal-refund-confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  color: #30374b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
}
.gesim-user-center .gesim-portal-refund-confirm-checkbox {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: 0 0 auto;
}
.gesim-user-center .gesim-portal-refund-confirm-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}
.gesim-user-center .gesim-btn-danger {
  border: 1px solid #b42318;
  background: #b42318;
  color: #fff;
}
.gesim-user-center .gesim-btn-danger:hover:not(:disabled) {
  border-color: #912018;
  background: #912018;
}
.gesim-user-center .gesim-btn-danger:disabled {
  opacity: .48;
  cursor: not-allowed;
}
