.country-flow {
  max-width: 1080px;
  margin: 0 auto;
}

.selected-service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 14px 16px;
  margin-bottom: 23px;
}

.selected-service-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.selected-service-main .service-symbol {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 50%;
  flex: 0 0 auto;
}

.selected-service-main small,
.selected-service-main strong {
  display: block;
}

.selected-service-main small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 850;
}

.selected-service-main strong {
  font-size: 18px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.change-service-button {
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--blue);
  font-weight: 820;
  padding: 9px 15px;
}

.country-heading h2 {
  font-size: clamp(28px, 4vw, 45px);
  letter-spacing: -.05em;
  line-height: 1.03;
  margin: 0 0 8px;
}

.country-heading p {
  color: var(--muted);
  margin: 0 0 20px;
}

.country-search-shell {
  max-width: 720px;
  margin-bottom: 15px;
}

.country-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding: 3px 5px 3px 0;
}

.country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 17px;
  padding: 14px 15px;
  text-align: left;
}

.country-option:hover {
  border-color: var(--mint);
  background: var(--surface-2);
}

.country-option .country-main {
  min-width: 0;
}

.country-option .flag {
  width: 38px;
  height: 28px;
  font-size: 25px;
}

.country-option .flag-image {
  width: 38px;
  height: 28px;
}

.country-option .price-amount {
  font-size: 14px;
}

.flag-fallback[hidden] {
  display: none;
}

.country-copy {
  min-width: 0;
}

.country-copy strong,
.country-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-copy strong {
  font-size: 15px;
}

.country-copy small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.country-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.country-sort {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.country-sort summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 9px 13px;
  font-size: 13px;
  white-space: nowrap;
}

.country-sort summary::-webkit-details-marker {
  display: none;
}

.country-sort[open] summary {
  border-color: var(--mint);
}

.country-sort-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 8;
  width: 220px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.country-sort-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  padding: 10px 11px;
  text-align: left;
  font-size: 13px;
}

.country-sort-option:hover,
.country-sort-option.selected {
  background: var(--surface-2);
  color: var(--mint-dark);
  font-weight: 750;
}

@media (max-width: 570px) {
  .country-list {
    grid-template-columns: 1fr;
  }

  .selected-service-card {
    padding: 12px;
  }

  .country-heading {
    display: block;
  }

  .country-sort {
    margin: 0 0 15px;
  }

  .country-sort-menu {
    left: 0;
    right: auto;
  }

  .change-service-button {
    padding: 8px 12px;
  }

  .country-option {
    padding: 13px;
  }

  .country-option .price-amount {
    font-size: 14px;
  }
}

.price-flow {
  max-width: 760px;
  margin: 0 auto;
}

.price-selection-card {
  margin-bottom: 15px;
}

.price-selection-card .selected-service-main {
  gap: 9px;
}

.price-selection-card .selected-service-main .flag {
  width: 34px;
  height: 24px;
  font-size: 22px;
}

.price-selection-card .selected-service-main .flag-image {
  width: 34px;
  height: 24px;
}

.route-guidance,
.refund-banner,
.route-mode-card,
.route-explorer,
.hold-card,
.next-sms-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.route-guidance {
  padding: 15px 16px;
  margin-bottom: 15px;
  background: #e3f8f2;
}

.route-guidance > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.route-guidance p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.route-guidance p b {
  color: var(--text);
}

.refund-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-color: transparent;
  background: #e8f9f3;
}

.refund-banner > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #159f91;
  color: #fff;
  font-weight: 900;
}

.refund-banner strong,
.refund-banner p {
  display: block;
}

.refund-banner strong {
  color: var(--mint-dark);
  font-size: 13px;
}

.refund-banner p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.price-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.price-section-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.04em;
}

.price-section-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.route-mode-card {
  padding: 15px 18px;
  margin-bottom: 12px;
  border-color: var(--mint);
  background: #e3f8f2;
}

.route-mode-card strong,
.route-mode-card small {
  display: block;
}

.route-mode-card strong {
  font-size: 14px;
}

.route-mode-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.route-explorer {
  padding: 17px;
  margin-bottom: 12px;
}

.route-explorer-header,
.route-quality-row,
.route-explorer-value,
.route-rail-labels,
.next-sms-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-explorer-header h3 {
  margin: 0;
  font-size: 18px;
}

.route-explorer-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 8px 10px;
  background: #e5f8f1;
  color: #16866f;
  font-size: 10px;
  font-weight: 850;
}

.live-pill > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #159f91;
}

.route-quality-row {
  margin-top: 15px;
}

.route-quality-row > span:last-child,
.route-quality-hint {
  color: var(--muted);
  font-size: 11px;
}

.quality-badge {
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .03em;
}

.quality-low {
  background: #e9d8dd;
  color: #7f3346;
}

.quality-mid {
  background: #f1e5c9;
  color: #86601b;
}

.quality-high {
  background: #dff3ea;
  color: #176c55;
}

.route-explorer-value {
  align-items: end;
  margin-top: 18px;
}

.route-explorer-value small,
.hold-card > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

.route-explorer-value strong {
  display: block;
  margin-top: 3px;
  color: var(--mint);
  font-size: 34px;
  letter-spacing: -.04em;
}

.route-explorer-value > div:last-child {
  text-align: right;
}

.route-explorer-value b,
.route-explorer-value span {
  display: block;
}

.route-explorer-value b {
  font-size: 20px;
}

.route-explorer-value span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.route-quality-hint {
  margin: 3px 0 0;
}

.route-rail {
  position: relative;
  height: 44px;
  margin: 8px 4px 0;
  cursor: pointer;
  outline: 0;
}

.route-rail:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(21, 159, 145, .18);
}

.route-rail-segments,
.route-rail-fill {
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.route-rail-segments {
  display: flex;
}

.route-rail-segments span {
  flex: 1;
  margin-right: 3px;
}

.route-rail-segments span:nth-child(1) {
  background: #d8b5bf;
}

.route-rail-segments span:nth-child(2) {
  background: #d9c99c;
}

.route-rail-segments span:nth-child(3) {
  margin-right: 0;
  background: #8cc8bc;
}

.route-rail-fill {
  z-index: 1;
  width: 4%;
  background: var(--mint);
}

.route-rail > i {
  position: absolute;
  z-index: 2;
  top: 14px;
  width: 2px;
  height: 16px;
  border-radius: 2px;
  background: #9aada9;
}

.route-rail-thumb {
  position: absolute;
  z-index: 3;
  top: 5px;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(43, 78, 112, .22);
}

.route-rail-thumb.quality-low {
  background: #c75566;
}

.route-rail-thumb.quality-mid {
  background: #d58a31;
}

.route-rail-thumb.quality-high {
  background: #249b70;
}

.route-rail-thumb > span {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
}

.route-rail-labels {
  margin: 0 4px;
  color: var(--muted);
  font-size: 11px;
}

.quick-price-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.quick-price {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  padding: 9px 5px;
  text-align: center;
}

.quick-price:hover,
.quick-price.selected {
  border-color: var(--mint);
  background: #e3f8f2;
}

.quick-price strong,
.quick-price small {
  display: block;
}

.quick-price strong {
  font-size: 13px;
}

.quick-price.selected strong {
  color: var(--mint-dark);
}

.quick-price small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.hold-card {
  padding: 18px;
  margin-bottom: 10px;
}

.hold-card > strong {
  display: block;
  margin-top: 4px;
  font-size: 32px;
  letter-spacing: -.04em;
}

.hold-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.next-sms-card {
  padding: 15px 17px;
  margin-bottom: 10px;
}

.next-sms-card strong,
.next-sms-card small {
  display: block;
}

.next-sms-card strong {
  font-size: 14px;
}

.next-sms-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.sms-toggle {
  position: relative;
  width: 52px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #b6c8c8;
  padding: 0;
}

.sms-toggle > span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(43, 78, 112, .18);
  transition: transform .18s ease;
}

.sms-toggle.on {
  background: #31665d;
}

.sms-toggle.on > span {
  transform: translateX(22px);
  background: #a5f1e2;
}

.price-buy-button {
  margin-top: 4px;
  border-radius: 17px;
  padding: 16px;
  font-size: 16px;
}

.price-loading-card {
  min-height: 180px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

@media (max-width: 570px) {
  .price-flow {
    max-width: none;
  }

  .price-selection-card .selected-service-main strong {
    font-size: 15px;
  }

  .price-section-heading h2 {
    font-size: 25px;
  }

  .route-explorer {
    padding: 15px;
  }

  .route-explorer-value strong {
    font-size: 31px;
  }

  .quick-price-row {
    gap: 5px;
  }

  .quick-price strong {
    font-size: 11px;
  }
}
