/* Travel eSIM hub (#/esim) */
.esim-hero{position:relative;margin:24px 0 16px;padding:36px 32px;border-radius:var(--r,18px);overflow:hidden;color:#fff;
  background:linear-gradient(to right,rgba(6,9,16,.88),rgba(6,9,16,.55) 55%,rgba(6,9,16,.2)),url('/img/esim/earth.jpg') center/cover no-repeat,#0b0d12}
[dir="rtl"] .esim-hero{background:linear-gradient(to left,rgba(6,9,16,.88),rgba(6,9,16,.55) 55%,rgba(6,9,16,.2)),url('/img/esim/earth.jpg') center/cover no-repeat,#0b0d12}
.esim-hero-txt{max-width:640px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.esim-hero .pill{display:inline-flex;align-items:center;gap:6px;background:rgba(0,0,0,.35);border-color:rgba(255,255,255,.25);color:#e8ecf5}
.esim-hero .pill .ico{width:16px;height:16px}
.esim-hero h1{margin:0;font-size:clamp(1.6rem,3.2vw,2.4rem);line-height:1.15;letter-spacing:-.02em}
.esim-hero p{margin:0;color:rgba(240,244,252,.92);line-height:1.6}
.esim-pts{display:flex;flex-wrap:wrap;gap:8px 16px;margin:6px 0 0;padding:0;list-style:none}
.esim-pts li{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:.95rem}
.esim-pts .ico{width:18px;height:18px;color:#3ddc97}
.esim-note{display:flex;align-items:flex-start;gap:12px;margin:0 0 18px;padding:14px 16px;border-radius:14px;border:1px solid rgba(43,167,201,.45);
  background:linear-gradient(90deg,rgba(43,167,201,.14),rgba(61,220,151,.06));color:var(--text,#e8ecf5);line-height:1.55}
.esim-note .ico{flex:0 0 auto;width:22px;height:22px;margin-top:1px;color:#4cc9f0}
.esim-note b{color:#7fdcf5;margin-inline-end:4px}
.esim-note.sm{margin:10px 0 0;padding:10px 12px;font-size:.92rem}
.esim-ctls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:10px}
.esim-ctl{display:flex;flex-direction:column;gap:6px;min-width:0}
.esim-ctl span{font-size:.82rem;color:var(--dim)}
.esim-ctl select{width:100%;min-width:0}
.esim-count{margin:6px 0 12px}
.esim-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-bottom:32px}
.esim-card{position:relative;display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:16px;border:1px solid var(--line,rgba(255,255,255,.08));
  background:linear-gradient(180deg,var(--panel2),var(--panel));color:inherit;text-decoration:none;transition:border-color .15s,transform .15s}
.esim-card:hover,.esim-card:focus-visible{border-color:rgba(43,167,201,.6);transform:translateY(-2px)}
.esim-card-top{display:flex;align-items:center;gap:10px}
.esim-flag{flex:0 0 auto;width:42px;height:28px;border-radius:5px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.18),0 4px 10px -4px rgba(0,0,0,.6)}
.esim-place{display:flex;flex-direction:column;min-width:0;flex:1}
.esim-place b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.esim-place small{color:var(--dim);font-size:.8rem}
.esim-spec{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.esim-spec div{padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.04)}
.esim-spec dt{font-size:.75rem;color:var(--dim)}
.esim-spec dd{margin:2px 0 0;font-weight:700;font-size:1.05rem}
.esim-card-bot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.esim-nonum{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font-size:.76rem;color:#7fdcf5;background:rgba(43,167,201,.14);border:1px solid rgba(43,167,201,.35)}
.esim-nonum .ico{width:13px;height:13px}
.esim-price b{font-size:1.15rem}
.esim-go{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;color:var(--dim)}
.esim-go .ico{width:16px;height:16px}
@media (max-width:800px){
  .esim-hero{margin-top:14px;padding:22px 18px;background:linear-gradient(to bottom,rgba(6,9,16,.45),rgba(6,9,16,.85)),url('/img/esim/earth.jpg') center/cover no-repeat,#0b0d12}
  .esim-ctls{grid-template-columns:repeat(2,minmax(0,1fr))}
  .esim-grid{grid-template-columns:1fr 1fr;gap:10px}
  .esim-card{padding:12px;gap:10px}.esim-flag{width:36px;height:24px}.esim-spec dd{font-size:.95rem}
}
@media (max-width:420px){.esim-grid{grid-template-columns:1fr}}
/* MOBILE-WIDTH-FIX: eSIM / rent / proxy / carrier cards share this grid; minmax(0,...) stops a long nowrap place name or
   service label from widening a track past the phone viewport (same failure mode as the gift-card filter rows). */
.esim-card{min-width:0}
.esim-spec{grid-template-columns:repeat(2,minmax(0,1fr))}.esim-spec div{min-width:0}.esim-spec dd{overflow-wrap:anywhere}.rent-svc-dd span{min-width:0}
@media (max-width:800px){.esim-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){.esim-grid{grid-template-columns:minmax(0,1fr)}}

.esim-combo{position:relative;min-width:0}
.esim-combo input[type=search]{width:100%;min-width:0;box-sizing:border-box;min-height:42px;border-radius:12px;padding:8px 12px}
.esim-combo-list{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 4px);max-height:260px;overflow:auto;margin:0;padding:6px 0;list-style:none;border-radius:12px;border:1px solid var(--line,rgba(255,255,255,.12));background:var(--panel,#161922);box-shadow:0 14px 36px rgba(0,0,0,.45)}
.esim-combo-list li{padding:8px 12px;cursor:pointer;color:var(--text,#e8ecf5)}
.esim-combo-list li:hover,.esim-combo-list li.is-active,.esim-combo-list li[aria-selected="true"]{background:rgba(124,108,255,.2)}
.esim-combo-list li[hidden]{display:none}
@media (max-width:800px){.esim-combo-list{max-height:220px}}

/* Carrier plans use the travel browse layout, with its own service notice. */
.sim-note{border-color:rgba(167,139,250,.45);background:linear-gradient(90deg,rgba(139,92,246,.14),rgba(139,92,246,.04))}
.sim-note b,.sim-note .ico{color:#c4b5fd}.sim-plan-kind,.sim-brand{font-size:.78rem;color:var(--dim)}
.sim-card .esim-place b{white-space:normal;line-height:1.3}.sim-card .esim-card-bot{margin-top:auto}

/* proxy package cards reuse the eSIM card; the icon stands in for the flag */
.esim-flag.proxy-ico{display:inline-flex;align-items:center;justify-content:center;width:36px;height:24px;color:var(--accent,#a79bff)}
.esim-flag.proxy-ico .ico{width:20px;height:20px}

/* rent: service logo + country flag */
.rent-svc-logo{flex:0 0 auto;width:32px;height:32px;border-radius:8px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.14),0 4px 10px -4px rgba(0,0,0,.6)}
.rent-svc-sm{width:20px;height:20px;border-radius:5px;box-shadow:none}
.rent-svc-dd{display:flex;align-items:center;gap:6px}
.rent-opt-flag{width:24px;height:16px;border-radius:3px;box-shadow:none}
.rent-opt-svc{width:20px;height:20px;border-radius:5px;box-shadow:none}
.esim-combo-list li:has(.rent-opt-flag),.esim-combo-list li:has(.rent-opt-svc){display:flex;align-items:center;gap:8px}
.sf-rent-svc{position:absolute;right:8px;bottom:8px;width:34px;height:34px}
.sf-pd-art .sf-rent-svc{width:44px;height:44px;right:12px;bottom:12px}
.sf-card-flag{position:relative}
