/**
 * SmartRoam Multi-Provider Widgets Stylesheet (Phase 2 UX Layer)
 * Supports [esim_plan_finder] and [esim_pricing]
 */

:root {
  --sr-bg-card: #111113;
  --sr-bg-card-hover: #18181b;
  --sr-bg-surface: #18181b;
  --sr-border: #27272a;
  --sr-border-subtle: #1f1f23;
  --sr-border-focus: #3f3f46;
  --sr-text-primary: #ffffff;
  --sr-text-secondary: #d4d4d8;
  --sr-text-muted: #a1a1aa;
  --sr-text-dim: #71717a;
  --sr-orange: #ff6900;
  --sr-orange-dark: #c2410c;
  --sr-orange-glow: rgba(255, 105, 0, 0.15);
  --sr-orange-border: rgba(255, 105, 0, 0.35);
  --sr-cyan: #0ea5e9;
  --sr-cyan-dark: #0284c7;
  --sr-cyan-glow: rgba(14, 165, 233, 0.15);
  --sr-cyan-border: rgba(14, 165, 233, 0.35);
  --sr-green: #22c55e;
  --sr-green-glow: rgba(34, 197, 94, 0.15);
  --sr-green-border: rgba(34, 197, 94, 0.35);
  --sr-amber: #f59e0b;
  --sr-amber-glow: rgba(245, 158, 11, 0.15);
  --sr-amber-border: rgba(245, 158, 11, 0.35);
  --sr-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Container */
.esim-finder-container,
.smartroam-pricing-container {
  width: 100%;
  max-width: 960px;
  min-width: 0;
  margin: 32px auto;
  padding: 28px 24px;
  background: var(--sr-bg-surface);
  border-radius: 14px;
  border: 1px solid var(--sr-border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  font-family: var(--sr-font-family);
  box-sizing: border-box;
  color: var(--sr-text-primary);
  contain: layout style;
}

.esim-finder-container *,
.smartroam-pricing-container * {
  box-sizing: border-box;
}

/* Hero Header */
.finder-hero-header {
  text-align: center;
  margin-bottom: 24px;
}

.finder-hero-badge-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.finder-badge {
  display: inline-block;
  background: var(--sr-orange-glow);
  color: var(--sr-orange);
  border: 1px solid var(--sr-orange-border);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .finder-hero-badge-row {
    min-height: 36px;
  }

  .finder-hero-badge-row .sr-pwa-install-pill {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

.finder-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--sr-text-primary);
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.finder-subtitle {
  font-size: 0.92rem;
  color: var(--sr-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Search Bar */
.input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 14px;
  border: 1.5px solid var(--sr-border-focus);
  border-radius: 10px;
  position: relative;
  background: #09090b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: var(--sr-orange);
  box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.2);
}

.selected-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.selected-tags:empty {
  display: none;
}

.country-tag {
  background: #252b36;
  color: #ffffff;
  border: 1px solid var(--sr-orange);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: srTagIn 0.15s ease-out;
}

.country-tag .tag-flag {
  font-size: 1rem;
  line-height: 1;
}

.country-tag .tag-name {
  line-height: 1.2;
}

.country-tag .tag-remove-cross {
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
  font-size: 1.15rem;
  color: var(--sr-text-muted);
  margin-left: 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.country-tag .tag-remove-cross:hover {
  color: #ffffff;
  transform: scale(1.2);
}

@keyframes srTagIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#country-search {
  border: none;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 6px;
  font: inherit;
  font-size: max(1rem, 1em);
  line-height: 1.3;
  color: var(--sr-text-primary);
  background: transparent;
}

#country-search:focus-visible {
  outline: 2px solid var(--sr-orange, #ff6900);
  outline-offset: 2px;
  border-radius: 6px;
}

#country-search::placeholder {
  color: var(--sr-text-dim);
  opacity: 1;
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #18181b;
  border: 1px solid var(--sr-border-focus);
  border-radius: 10px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.dropdown-item {
  padding: 12px 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid var(--sr-border);
  font-size: 0.92rem;
  color: var(--sr-text-secondary);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.is-active {
  background: var(--sr-orange-glow);
  color: var(--sr-orange);
}

/* Quick destination pills */
.quick-destinations {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.quick-label {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sr-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.esim-finder-container .popular-pill,
.esim-finder-container .quick-pill,
.esim-finder-container .sr-destination-pill,
.quick-destinations [data-region],
.quick-destinations [data-country],
.quick-destinations [data-iso],
.popular-pill,
.quick-pill,
.sr-destination-pill {
  background: #111113;
  border: 1px solid var(--sr-border);
  box-shadow: none;
  color: var(--sr-text-secondary);
  flex: 0 0 auto;
  width: auto;
  min-height: 32px;
  height: auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer !important;
  pointer-events: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

@media (hover: hover) {
  .esim-finder-container .popular-pill:hover,
  .esim-finder-container .quick-pill:hover,
  .esim-finder-container .sr-destination-pill:hover,
  .popular-pill:hover,
  .quick-pill:hover,
  .sr-destination-pill:hover {
    border-color: var(--sr-orange);
    color: var(--sr-orange);
    background: var(--sr-orange-glow);
  }
}

.esim-finder-container .popular-pill.active,
.esim-finder-container .quick-pill.active,
.esim-finder-container .sr-destination-pill.active,
.esim-finder-container .popular-pill[aria-pressed="true"],
.esim-finder-container .quick-pill[aria-pressed="true"],
.esim-finder-container .sr-destination-pill[aria-pressed="true"],
.popular-pill.active,
.quick-pill.active,
.sr-destination-pill.active,
.popular-pill[aria-pressed="true"],
.quick-pill[aria-pressed="true"],
.sr-destination-pill[aria-pressed="true"] {
  background: var(--sr-orange-glow);
  border-color: var(--sr-orange);
  color: var(--sr-orange);
}

.esim-finder-container .popular-pill:focus:not(:focus-visible),
.esim-finder-container .quick-pill:focus:not(:focus-visible),
.esim-finder-container .sr-destination-pill:focus:not(:focus-visible),
.popular-pill:focus:not(:focus-visible),
.quick-pill:focus:not(:focus-visible),
.sr-destination-pill:focus:not(:focus-visible) {
  outline: none;
}

/* Top-Mounted Interactive Filter Bar */
.finder-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--sr-border);
}

.mobile-filter-toolbar {
  display: none;
}

.mobile-filters-toggle-btn {
  background: #181b20;
  border: 1px solid #2a2f38;
  color: #ffffff;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.mobile-filters-toggle-btn.active,
.mobile-filters-toggle-btn[aria-expanded="true"] {
  background: #252b36;
  border-color: #ff6900;
  color: #ffffff;
}

.finder-filter-drawer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-row-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 120px;
  flex-shrink: 0;
}

.filter-pills-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Interactive Filter Pill Buttons & Currency Switcher (Standardized Unified Design) */
.filter-pill-btn,
.currency-btn {
  background: #181b20;
  border: 1px solid #2a2f38;
  box-shadow: none;
  color: var(--sr-text-secondary, #d4d4d8);
  min-height: 38px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

@media (hover: hover) {
  .filter-pill-btn:hover,
  .currency-btn:hover {
    border-color: #3f4756;
    color: #ffffff;
    background: #20242b;
  }
}

/* Active State for all pills: Plan Type, Allowance, Validity, Currency */
.filter-pill-btn.active,
.currency-btn.active {
  background: #252b36;
  border: 1px solid #ff7a00;
  color: #ffffff;
  font-weight: 700;
}

/* Currency Switcher Container */
.currency-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  padding: 0;
}

/* Progressive Disclosure Controls Bar & Secondary Filter Bar */
.sr-planner-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 18px;
}

.sr-top-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: #121215;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 10px 14px;
}

.sr-control-left,
.sr-control-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.sr-type-pill,
.sr-data-chip {
  min-height: 44px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.sr-compact-currency .currency-btn {
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sr-sort-select {
  box-sizing: border-box;
  width: auto;
  min-width: 135px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 34px 8px 12px;
  background-color: #121215;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%23cbd5e1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #27272a;
  border-radius: 8px;
  box-shadow: none;
  color: #ffffff;
  font: inherit;
  font-size: max(1rem, 1em);
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.sr-sort-select:hover,
.sr-sort-select:focus {
  border-color: #ff6900;
}

.sr-sort-select:focus-visible {
  outline: 2px solid var(--sr-orange, #ff6900);
  outline-offset: 2px;
}

.sr-secondary-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: #121215;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 10px 14px;
}

.sr-planner-controls-wrap.is-expanded .sr-secondary-filter-bar {
  display: flex;
}

.sr-data-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.sr-search-filter-wrap {
  flex: 0 1 260px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.sr-plan-search-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  background-color: #0b0d11;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #ffffff;
  font: inherit;
  font-size: max(1rem, 1em);
  outline: none;
  transition: border-color 0.15s ease;
}

.sr-plan-search-input::placeholder {
  color: #94a3b8;
}

.sr-plan-search-input:focus {
  border-color: #ff6900;
}

.sr-plan-search-input:focus-visible {
  outline: 2px solid var(--sr-orange, #ff6900);
  outline-offset: 2px;
}

.sr-view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.sr-view-all-btn {
  min-height: 44px;
  padding: 10px 22px;
  background: #121215;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.sr-view-all-btn:hover,
.sr-view-all-btn:focus-visible {
  border-color: #ff6900;
  color: #ff6900;
}

.sr-empty-state-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 20px;
  background: #121215;
  border: 1px solid #27272a;
  border-radius: 10px;
  color: #cbd5e1;
}

.sr-reset-filters-btn,
.reset-filters-btn {
  min-height: 44px;
  padding: 8px 18px;
  background: #121215;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.sr-reset-filters-btn:hover,
.reset-filters-btn:hover {
  border-color: #ff6900;
  color: #ff6900;
}

/* Recommendation Grid */
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-top: 24px;
  min-height: 380px;
  contain: layout style;
}

/* Plan Card Architecture */
.smartroam-plan-card {
  background: var(--sr-bg-card);
  border: 1px solid var(--sr-border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.smartroam-plan-card:hover {
  transform: translateY(-2px);
  background: var(--sr-bg-card-hover);
  border-color: var(--sr-border-focus);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Provider Specific Card Hover Accents */
.smartroam-plan-card[data-provider="mobimatter"]:hover {
  border-color: rgba(255, 105, 0, 0.5);
}

.smartroam-plan-card[data-provider="simbye"]:hover {
  border-color: rgba(14, 165, 233, 0.5);
}

.smartroam-plan-card.highlight,
.smartroam-plan-card.recommended-card {
  border: 1.5px solid #ff6900;
  box-shadow: 0 8px 24px rgba(255, 105, 0, 0.16);
}

/* Smart Ranking Badge (Top Right) */
.plan-smart-badge,
.sr-plan-badge {
  position: absolute;
  top: -11px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: #3f3f46;
  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  contain: layout style;
}

.plan-smart-badge.badge-budget,
.sr-plan-badge.badge-budget {
  background: #065f46;
  border: 1px solid #10b981;
}

.plan-smart-badge.badge-value,
.sr-plan-badge.badge-value {
  background: #9a3412;
  border: 1px solid #fb923c;
}

.plan-smart-badge.badge-midtier,
.plan-smart-badge.badge-duration,
.sr-plan-badge.badge-midtier,
.sr-plan-badge.badge-duration {
  background: #0369a1;
  border: 1px solid #38bdf8;
}

.plan-smart-badge.badge-voice,
.sr-plan-badge.badge-voice {
  background: #0e7490;
  border: 1px solid #22d3ee;
}

.plan-smart-badge.badge-unlimited,
.plan-smart-badge.badge-heavy,
.sr-plan-badge.badge-unlimited,
.sr-plan-badge.badge-heavy {
  background: #6d28d9;
  border: 1px solid #a78bfa;
}

.plan-smart-badge.badge-multi,
.plan-smart-badge.badge-network,
.sr-plan-badge.badge-multi,
.sr-plan-badge.badge-network {
  background: #4338ca;
  border: 1px solid #818cf8;
}

@media (max-width: 390px) {
  .smartroam-plan-card {
    padding-top: 24px;
  }
  .plan-smart-badge,
  .sr-plan-badge {
    font-size: 0.66rem;
    padding: 3px 8px;
    right: 12px;
  }
}

/* Header Row: Destination Flag + Provider Pill */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.card-destination-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sr-text-secondary);
}

.provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.provider-pill.provider-mobimatter {
  background: var(--sr-orange-glow);
  color: var(--sr-orange);
  border: 1px solid var(--sr-orange-border);
}

.provider-pill.provider-simbye {
  background: var(--sr-cyan-glow);
  color: #38bdf8;
  border: 1px solid var(--sr-cyan-border);
}

/* Title & Network */
.card-plan-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sr-text-primary);
  margin-bottom: 4px;
  line-height: 1.35;
}

.card-plan-network {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--sr-text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.badge-5g {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.badge-4g {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Key Specs Row: Allowance & Validity */
.card-specs-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 12px;
  background: #09090b;
  border: 1px solid var(--sr-border);
  border-radius: 8px;
  margin-bottom: 12px;
}

.spec-item-volume {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sr-text-primary);
  line-height: 1;
}

.spec-item-validity {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sr-text-muted);
}

/* Calling & Phone Number Pill */
.plan-voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
  width: 100%;
}

.plan-voice-pill.voice-included {
  background: var(--sr-cyan-glow);
  color: #38bdf8;
  border: 1px solid var(--sr-cyan-border);
}

.plan-voice-pill.data-only {
  background: rgba(255, 255, 255, 0.05);
  color: var(--sr-text-muted);
  border: 1px solid var(--sr-border);
}

/* Fair Use Transparency Badge */
.plan-fup-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.3;
}

.plan-fup-badge.throttled {
  background: var(--sr-amber-glow);
  color: #fbbf24;
  border: 1px solid var(--sr-amber-border);
}

.plan-fup-badge.unthrottled {
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Price & Promo Row */
.card-pricing-block {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--sr-border);
}

.card-price-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.smartroam-plan-card[data-provider="mobimatter"] .price-current {
  color: var(--sr-orange);
}

.smartroam-plan-card[data-provider="simbye"] .price-current {
  color: #38bdf8;
}

.price-standard {
  font-size: 1rem;
  color: var(--sr-text-dim);
  text-decoration: line-through;
}

.unit-rate-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sr-text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--sr-border);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-promo-note {
  font-size: 0.76rem;
  line-height: 1.35;
  margin-bottom: 12px;
  font-weight: 500;
}

.card-promo-note.mobimatter {
  color: #ff914d;
}

.card-promo-note.simbye {
  color: #7dd3fc;
}

/* CTA Checkout Button */
.btn-smartroam-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-smartroam-checkout.btn-mobimatter {
  background: var(--sr-orange-dark);
  color: #ffffff;
  border: 1px solid var(--sr-orange);
}

.btn-smartroam-checkout.btn-mobimatter:hover {
  background: #ea580c;
  box-shadow: 0 4px 14px var(--sr-orange-glow);
}

.btn-smartroam-checkout.btn-simbye {
  background: var(--sr-cyan-dark);
  color: #ffffff;
  border: 1px solid var(--sr-cyan);
}

.btn-smartroam-checkout.btn-simbye:hover {
  background: #0284c7;
  box-shadow: 0 4px 14px var(--sr-cyan-glow);
}

/* Card Micro Copy */
.card-micro-copy {
  display: block;
  font-size: 0.72rem;
  color: var(--sr-text-dim);
  text-align: center;
  margin-top: 8px;
  line-height: 1.3;
}

/* No Results Fallback */
.no-plans-fallback {
  text-align: center;
  padding: 36px 16px;
  color: var(--sr-text-muted);
  width: 100%;
  grid-column: 1 / -1;
  background: #111113;
  border: 1px dashed var(--sr-border-focus);
  border-radius: 12px;
}

.no-plans-fallback p {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
}

.reset-filters-btn {
  background: #27272a;
  color: #ffffff;
  border: 1px solid var(--sr-border-focus);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.reset-filters-btn:hover {
  background: #3f3f46;
  border-color: #71717a;
}

/* Footer summary */
.finder-pricing-footer {
  margin-top: 20px;
  padding: 14px 18px;
  background: #111113;
  border: 1px solid var(--sr-border);
  border-radius: 10px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--sr-text-muted);
  line-height: 1.5;
}

.finder-pricing-footer a {
  color: var(--sr-orange);
  font-weight: 700;
  text-decoration: underline;
}

.finder-pricing-footer .footer-promo-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--sr-text-secondary);
}

.finder-pricing-footer .footer-affiliate-disclosure {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--sr-text-dim, #71717a);
}

/* Toast Alert Container & Animation */
.sr-toast-container {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 90vw;
}

.sr-toast-alert {
  background: #18181b;
  color: #ffffff;
  border: 1.5px solid var(--sr-orange);
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--sr-font-family);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: srToastFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

.sr-toast-alert.toast-simbye {
  border-color: var(--sr-cyan);
}

.sr-toast-alert.sr-toast-exit {
  animation: srToastFadeOut 0.25s ease forwards;
}

@keyframes srToastFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes srToastFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}

/* Desktop Viewport (min-width: 769px): Keep filter drawer always expanded */
@media (min-width: 769px) {
  .mobile-filter-toolbar {
    display: none !important;
  }

  .finder-filter-drawer {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }
}

/* Mobile Viewport Constraints (<= 768px) */
@media (max-width: 768px) {
  .esim-finder-container,
  .smartroam-pricing-container {
    padding: 20px 14px;
    margin: 20px auto;
  }

  .finder-title {
    font-size: 1.3rem;
  }

  .finder-filter-bar {
    gap: 10px;
  }

  .mobile-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .mobile-currency-switcher {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .mobile-currency-switcher .currency-btn {
    padding: 6px 10px;
    min-height: 40px;
    font-size: 0.78rem;
  }

  .finder-filter-drawer {
    display: none;
    padding-top: 8px;
    border-top: 1px solid var(--sr-border-subtle);
  }

  .finder-filter-drawer.is-open {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .finder-currency-row {
    display: none;
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }

  .filter-row-label {
    min-width: unset;
  }

  /* Horizontal scrolling for filter pills without container breakage */
  .filter-pills-group {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .filter-pills-group::-webkit-scrollbar {
    display: none;
  }

  .filter-pill-btn,
  .currency-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.8rem;
    min-height: 40px;
  }

  .recommendation-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Progressive Disclosure Responsive Rules: Desktop (>= 768px) & Mobile (< 768px) */
@media (min-width: 768px) {
  .sr-secondary-filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sr-search-filter-wrap {
    display: block;
  }
}

@media (max-width: 767px) {
  #country-search {
    padding: 8px 2px;
  }

  .quick-destinations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 4px 0;
    box-sizing: border-box;
  }

  .quick-destinations .quick-label {
    margin-right: 2px;
  }

  .sr-planner-controls-wrap.is-expanded {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #0b0d11;
    padding: 8px 0;
  }

  .sr-top-control-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 10px;
    gap: 8px;
  }

  .sr-control-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: visible;
  }

  .sr-control-right {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sr-compact-currency {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
  }

  .sr-compact-currency .currency-btn {
    min-height: 44px;
    padding: 8px 9px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .sr-sort-select {
    flex: 1 1 auto;
    width: auto;
    min-width: 135px;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 28px 8px 10px;
    background-position: right 8px center;
  }

  .sr-secondary-filter-bar {
    padding: 8px 10px;
  }

  .sr-data-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
  }

  .sr-data-chips::-webkit-scrollbar {
    display: none;
  }

  .sr-type-pill,
  .sr-data-chip {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .sr-search-filter-wrap {
    display: none !important;
  }

  .sr-view-all-btn {
    width: 100%;
    min-height: 44px;
  }
}

/* End of 767px mobile responsive overrides */

/* Planner Page & Home Container Layout */
.sr-home-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sr-planner-hero {
  text-align: center;
  padding: 36px 0 20px 0;
}

.sr-planner-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.sr-planner-hero p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

/* Visually Hidden Accessibility Utility & Focus-Visible Outlines */
.sr-only:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

:where(
  .esim-finder-container button,
  .esim-finder-container a,
  .smartroam-pricing-container button,
  .smartroam-pricing-container a,
  .popular-pill,
  .quick-pill,
  .sr-destination-pill,
  .filter-pill-btn,
  .currency-btn,
  .btn-smartroam-checkout,
  .reset-filters-btn,
  .sr-pwa-install-btn,
  .sr-pwa-install-dismiss,
  .sr-trip-remind-btn,
  .sr-trip-date-input,
  .sr-ios-dialog-close
):focus-visible {
  outline: 2px solid var(--sr-orange, #ff6900);
  outline-offset: 2px;
}

@media (pointer: coarse) {
  :where(
    .popular-pill,
    .quick-pill,
    .sr-destination-pill,
    .filter-pill-btn,
    .currency-btn,
    .sr-sort-select,
    #country-search,
    .sr-plan-search-input,
    .reset-filters-btn,
    .sr-view-all-btn
  ) {
    min-height: 44px;
    min-width: 44px;
  }
}

@supports (content-visibility: auto) {
  .sr-latest-guides .sr-guide-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 340px;
  }
}

/* Planner PWA Install Pill, 3-Day Pre-Trip Reminder Bar & iOS Dialog */
.sr-pwa-install-pill[hidden],
.sr-trip-reminder-bar[hidden],
.sr-ios-pending-banner[hidden],
.sr-trip-remind-status[hidden] {
  display: none !important;
}

.sr-pwa-install-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 105, 0, 0.14);
  border: 1px solid rgba(255, 105, 0, 0.45);
  border-radius: 9999px;
  padding: 2px 6px 2px 10px;
  max-width: 100%;
  box-sizing: border-box;
}

.sr-pwa-install-btn {
  background: transparent;
  border: 0;
  color: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 4px;
  min-height: 36px;
  cursor: pointer;
  white-space: nowrap;
}

.sr-pwa-install-btn:hover {
  color: var(--sr-orange, #ff6900);
}

.sr-pwa-install-dismiss {
  background: transparent;
  border: 0;
  color: #a1a1aa;
  font-size: 1rem;
  line-height: 1;
  padding: 4px 6px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 9999px;
  cursor: pointer;
}

.sr-pwa-install-dismiss:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sr-ios-pending-banner {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 105, 0, 0.12);
  border: 1px solid rgba(255, 105, 0, 0.45);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
}

.sr-ios-pending-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.sr-ios-pending-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sr-trip-reminder-bar {
  margin-top: 16px;
  padding: 12px 16px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  min-width: 0;
}

.sr-trip-reminder-copy {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e4e4e7;
}

.sr-trip-reminder-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.sr-trip-date-input {
  font: inherit;
  font-size: max(1rem, 1em);
  min-height: 44px;
  padding: 8px 12px;
  background: #09090b;
  color: #ffffff;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  color-scheme: dark;
  box-sizing: border-box;
  max-width: 100%;
}

.sr-trip-remind-btn {
  min-height: 44px;
  padding: 8px 16px;
  background: var(--sr-orange, #ff6900);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.sr-trip-remind-btn[aria-disabled="true"] {
  opacity: 0.65;
  cursor: wait;
}

.sr-trip-remind-status {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: #a1a1aa;
  line-height: 1.4;
}

.sr-trip-remind-status.is-success {
  color: #34d399;
}

.sr-trip-remind-status.is-error {
  color: #f87171;
}

.sr-ios-pwa-dialog[open] {
  max-width: min(420px, calc(100vw - 32px));
  width: 100%;
  padding: 0;
  border: 1px solid #27272a;
  border-radius: 16px;
  background: #18181b;
  color: #ffffff;
  margin: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  overscroll-behavior: contain;
}

.sr-ios-pwa-dialog::backdrop {
  background: rgba(9, 9, 11, 0.78);
  overflow: hidden;
  overscroll-behavior: contain;
}

.sr-ios-pwa-dialog-inner {
  padding: 22px;
  box-sizing: border-box;
}

.sr-ios-pwa-dialog-inner h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.sr-ios-pwa-summary {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.sr-ios-pwa-steps {
  margin: 0 0 16px 0;
  padding-left: 20px;
  font-size: 0.9rem;
  color: #f4f4f5;
  line-height: 1.6;
}

.sr-ios-pwa-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.sr-ios-dialog-close {
  min-height: 44px;
  padding: 8px 18px;
  background: var(--sr-orange, #ff6900);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (pointer: coarse) {
  .sr-pwa-install-btn,
  .sr-pwa-install-dismiss {
    min-height: 44px;
    min-width: 44px;
  }
}
