/* "Stay connected" (eSIM) card, banner look (mockup E3, owner pick 25 Nov 2026). Markup: TGCore_Esim_Card (plugin includes/class-esim-card.php);
   behaviour: assets/js/tg-esim-card.js. Balanced teal (buttons, icons, focus), ink text, yellow only on the selected plan chip.
   Small text uses div/span elements (tg-clarity.css keeps p, li, dd below 16 px only for -src / -note / foot class names). */
.tg-es { position: relative; min-width: 0; border: 1px solid #D8DED9; border-radius: 15px; background: #FFFEFA; box-shadow: 0 5px 18px rgba(22, 34, 46, .05); color: #16222E; font: 15px/1.35 var(--f-text, 'DM Sans', sans-serif); overflow: hidden; }
.tg-es :focus-visible { outline: 3px solid #0F5257; outline-offset: 2px; }
.tg-es-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; padding: 4px 14px 0; min-height: 44px; }
.tg-es-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #E8F0EF; color: #0F5257; }
.tg-es-icon svg, .tg-es-icon img { width: 20px; height: 20px; }
.tg-es-head .rc-h3 { margin: 0; padding: 0; font-size: 21px; line-height: 1.1; color: #16222E; }
.tg-es-head .tgn-b { margin: -6px -4px; }
.tg-es-wordmark { font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 28px; color: #16222E; }
.tg-es-brand { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 28px; }
.tg-es-brand .tgn-b { margin: -8px -10px -8px 0; }
.tg-es-logo { display: block; height: 28px; width: auto; max-width: calc(100% - 44px); object-fit: contain; object-position: left center; }
.tg-es-lines { display: grid; gap: 1px; margin: 0; }
.tg-es-line { font-size: 13px; line-height: 1.3; color: #16222E; }
.tg-es-lab { display: inline-block; min-width: 64px; color: #46505A; font-weight: 600; }
/* hero: one grid, the same pieces for every state */
.tg-es-hero { display: grid; gap: 2px 14px; padding: 6px 14px 10px; align-items: center; grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "lines" "fm" "chips" "go"; }
.tg-es-hero.has-photo { grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "brand photo" "lines photo" "fm photo" "chips chips" "go go"; align-items: start; }
.tg-es-a-brand { grid-area: brand; }
.tg-es-hero > .tg-es-lines { grid-area: lines; }
.tg-es-hero > .tg-es-none { grid-area: fm; }
.tg-es-plan { display: contents; }
.tg-es-plan[hidden] { display: none; }
.tg-es-fm { grid-area: fm; display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin-top: 2px; }
.tg-es-plan > .tg-es-go { grid-area: go; }
.tg-es-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.tg-es-chips[hidden] { display: none; }
.tg-es-photo { grid-area: photo; margin: 0; height: 100px; }
.tg-es-fig strong { font-size: 36px; line-height: 1; letter-spacing: -1px; color: #16222E; }
.tg-es-fig small { font-size: 18px; font-weight: 700; color: #16222E; letter-spacing: -.2px; }
.tg-es-meta { font-size: 14px; color: #46505A; line-height: 1.25; }
.tg-es-meta b { color: #16222E; }
.tg-es-once { font-size: 12.5px; color: #46505A; }
.tg-es-approx { display: block; margin: 0; font-size: 12.5px; color: #46505A; }
.tg-es-chip { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid #C6D5CF; border-radius: 8px; background: #fff; color: #16222E; font: 700 14px/1 var(--f-text, 'DM Sans', sans-serif); cursor: pointer; }
.tg-es-chip[aria-checked="true"] { background: #FFC107; border-color: #806300; color: #16222E; }
.tg-es a.tg-es-go { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; margin-top: 3px; padding: 0 14px; border: 0; border-radius: 10px; background: #0F5257; color: #fff; font: 700 15px/1.1 var(--f-text, 'DM Sans', sans-serif); text-decoration: none; white-space: nowrap; box-sizing: border-box; }
.tg-es-go svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tg-es a.tg-es-go:hover { background: #0B4145; color: #fff; }
.tg-es a.tg-es-go:active { background: #093538; transform: translateY(1px); }
.tg-es a.tg-es-go:focus-visible { outline: 3px solid #16222E; outline-offset: 2px; }
.tg-es-unavail { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; margin-top: 3px; border: 1px dashed #AFC3BA; border-radius: 10px; color: #46505A; font-size: 14px; font-weight: 700; box-sizing: border-box; }
.tg-es-none, .tg-es-empty { margin: 4px 0 0; color: #46505A; font-size: 14px; }
.tg-es-empty { padding: 4px 14px 12px; }
.tg-es-photo picture, .tg-es-photo img { display: block; width: 100%; height: 100%; }
.tg-es-photo img { object-fit: cover; object-position: center 40%; border-radius: 9px; }
/* the other providers: equal cells */
.tg-es-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #DFE5E0; background: #F3F7F5; }
.tg-es-cell { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 6px 10px 8px; border-top: 1px solid #D9E4DE; }
.tg-es-cell:nth-child(-n+2) { border-top: 0; }
.tg-es-cell:nth-child(even) { border-left: 1px solid #D9E4DE; }
.tg-es-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tg-es-cell .tg-es-lines { margin-bottom: 3px; }
.tg-es-cell .tg-es-go { margin-top: auto; min-height: 44px; font-size: 13.5px; padding: 0 8px; }
.tg-es-cell .tg-es-go svg { display: none; }
.tg-es-src { margin: 0; font-size: 12px; color: #46505A; }
.tg-es-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding: 0 12px; min-height: 36px; border-top: 1px solid #DFE5E0; font-size: 12px; line-height: 1.3; color: #46505A; }
.tg-es-foot .tgn-b { margin: -12px 0; }
.tg-es-commission { display: inline-flex; align-items: center; gap: 2px; color: #16222E; }
@media (min-width: 700px) {
  .tg-es-hero.has-photo { grid-template-columns: minmax(0, 1fr) 190px; }
  .tg-es-photo { height: 120px; }
  .tg-es-fig strong { font-size: 38px; }
  .tg-es-fig small { font-size: 20px; }
  .tg-es-cell .tg-es-go svg { display: block; }
}
@media (min-width: 1051px) {
  .tg-es-hero { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand fm" "lines fm" "chips go"; column-gap: 24px; }
  .tg-es-hero.has-photo { grid-template-columns: minmax(0, 1fr) minmax(250px, auto) 226px; grid-template-areas: "brand fm photo" "lines fm photo" "chips go photo"; align-items: center; }
  .tg-es-photo { grid-row: 1 / 4; height: 108px; }
  .tg-es-hero { padding: 4px 14px 8px; }
  .tg-es-fm { flex-direction: column; align-items: flex-start; gap: 0; }
  .tg-es-hero > .tg-es-none { grid-area: chips; }
  .tg-es-plan > .tg-es-go { width: 100%; }
  .tg-es-cells { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
  .tg-es-cell { padding: 6px 14px 8px; border-top: 0; }
  .tg-es-cell:nth-child(even), .tg-es-cell + .tg-es-cell { border-left: 1px solid #D9E4DE; }
  .tg-es-cell:last-child:nth-child(odd) { grid-column: auto; }
  .tg-es-cell .tg-es-go { min-height: 48px; font-size: 15px; padding: 0 14px; }
  .tg-es-foot { padding: 0 14px; }
}
@media (max-width: 699px) {
  .tg-es-head { padding: 2px 10px 0; }
  .tg-es-foot { padding: 0 10px; letter-spacing: -.1px; }
  .tg-es-head .rc-h3 { font-size: 19px; }
  .tg-es-hero { padding: 4px 10px 8px; }
  .tg-es-line { font-size: 12.5px; }
  .tg-es-lab { min-width: 0; margin-right: 2px; font-size: 12px; }
  .tg-es-lab::after { content: ":"; }
  .tg-es-cell .tg-es-lines { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) { .tg-es a.tg-es-go:active { transform: none; } }
