/**
 * eSIM plan selector (auth + guest wizards)
 */

.order-summary-strip {
  display: none !important;
}

.country-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 24px;
    margin-top: 24px;
}

.country-info-card {
    background: rgb(22, 25, 31);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 26px 22px;
    text-align: center;
    align-self: start;
    position: sticky;
    top: 20px;
    z-index: 2;
}

.country-info-card .country-flag-large {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 3;
    margin: 0 auto 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-info-card .country-flag-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.country-info-card .country-flag-multi {
    background: linear-gradient(135deg, rgba(255, 202, 32, 0.18) 0%, rgba(255, 202, 32, 0.04) 100%);
    color: #ffca20;
    font-size: 60px;
}

/* Regional bucket variant: shows the baked region SVG (Europe glowing
   in Crypton yellow against a faint world outline, etc.) instead of
   the generic globe icon. Same envelope as the flag/globe variants so
   the card layout stays identical across destination types. The
   radial background + drop-shadow gives the highlighted region a
   subtle halo without competing with the map itself. */
.country-info-card .country-flag-region {
    background:
        radial-gradient(ellipse at center,
            rgba(255, 205, 0, 0.10) 0%,
            rgba(0, 0, 0, 0) 70%),
        linear-gradient(135deg,
            rgba(255, 205, 0, 0.06) 0%,
            rgba(0, 0, 0, 0.15) 100%);
    padding: 12px;
}
.country-info-card .country-flag-region img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* override .country-flag-large img { object-fit: cover; } above */
    filter: drop-shadow(0 0 10px rgba(255, 205, 0, 0.40));
}

.country-info-card h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 4px;
    font-weight: 600;
}

.country-info-card .country-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0 0 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li i {
    color: #ffca20;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 14px;
}

.region-included-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.region-included-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.region-included-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 4px 6px 0;
    -webkit-overflow-scrolling: touch;
}

.region-included-pills::-webkit-scrollbar {
    width: 6px;
}

.region-included-pills::-webkit-scrollbar-thumb {
    background: rgba(255, 202, 32, 0.25);
    border-radius: 4px;
}

.region-included-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 202, 32, 0.1);
    border: 1px solid rgba(255, 202, 32, 0.22);
    line-height: 1.25;
    max-width: 100%;
}

a.region-included-pill {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

a.region-included-pill:hover {
    background: rgba(255, 202, 32, 0.2);
    border-color: rgba(255, 202, 32, 0.45);
    color: #fff;
}

a.region-included-pill:focus-visible {
    outline: 2px solid rgba(255, 202, 32, 0.85);
    outline-offset: 2px;
}

.region-included-pill-flag {
    width: 18px;
    height: 13px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.region-included-pill-name {
    min-width: 0;
}

/* Right column */
.plan-selector-card {
    display: flex;
    flex-direction: column;
}

.selector-heading {
    color: #fff;
    font-size: 14px;
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

.plan-pill-list {
    display: grid;
    gap: 10px;
}

.plan-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    background: rgba(255, 202, 32, 0.08);
    border: 2px solid rgba(255, 202, 32, 0.35);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffe48a;
    user-select: none;
}

.plan-pill:hover {
    background: rgba(255, 202, 32, 0.18);
    border-color: rgba(255, 202, 32, 0.6);
}

.plan-pill input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid currentColor;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    background: transparent;
}

.plan-pill input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: currentColor;
}

/* dark.css sets `label { color: #d9d9d9 !important }` — override on yellow selection */
.plan-pill:has(input:checked),
.plan-pill.selected {
    background: #ffca20;
    border-color: #ffca20;
    color: #3d3d3d !important;
    box-shadow: 0 6px 22px rgba(255, 202, 32, 0.35);
}

.plan-pill:has(input:checked) .plan-pill-content,
.plan-pill.selected .plan-pill-content,
.plan-pill:has(input:checked) .plan-pill-content strong,
.plan-pill.selected .plan-pill-content strong {
    color: inherit !important;
}

.plan-pill:has(input:checked) input[type="radio"],
.plan-pill.selected input[type="radio"] {
    color: #3d3d3d !important;
    border-color: currentColor;
}

.plan-pill-content {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.2px;
}

.plan-pill-content strong { font-weight: 700; }

.plan-pill-content .dot {
    opacity: 0.5;
    margin: 0 6px;
}

/* Small USD equivalent shown next to the EUR price on every pill. The
   EUR figure is what the user is actually charged; the USD value is a
   live-ish FX hint sourced from EsimPlanCurator::eurToUsdRate(). */
.plan-pill-content .usd-equiv,
.order-summary-strip .usd-equiv {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.6;
    margin-left: 4px;
    letter-spacing: 0;
}

.plan-pill:has(input:checked) .plan-pill-content .usd-equiv,
.plan-pill.selected .plan-pill-content .usd-equiv {
    color: inherit !important;
    opacity: 0.75;
}

/* Payment block separator */
.payment-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-section .selector-heading { margin-bottom: 14px; }

/* Order summary strip just above the final CTA */
.order-summary-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 202, 32, 0.06);
    border: 1px solid rgba(255, 202, 32, 0.18);
    border-radius: 12px;
    padding: 12px 18px;
    margin-top: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.order-summary-strip strong { color: #fff; }

.order-summary-strip .total {
    font-size: 18px;
    color: #ffca20;
    font-weight: 700;
}

/* Final CTA */
.btn-buy-now {
    margin-top: 14px;
    width: 100%;
    padding: 16px 18px;
    background: transparent;
    border: 2px solid rgba(255, 202, 32, 0.4);
    color: rgba(255, 202, 32, 0.65);
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.plan-pill-form:has(.plan-pill input:checked) .btn-buy-now,
.plan-pill-form.has-selection .btn-buy-now {
    background: #ffca20;
    color: #000;
    border-color: #ffca20;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(255, 202, 32, 0.4);
}

.plan-pill-form:has(.plan-pill input:checked) .btn-buy-now:hover,
.plan-pill-form.has-selection .btn-buy-now:hover {
    background: #ffd848;
    border-color: #ffd848;
    transform: translateY(-1px);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.trust-badges span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.trust-badges i {
    color: #ffca20;
    font-size: 11px;
}

/* Crypton Mobile upsell — mirrors /mobile featured card (gold rim, dark glass) */
.plan-cm-upsell {
    display: block;
    margin-top: 22px;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(14, 14, 18, 0.94) 0%, rgba(22, 22, 28, 0.97) 45%, rgba(10, 10, 14, 0.98) 100%);
    border: 2px solid rgba(255, 205, 0, 0.85);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 205, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.plan-cm-upsell:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 220, 80, 0.95);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.5),
        0 0 28px rgba(255, 205, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.plan-cm-upsell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120% 70% at 50% -20%, rgba(255, 205, 0, 0.16), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(255, 205, 0, 0.05), transparent 45%);
}

.plan-cm-upsell-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 18px 14px;
}

.plan-cm-upsell-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    background: linear-gradient(135deg, #ffef00 0%, #ffcd00 100%);
    box-shadow: 0 4px 16px rgba(255, 205, 0, 0.35);
}

.plan-cm-upsell-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.plan-cm-upsell-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.85);
    background: linear-gradient(135deg, #ffcd00 0%, #f0b800 100%);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.plan-cm-upsell-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffef00 0%, #ffcd00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.plan-cm-upsell-body {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.plan-cm-upsell-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffca20;
}

.plan-cm-upsell-cta i {
    font-size: 12px;
    opacity: 0.9;
}

.plan-cm-upsell-note {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 18px 14px;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.plan-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.plan-empty-state i {
    font-size: 36px;
    opacity: 0.3;
    margin-bottom: 14px;
    display: block;
}

/* Small FAQ under the checkout column. Native <details>/<summary> for
   no-JS. Kept inside .plan-selector-card so scrolling never paints it
   beneath the sticky .country-info-card (transparent double-text bug). */
.plan-faq {
    margin-top: 28px;
    padding: 22px 24px 18px;
    /* Nearly opaque so text never doubles up with content scrolling
       behind a sticky sibling on narrow / two-column layouts. */
    background: rgb(18, 21, 26);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    position: relative;
    z-index: 1;
}

.plan-faq-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.plan-faq-header h3 {
    color: #ffca20;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

.plan-faq-header h3 i { margin-right: 6px; font-size: 12px; }

.plan-faq-header p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    margin: 0;
}

.plan-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
}

.plan-faq-item {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 0;
}

.plan-faq-item:first-child,
.plan-faq-item:nth-child(2) { border-top: none; }

.plan-faq-item > summary {
    list-style: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 26px 10px 0;
    position: relative;
    line-height: 1.35;
    user-select: none;
}

.plan-faq-item > summary::-webkit-details-marker { display: none; }
.plan-faq-item > summary::marker { content: ''; }

.plan-faq-item > summary::after {
    content: '\002B'; /* + */
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffca20;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.plan-faq-item[open] > summary::after {
    content: '\2212'; /* − */
}

.plan-faq-item > summary:hover { color: #fff; }
.plan-faq-item > summary:focus-visible {
    outline: 2px solid rgba(255, 202, 32, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

.plan-faq-answer {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12.5px;
    line-height: 1.55;
    padding: 0 26px 12px 0;
}

.plan-faq-answer a {
    color: #ffca20;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 202, 32, 0.4);
}

.plan-faq-answer a:hover { border-bottom-color: #ffca20; }

.plan-faq-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.plan-faq-footer a {
    color: #ffca20;
    text-decoration: none;
    font-weight: 600;
}
.plan-faq-footer a:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .plan-faq { padding: 18px 16px 14px; }
    .plan-faq-list { grid-template-columns: 1fr; gap: 0; }
    .plan-faq-item:nth-child(2) { border-top: 1px solid rgba(255, 255, 255, 0.05); }
}

/* "Also available in regional plans" upsell shown below the per-country
   pills, sourced from EsimPlanCurator::regionalPlansCoveringCountry().
   Compact tiles so they don't compete with the main purchase form. */
.regional-upsell-strip {
    margin-top: 22px;
    padding: 16px 18px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.regional-upsell-strip h4 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin: 0 0 4px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.regional-upsell-strip h4 i { color: #ffca20; font-size: 12px; }

.regional-upsell-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12.5px;
    margin: 0 0 12px;
}

.regional-upsell-list {
    display: grid;
    gap: 8px;
}

.regional-upsell-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.18s ease;
}

.regional-upsell-tile:hover {
    border-color: rgba(255, 202, 32, 0.45);
    background: rgba(255, 202, 32, 0.06);
    color: #fff;
    transform: translateY(-1px);
}

/* Region mini-map: small rectangular thumbnail showing the bucket
   territory in Crypton yellow against a faint world outline. Same
   asset family as the wizard region cards but rendered at compact
   tile size. The drop-shadow gives the highlighted region a subtle
   glow against the dark tile background so it reads at a glance. */
.regional-upsell-icon {
    width: 56px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 205, 0, 0.06);
    border-radius: 6px;
    overflow: hidden;
}
.regional-upsell-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 205, 0, 0.28));
    transition: filter 0.2s ease;
}
.regional-upsell-tile:hover .regional-upsell-icon img {
    filter: drop-shadow(0 0 8px rgba(255, 205, 0, 0.55));
}
@media (prefers-reduced-motion: reduce) {
    .regional-upsell-icon img,
    .regional-upsell-tile:hover .regional-upsell-icon img {
        transition: none;
    }
}

.regional-upsell-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.regional-upsell-body strong {
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
}

.regional-upsell-meta {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11.5px;
    margin-top: 2px;
}

.regional-upsell-price {
    color: #ffca20;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.regional-upsell-price .usd-equiv {
    display: block;
    color: rgba(255, 202, 32, 0.55);
    font-weight: 500;
    font-size: 11px;
    text-align: right;
    margin-top: 1px;
}

@media (max-width: 768px) {
    .country-detail-grid { grid-template-columns: 1fr; }
    .country-info-card { position: static; max-width: 420px; margin: 0 auto; z-index: auto; }
    .country-info-card .country-flag-large { max-width: 180px; }
    .plan-pill-content { font-size: 14px; }
    .plan-pill-content .dot { margin: 0 4px; }
}
