:root {
  --rm-selection-primary: var(--rm-home-primary, #2f6fed);
  --rm-selection-primary-strong: var(--rm-home-primary-strong, #1f54c4);
  --rm-selection-primary-soft: var(--rm-home-primary-soft, #eaf1ff);
  --rm-selection-page: var(--rm-home-page, #f7f9fc);
  --rm-selection-surface: var(--rm-home-surface, #ffffff);
  --rm-selection-text: var(--rm-home-text, #191d26);
  --rm-selection-text-secondary: var(--rm-home-text-secondary, #4b5566);
  --rm-selection-text-tertiary: var(--rm-home-text-tertiary, #6a7383);
  --rm-selection-border: var(--rm-home-border-defined, #d8e1ee);
  --rm-selection-border-soft: var(--rm-home-border, #e7ebf3);
  --rm-selection-danger: #b83a20;
  --rm-selection-radius: 18px;
  --rm-selection-page-gutter: 48px;
  --rm-selection-text-caption: 11px;
  --rm-selection-text-support: 12px;
  --rm-selection-text-body: 14px;
  --rm-selection-text-card-title: 18px;
  --rm-selection-text-section-title: 23px;
}

.rm-product-selection {
  min-height: 100%;
  background: var(--rm-selection-page);
  color: var(--rm-selection-text);
}

.rm-selection-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--rm-selection-page-gutter);
}

.rm-selection-hero {
  border-bottom: 1px solid #dfe8f7;
  background: #eef4ff;
}

.rm-selection-hero .rm-selection-container {
  padding-block: 28px 38px;
}

.rm-selection-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--rm-selection-text-tertiary);
  font-size: 12px;
  font-weight: 650;
}

.rm-selection-breadcrumb a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.rm-selection-breadcrumb a:hover {
  color: var(--rm-selection-primary-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rm-selection-hero-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 22px;
}

.rm-selection-country-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.rm-selection-country-flag,
.rm-selector-product-flag {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  place-items: center;
}

.rm-selection-country-flag {
  width: 72px;
  height: 72px;
  border: 1px solid #dbe6f8;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(37, 61, 110, 0.08);
}

.rm-selection-country-flag img {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 31px;
  border-radius: 4px;
  object-fit: cover;
}

.rm-selection-flag-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  background: #edf2fb;
  color: #69758a;
  font-size: 13px;
  font-weight: 800;
  place-items: center;
}

.rm-selection-flag-fallback.is-covered {
  visibility: hidden;
}

.rm-selection-country-identity h1 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.rm-selection-country-identity h1 > span:last-child {
  color: var(--rm-selection-primary);
}

.rm-selection-country-identity p {
  max-width: 56ch;
  margin-top: 8px;
  color: var(--rm-selection-text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.rm-selection-hero-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.rm-selection-family-count {
  color: var(--rm-selection-text-tertiary);
  font-size: 12px;
}

.rm-selection-family-count strong {
  color: var(--rm-selection-text);
  font-size: 15px;
}

.rm-selection-change-country,
.rm-selection-button,
.rm-selection-retry {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding-inline: 16px;
  font-size: 13px;
  font-weight: 750;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.rm-selection-change-country {
  gap: 8px;
  border-color: #c8d8f2;
  background: #fff;
  color: var(--rm-selection-primary-strong);
}

.rm-selection-change-country:hover {
  border-color: #8eafe8;
  background: #f8fbff;
}

.rm-selection-workspace {
  padding-block: 34px 0;
}

.rm-selection-condition-panel {
  border: 1px solid var(--rm-selection-border);
  border-radius: var(--rm-selection-radius);
  background: var(--rm-selection-surface);
  padding: 26px 28px 28px;
  box-shadow: 0 8px 24px rgba(37, 61, 110, 0.05);
}

.rm-selection-condition-head,
.rm-selection-products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.rm-selection-condition-head h2,
.rm-selection-products-head h2 {
  font-size: var(--rm-selection-text-section-title);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.rm-selection-condition-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin-top: 24px;
}

.rm-selection-days-field > label,
.rm-selection-plan-field > legend,
.rm-selection-data-field > legend {
  display: block;
  margin-bottom: 9px;
  color: var(--rm-selection-text-secondary);
  font-size: var(--rm-selection-text-support);
  font-weight: 800;
}

.rm-selection-plan-field,
.rm-selection-data-field {
  min-width: 0;
  border: 0;
}

.rm-selection-data-field {
  grid-column: 1 / -1;
}

.rm-selection-select-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 66px;
  overflow: hidden;
  border: 1px solid var(--rm-selection-border);
  border-radius: 15px;
  background: #f8faff;
  padding-inline: 16px 13px;
  color: var(--rm-selection-primary);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.rm-selection-select-wrap:hover {
  border-color: #aebfd9;
  background: #fff;
}

.rm-selection-select-wrap:focus-within {
  border-color: var(--rm-selection-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.rm-selection-select-wrap select {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  opacity: 0;
  cursor: pointer;
}

.rm-selection-select-wrap select:disabled {
  cursor: not-allowed;
}

.rm-selection-select-wrap:has(select:disabled) {
  opacity: 0.6;
}

.rm-selection-select-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin-left: 12px;
  color: var(--rm-selection-text);
}

.rm-selection-select-copy strong {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.rm-selection-select-action {
  color: var(--rm-selection-primary-strong);
  font-size: var(--rm-selection-text-support);
  font-weight: 750;
}

.rm-selection-select-chevron {
  margin-left: 6px;
  pointer-events: none;
}

.rm-selection-select-wrap select:focus-visible {
  outline: 0;
}

.rm-selection-plan-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rm-selection-plan-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.rm-selection-plan-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.rm-selection-plan-option span {
  display: inline-flex;
  min-width: 92px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rm-selection-border);
  border-radius: 12px;
  background: #fff;
  padding-inline: 18px;
  color: var(--rm-selection-text-secondary);
  font-size: var(--rm-selection-text-body);
  font-weight: 800;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  touch-action: manipulation;
}

.rm-selection-plan-option:hover span {
  border-color: #aebfd9;
  background: #fbfcff;
  color: var(--rm-selection-text);
}

.rm-selection-plan-option input:checked + span {
  border-color: var(--rm-selection-primary);
  background: #f1f6ff;
  color: var(--rm-selection-primary-strong);
  box-shadow: inset 0 0 0 1px var(--rm-selection-primary);
}

.rm-selection-plan-option input:focus-visible + span {
  outline: 3px solid rgba(47, 111, 237, 0.3);
  outline-offset: 2px;
}

.rm-selection-plan-options[aria-busy="true"] {
  cursor: progress;
}

.rm-selection-plan-guidance {
  margin-top: 12px;
  border: 1px solid #c4d3e9;
  border-radius: 14px;
  background: #f8faff;
  padding: 14px 16px 16px;
}

.rm-selection-plan-guidance[hidden] {
  display: none;
}

.rm-selection-plan-message {
  margin: 0;
  color: var(--rm-selection-text);
  font-size: var(--rm-selection-text-body);
  font-weight: 800;
  line-height: 1.5;
}

.rm-selection-alternative-label {
  margin: 10px 0 0;
  color: var(--rm-selection-text-tertiary);
  font-size: var(--rm-selection-text-support);
  font-weight: 750;
}

.rm-selection-alternative-days {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.rm-selection-alternative-day,
.rm-selection-plan-retry {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8cae5;
  border-radius: 10px;
  background: #fff;
  padding-inline: 15px;
  color: var(--rm-selection-primary-strong);
  font-size: 13px;
  font-weight: 800;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  touch-action: manipulation;
}

.rm-selection-alternative-day:hover,
.rm-selection-plan-retry:hover {
  border-color: var(--rm-selection-primary);
  background: var(--rm-selection-primary-soft);
}

.rm-selection-plan-retry {
  margin-top: 12px;
}

.rm-selection-data-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
}

.rm-selection-data-option {
  display: flex;
  min-width: 0;
  min-height: 70px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--rm-selection-border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  color: var(--rm-selection-text);
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.rm-selection-data-option:hover {
  border-color: #aebfd9;
  background: #fbfcff;
}

.rm-selection-data-option[aria-pressed="true"] {
  border-color: var(--rm-selection-primary);
  background: #f1f6ff;
  box-shadow: inset 0 0 0 1px var(--rm-selection-primary);
}

.rm-selection-data-type {
  color: var(--rm-selection-text-tertiary);
  font-size: var(--rm-selection-text-caption);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rm-selection-data-name {
  margin-top: 2px;
  font-size: var(--rm-selection-text-body);
  font-weight: 800;
  line-height: 1.35;
}

.rm-selection-data-price {
  margin-top: 3px;
  color: var(--rm-selection-primary-strong);
  font-size: var(--rm-selection-text-caption);
  font-weight: 700;
}

.rm-selection-data-status {
  min-height: 18px;
  margin-top: 8px;
  color: var(--rm-selection-text-tertiary);
  font-size: var(--rm-selection-text-support);
}

.rm-selection-products {
  padding-block: 38px 72px;
}

.rm-selection-product-count {
  flex: 0 0 auto;
  color: var(--rm-selection-primary-strong);
  font-size: 13px;
  font-weight: 800;
}

.rm-selection-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rm-selection-product-loading {
  grid-column: 1 / -1;
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--rm-selection-border);
  border-radius: var(--rm-selection-radius);
  background: #fff;
  color: var(--rm-selection-text-tertiary);
  font-size: 13px;
}

.rm-selection-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #d8e3f5;
  border-top-color: var(--rm-selection-primary);
  border-radius: 50%;
  animation: rm-selection-spin 700ms linear infinite;
}

@keyframes rm-selection-spin {
  to { transform: rotate(360deg); }
}

.rm-selector-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  min-height: 214px;
  overflow: hidden;
  border: 1px solid var(--rm-selection-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(37, 61, 110, 0.055);
}

.rm-selector-ticket::before,
.rm-selector-ticket::after {
  position: absolute;
  left: calc(100% - 170px);
  z-index: 2;
  width: 20px;
  height: 20px;
  border: 1px solid var(--rm-selection-border);
  border-radius: 50%;
  background: var(--rm-selection-page);
  content: "";
  transform: translateX(-50%);
}

.rm-selector-ticket::before {
  top: -11px;
}

.rm-selector-ticket::after {
  bottom: -11px;
}

.rm-selector-ticket-main {
  min-width: 0;
  padding: 22px 23px;
}

.rm-selector-product-country {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.rm-selector-product-flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f6fd;
}

.rm-selector-product-flag img {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
}

.rm-selector-product-country-name {
  max-width: 140px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rm-selector-product-label,
.rm-selector-product-extra-labels > span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  background: var(--rm-selection-primary-soft);
  padding-inline: 8px;
  color: var(--rm-selection-primary-strong);
  font-size: 10px;
  font-weight: 750;
}

.rm-selector-product-extra-labels {
  display: contents;
}

.rm-selector-product-extra-labels > span {
  background: #f2f4f8;
  color: var(--rm-selection-text-secondary);
}

.rm-selector-product-title {
  margin-top: 16px;
  font-size: var(--rm-selection-text-card-title);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.rm-selector-product-description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 38px;
  margin-top: 7px;
  color: var(--rm-selection-text-tertiary);
  font-size: var(--rm-selection-text-body);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rm-selector-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
  color: var(--rm-selection-text-secondary);
  font-size: var(--rm-selection-text-support);
  font-weight: 700;
}

.rm-selector-product-meta li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rm-selector-product-meta li::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #90a7ca;
  content: "";
}

.rm-selector-ticket-stub {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  border-left: 1px dashed #cbd6e7;
  padding: 21px 18px;
}

.rm-selector-product-price-label {
  min-height: 18px;
  color: var(--rm-selection-danger);
  font-size: var(--rm-selection-text-caption);
  font-weight: 750;
}

.rm-selector-product-price {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.rm-selector-product-actions {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.rm-selector-product-actions .rm-selection-button {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  padding-inline: 8px;
  font-size: var(--rm-selection-text-support);
}

.rm-selection-button-primary {
  background: var(--rm-selection-primary);
  color: #fff;
}

.rm-selection-button-primary:hover {
  background: var(--rm-selection-primary-strong);
}

.rm-selection-button-soft {
  background: var(--rm-selection-primary-soft);
  color: var(--rm-selection-primary-strong);
}

.rm-selection-button-soft:hover {
  background: #dce8ff;
}

.rm-selection-button-ghost {
  border-color: var(--rm-selection-border);
  background: #fff;
  color: var(--rm-selection-text-secondary);
}

.rm-selection-button-ghost:hover {
  border-color: #aebfd9;
  background: #fbfcff;
  color: var(--rm-selection-text);
}

.rm-selection-product-state {
  display: grid;
  min-height: 220px;
  margin-top: 18px;
  border: 1px dashed #bfcce0;
  border-radius: var(--rm-selection-radius);
  color: var(--rm-selection-text-tertiary);
  text-align: center;
  place-items: center;
  align-content: center;
  gap: 8px;
}

.rm-selection-product-state[hidden] {
  display: none;
}

.rm-selection-product-state strong {
  color: var(--rm-selection-text);
  font-size: 16px;
}

.rm-selection-product-state p {
  font-size: 12px;
}

.rm-selection-retry {
  margin-top: 7px;
  border-color: var(--rm-selection-border);
  background: #fff;
  color: var(--rm-selection-primary-strong);
}

.rm-selection-dialog {
  width: min(calc(100% - 32px), 760px);
  max-height: calc(100dvh - 112px);
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--rm-selection-text);
  box-shadow: 0 28px 90px rgba(13, 23, 45, 0.28);
  margin: clamp(72px, 10vh, 104px) auto auto;
}

.rm-selection-dialog:not([open]) {
  display: none;
}

.rm-selection-dialog::backdrop {
  background: rgba(13, 23, 45, 0.62);
}

.rm-selection-dialog-shell {
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
}

.rm-selection-dialog-shell.rm-detail-dialog-shell {
  display: grid;
  height: min(calc(100dvh - 112px), 760px);
  max-height: min(calc(100dvh - 112px), 760px);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
}

.rm-selection-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.rm-selection-dialog-head h2 {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.rm-selection-dialog-head p {
  margin-top: 5px;
  color: var(--rm-selection-text-tertiary);
  font-size: var(--rm-selection-text-support);
}

.rm-selection-dialog-head.rm-detail-dialog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--rm-selection-border-soft);
  padding: 22px 28px 20px;
}

.rm-detail-dialog-heading {
  min-width: 0;
}

.rm-detail-dialog-heading h2 {
  overflow-wrap: anywhere;
}

.rm-detail-dialog-desktop-price,
.rm-detail-dialog-mobile-price {
  display: grid;
  gap: 2px;
}

.rm-detail-dialog-desktop-price {
  min-width: 104px;
  text-align: right;
}

.rm-detail-dialog-desktop-price span,
.rm-detail-dialog-mobile-price span {
  color: var(--rm-selection-text-tertiary);
  font-size: var(--rm-selection-text-caption);
  font-weight: 750;
}

.rm-detail-dialog-desktop-price strong,
.rm-detail-dialog-mobile-price strong {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.rm-selection-detail-purchase > .rm-detail-dialog-mobile-price {
  display: none;
}

.rm-selection-icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--rm-selection-text-secondary);
  place-items: center;
}

.rm-selection-icon-button:hover {
  background: var(--rm-selection-page);
  color: var(--rm-selection-text);
}

.rm-selection-country-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  margin-top: 22px;
  border: 1px solid var(--rm-selection-border);
  border-radius: 13px;
  padding-left: 15px;
  color: var(--rm-selection-text-tertiary);
}

.rm-selection-country-search:focus-within {
  border-color: var(--rm-selection-primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.rm-selection-country-search input {
  min-width: 0;
  min-height: 50px;
  border: 0;
  outline: 0;
  padding-inline: 11px;
}

.rm-selection-country-search button {
  min-width: 76px;
  min-height: 44px;
  margin-right: 4px;
  border-radius: 10px;
  background: var(--rm-selection-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.rm-selection-country-tabs {
  display: flex;
  gap: 5px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.rm-selection-country-tabs button {
  min-height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--rm-selection-border-soft);
  border-radius: 999px;
  background: #fff;
  padding-inline: 13px;
  color: var(--rm-selection-text-secondary);
  font-size: 11px;
  font-weight: 750;
}

.rm-selection-country-tabs button[aria-selected="true"] {
  border-color: var(--rm-selection-primary);
  background: var(--rm-selection-primary);
  color: #fff;
}

.rm-selection-country-status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--rm-selection-text-tertiary);
  font-size: 11px;
}

.rm-selection-country-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: min(52vh, 430px);
  overflow-y: auto;
}

.rm-selection-country-list[aria-busy="true"] {
  min-height: 180px;
  opacity: 0.55;
}

.rm-selection-country-list a {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--rm-selection-border-soft);
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 750;
}

.rm-selection-country-list a:hover {
  border-color: #aebfd9;
  background: #f8faff;
}

.rm-selection-country-list img {
  width: 28px;
  height: 21px;
  border-radius: 3px;
  object-fit: cover;
}

.rm-selection-country-list span:last-child {
  margin-left: auto;
  color: var(--rm-selection-primary);
}

.rm-selection-detail-country {
  color: var(--rm-selection-primary-strong) !important;
  font-weight: 750;
}

.rm-selection-detail-loading {
  display: grid;
  min-height: 240px;
  color: var(--rm-selection-text-tertiary);
  font-size: 13px;
  place-items: center;
}

.rm-detail-dialog-shell > .rm-selection-detail-loading {
  min-height: 0;
  padding: 28px;
}

.rm-detail-dialog-content {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.rm-detail-dialog-content[hidden] {
  display: none;
}

.rm-detail-dialog-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 28px 28px;
  scroll-padding-block: 24px;
}

.rm-selection-detail-description {
  margin-top: 18px;
  color: var(--rm-selection-text-secondary);
  font-size: var(--rm-selection-text-body);
  line-height: 1.65;
}

.rm-detail-dialog-scroll > .rm-selection-detail-description {
  margin-top: 0;
}

.rm-selection-detail-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}

.rm-selection-detail-specs > div {
  display: grid;
  min-height: 74px;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 11px;
  border: 1px solid var(--rm-selection-border-soft);
  border-radius: 13px;
  background: var(--rm-selection-page);
  padding: 13px;
}

.rm-selection-detail-specs dt {
  color: var(--rm-selection-text-tertiary);
  font-size: var(--rm-selection-text-caption);
  font-weight: 750;
}

.rm-selection-detail-specs dd {
  margin-top: 2px;
  font-size: var(--rm-selection-text-body);
  font-weight: 800;
}

.rm-selection-detail-coverage {
  margin-top: 25px;
  border: 1px solid #cad8f2;
  border-radius: 16px;
  background: #f4f7ff;
  padding: 18px;
}

.rm-selection-detail-coverage-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.rm-selection-detail-coverage-icon {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #e4edff;
  color: var(--rm-selection-primary);
  place-items: center;
}

.rm-selection-detail-coverage-head h3 {
  color: var(--rm-selection-text);
  font-size: 17px;
  font-weight: 850;
}

.rm-selection-detail-coverage-head p {
  margin-top: 3px;
  color: var(--rm-selection-text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.rm-selection-detail-coverage-count {
  border: 1px solid #c5d6f6;
  border-radius: 999px;
  background: #fff;
  padding: 5px 9px;
  color: var(--rm-selection-primary-strong);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.rm-selection-detail-coverage ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.rm-selection-detail-coverage li {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid #d9e2f3;
  border-radius: 11px;
  background: #fff;
  padding: 11px 12px;
  font-size: var(--rm-selection-text-support);
}

.rm-selection-detail-coverage li strong {
  color: var(--rm-selection-text);
  font-weight: 850;
}

.rm-selection-detail-coverage li span {
  overflow-wrap: anywhere;
  color: var(--rm-selection-text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.rm-selection-detail-coverage li:only-child {
  grid-column: 1 / -1;
}

.rm-selection-detail-coverage.has-collapsible-list:not(.is-expanded) .rm-selection-detail-coverage-overflow {
  display: none;
}

.rm-selection-detail-coverage-toggle {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid #c5d6f6;
  border-radius: 11px;
  background: #fff;
  color: var(--rm-selection-primary-strong);
  font-size: 12px;
  font-weight: 850;
}

.rm-selection-detail-coverage-toggle:hover {
  border-color: #9eb8ed;
  background: #edf3ff;
}

.rm-selection-detail-coverage-toggle svg {
  transition: transform 180ms ease-out;
}

.rm-selection-detail-coverage.is-expanded .rm-selection-detail-coverage-toggle svg {
  transform: rotate(180deg);
}

.rm-selection-detail-terms {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--rm-selection-border-soft);
  border-radius: 13px;
  background: #fff;
}

.rm-selection-detail-terms h3 {
  padding: 15px 16px 12px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.rm-selection-detail-terms > div {
  border-top: 1px solid var(--rm-selection-border-soft);
  padding: 16px;
  color: var(--rm-selection-text-secondary);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.rm-selection-detail-terms li {
  display: block;
  list-style: none;
}

.rm-selection-detail-terms li + li {
  margin-top: 4px;
}

.rm-detail-dialog-footer {
  display: grid;
  grid-template-columns: auto minmax(340px, 1fr);
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--rm-selection-border-soft);
  background: #fff;
  padding: 15px 28px 18px;
  box-shadow: 0 -8px 24px rgba(37, 61, 110, 0.04);
}

.rm-selection-detail-purchase {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--rm-selection-border-soft);
  padding-top: 20px;
}

.rm-detail-dialog-footer .rm-selection-detail-purchase {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.rm-selection-detail-purchase > .rm-detail-dialog-mobile-price {
  gap: 2px;
}

.rm-selection-detail-purchase span {
  color: var(--rm-selection-text-tertiary);
  font-size: var(--rm-selection-text-support);
  font-weight: 750;
}

.rm-selection-detail-purchase strong {
  font-size: 24px;
  font-weight: 850;
}

.rm-selection-detail-purchase .rm-quantity-field {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rm-selection-detail-purchase .rm-quantity-stepper {
  display: grid;
  grid-template-columns: 40px 48px 40px;
  height: 44px;
  border: 1px solid var(--rm-selection-border);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}

.rm-selection-detail-purchase .rm-quantity-stepper button {
  display: grid;
  color: var(--rm-selection-primary);
  place-items: center;
}

.rm-selection-detail-purchase .rm-quantity-stepper button:hover:not(:disabled) {
  background: #edf3ff;
}

.rm-selection-detail-purchase .rm-quantity-stepper button:disabled {
  color: #c4cbd8;
  cursor: not-allowed;
}

.rm-selection-detail-purchase .rm-quantity-stepper input {
  width: 48px;
  min-width: 0;
  border-inline: 1px solid var(--rm-selection-border);
  border-radius: 0;
  background: #fff;
  padding: 0;
  color: var(--rm-selection-text);
  font-weight: 800;
  text-align: center;
  -moz-appearance: textfield;
}

.rm-selection-detail-purchase .rm-quantity-stepper input::-webkit-inner-spin-button,
.rm-selection-detail-purchase .rm-quantity-stepper input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.rm-selection-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.rm-detail-dialog-footer .rm-selection-detail-actions {
  margin-top: 0;
}

.rm-selection-live-message {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  max-width: min(360px, calc(100% - 32px));
  border-radius: 12px;
  background: #17213a;
  padding: 13px 16px;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.rm-selection-live-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rm-product-selection :is(button, a, select, input, summary):focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.3);
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  :root {
    --rm-selection-page-gutter: 24px;
  }

  .rm-selection-container {
    max-width: 900px;
  }

  .rm-selection-condition-grid {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }

  .rm-selection-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --rm-selection-page-gutter: 18px;
    --rm-selection-text-section-title: 20px;
  }

  .rm-selection-container {
    max-width: 560px;
  }

  .rm-selection-hero .rm-selection-container {
    padding-block: 20px 28px;
  }

  .rm-selection-breadcrumb {
    display: none;
  }

  .rm-selection-hero-content {
    display: block;
    margin-top: 0;
  }

  .rm-selection-country-identity {
    align-items: flex-start;
    gap: 13px;
  }

  .rm-selection-country-flag {
    width: 56px;
    height: 56px;
  }

  .rm-selection-country-flag img {
    width: 34px;
    height: 25px;
  }

  .rm-selection-country-identity h1 {
    gap: 6px;
    font-size: 28px;
  }

  .rm-selection-country-identity p {
    margin-top: 6px;
    font-size: 12px;
  }

  .rm-selection-hero-actions {
    justify-content: space-between;
    margin-top: 18px;
  }

  .rm-selection-workspace {
    padding-top: 20px;
  }

  .rm-selection-condition-panel {
    padding: 21px 16px 18px;
  }

  .rm-selection-condition-head,
  .rm-selection-products-head {
    align-items: flex-start;
  }

  .rm-selection-condition-head h2,
  .rm-selection-products-head h2 {
    font-size: var(--rm-selection-text-section-title);
  }

  .rm-selection-condition-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .rm-selection-data-field {
    grid-column: auto;
  }

  .rm-selection-plan-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-selection-plan-option span {
    width: 100%;
    min-width: 0;
  }

  .rm-selection-data-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .rm-selection-data-option {
    width: 100%;
    min-width: 0;
    min-height: 66px;
  }

  .rm-selection-products {
    padding-block: 28px 48px;
  }

  .rm-selection-products-head {
    gap: 12px;
  }

  .rm-selector-ticket {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .rm-selector-ticket::before,
  .rm-selector-ticket::after {
    content: none;
  }

  .rm-selector-ticket-main {
    padding: 20px 18px;
  }

  .rm-selector-product-title {
    font-size: 18px;
  }

  .rm-selector-ticket-stub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-top: 1px dashed #cbd6e7;
    border-left: 0;
    padding: 15px 18px 18px;
  }

  .rm-selector-product-price-label {
    grid-column: 1;
  }

  .rm-selector-product-price {
    grid-column: 1;
    font-size: 21px;
  }

  .rm-selector-product-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: repeat(3, auto);
    margin-top: 0;
  }

  .rm-selector-product-actions .rm-selection-button {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 10px;
  }

  .rm-selection-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 40px);
    margin: 20px auto auto;
    border-radius: 18px;
  }

  .rm-selection-dialog-shell {
    max-height: calc(100dvh - 40px);
    padding: 21px 16px;
  }

  .rm-selection-dialog-shell.rm-detail-dialog-shell {
    height: calc(100dvh - 40px);
    max-height: calc(100dvh - 40px);
    padding: 0;
  }

  .rm-selection-dialog-head.rm-detail-dialog-head {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    padding: 16px 16px 14px;
  }

  .rm-selection-dialog-head h2 {
    font-size: 21px;
  }

  .rm-detail-dialog-heading h2 {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .rm-detail-dialog-desktop-price {
    display: none;
  }

  .rm-detail-dialog-scroll {
    padding: 18px 16px 24px;
    scroll-padding-block: 20px;
  }

  .rm-detail-dialog-footer {
    display: block;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  }

  .rm-detail-dialog-footer .rm-selection-detail-purchase {
    align-items: center;
    justify-content: space-between;
  }

  .rm-selection-detail-purchase > .rm-detail-dialog-mobile-price {
    display: grid;
  }

  .rm-detail-dialog-mobile-price strong {
    font-size: 21px;
  }

  .rm-detail-dialog-footer .rm-selection-detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }

  .rm-selection-country-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-selection-detail-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-selection-detail-coverage {
    padding: 15px;
  }

  .rm-selection-detail-coverage-head {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .rm-selection-detail-coverage-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .rm-selection-detail-coverage-head h3 {
    font-size: 15px;
  }

  .rm-selection-detail-coverage ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-selection-detail-coverage.has-collapsible-list:not(.is-expanded) .rm-selection-detail-coverage-mobile-overflow {
    display: none;
  }

  .rm-selection-detail-purchase .rm-quantity-stepper {
    grid-template-columns: 44px 42px 44px;
    height: 46px;
  }

  .rm-selection-detail-purchase .rm-quantity-stepper input {
    width: 42px;
  }

  .rm-selection-detail-purchase {
    align-items: center;
  }

  .rm-selection-live-message {
    right: 16px;
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 479px) {
  .rm-selection-family-count {
    display: none;
  }

  .rm-selection-change-country {
    width: 100%;
  }

  .rm-selector-ticket-stub {
    display: block;
  }

  .rm-selector-product-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
  }

  .rm-selector-product-actions .rm-selection-button {
    min-width: 0;
    padding-inline: 6px;
  }

  .rm-selection-country-list {
    grid-template-columns: 1fr;
  }

  .rm-selection-detail-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rm-selection-detail-specs > div {
    min-height: 78px;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 8px;
    padding: 10px;
  }

  .rm-selection-detail-specs .rm-spec-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .rm-selection-detail-specs .rm-spec-icon svg {
    width: 18px;
    height: 18px;
  }

  .rm-selection-detail-specs dt {
    font-size: 11px;
  }

  .rm-selection-detail-specs dd {
    font-size: 13px;
  }

  .rm-selection-detail-actions {
    grid-template-columns: 1fr;
  }

  .rm-detail-dialog-footer .rm-selection-detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-selection-detail-purchase {
    align-items: flex-start;
    flex-direction: column;
  }

  .rm-detail-dialog-footer .rm-selection-detail-purchase {
    align-items: center;
    flex-direction: row;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-selection-spinner {
    animation: none;
    border-top-color: var(--rm-selection-border);
  }

  .rm-selection-live-message,
  .rm-selection-data-option,
  .rm-selection-plan-option span,
  .rm-selection-alternative-day,
  .rm-selection-plan-retry,
  .rm-selection-change-country,
  .rm-selection-button {
    transition: none;
  }
}
