.pay-ios-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.pay-ios-overlay > .ios-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
}

.pay-ios-overlay .ios-layer {
  pointer-events: auto;
}

.pay-ios-overlay .ios-layer__scrim {
  background: rgb(0 0 0 / 0.55);
}

.pay-ios-overlay .ios-layer:not(:target) {
  pointer-events: none;
}

.plans-sheet {
  inset: auto 0 0 !important;
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - max(44px, env(safe-area-inset-top)) - 8px);
  border-radius: 30px 30px 0 0 !important;
  background: #1c1c1e !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.plans-sheet .ios-sheet__body {
  padding: 0 16px 12px;
}

.plans-ios-close {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: var(--ios-label, #fff);
}

.plans-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
}

.plans-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.plans-step-dot.active {
  background: var(--ios-tint, #0c8be2);
}

.plans-step.hidden {
  display: none !important;
}

.plans-section-head {
  display: flex;
  align-items: center;
  padding: 18px 4px 10px;
  font-size: 16px;
  font-weight: 700;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: auto;
  margin: 0;
  padding: 0;
}

.plans-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 4px 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #98989f;
}

.plans-note-icon {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  opacity: 0.8;
}

.plan-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1.5px solid transparent;
  border-radius: 24px;
  background: #2c2c2e;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.plan-tile:hover {
  background: #333335;
}

.plan-tile.selected {
  border-color: var(--ios-tint, #0c8be2);
  background: rgba(12, 139, 226, 0.14);
}

.plan-tile-ribbon {
  position: absolute;
  top: 19px;
  right: -32px;
  width: 120px;
  padding: 3px 0;
  transform: rotate(45deg);
  background: var(--ios-tint, #0c8be2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
}

.plan-tile-name {
  font-size: 16px;
  font-weight: 600;
}

.plan-tile-price {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.plan-tile-price small {
  margin-left: 1px;
  font-size: 12px;
  font-weight: 500;
  color: #98989f;
}

.plan-tile-spec {
  font-size: 12.5px;
  line-height: 1.35;
  color: #98989f;
}

.plans-custom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  padding: 0 18px;
  border-radius: 28px;
  background: #2c2c2e;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.4s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.25s ease,
    margin-top 0.4s cubic-bezier(0.2, 1, 0.3, 1), padding 0.4s cubic-bezier(0.2, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.plans-custom.open {
  max-height: 420px;
  margin-top: 12px;
  padding: 18px;
  opacity: 1;
  transform: none;
}

.plans-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plans-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #98989f;
}

.plans-field-head b {
  color: #fff;
  font-weight: 600;
}

.plans-pay-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 20px;
  text-align: center;
}

.plans-pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(150deg, #2fa6ea, #0d6fc0);
}

.plans-pay-icon img {
  width: 34px;
  height: 34px;
}

.plans-pay-title {
  font-size: 20px;
  font-weight: 800;
}

.plans-pay-sub {
  font-size: 14px;
  color: #98989f;
}

.plans-pay-list {
  margin: 0;
  border-radius: 24px;
  background: #2c2c2e;
}

.plans-pay-row {
  padding-left: 14px;
  transition: background 0.25s ease;
}

.plans-pay-row.selected {
  background: rgba(12, 139, 226, 0.09);
}

.plans-pay-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(160deg, #33a6ec, #0c74c4);
}

.plans-pay-row-icon img {
  width: 26px;
  height: 26px;
}

.plans-pay-row-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.plans-pay-row .ios-row__title {
  font-size: 16px;
  font-weight: 600;
}

.plans-pay-radio {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plans-pay-row.selected .plans-pay-radio {
  border-color: var(--ios-tint, #0c8be2);
  background: var(--ios-tint, #0c8be2);
  box-shadow: inset 0 0 0 3.5px #2c2c2e;
  animation: plans-radio-pop 0.25s ease;
}

@keyframes plans-radio-pop {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}

.plans-ios-footer {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #1c1c1e;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .pay-ios-overlay .ios-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
  }

  .plans-sheet {
    position: relative !important;
    inset: auto !important;
    width: 440px;
    max-width: 100%;
    max-height: min(88vh, 780px);
    border-radius: 26px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  .plans-sheet .ios-sheet__grabber {
    display: none;
  }
}
