/* Credit packages checkout page */

.checkout-page .header.header--solid {
  background:
    linear-gradient(180deg, rgba(8, 14, 27, 0.96) 0%, rgba(7, 12, 23, 0.95) 100%);
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.checkout-hero {
  position: relative;
  padding: calc(var(--header-h) + 28px) 0 32px;
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--text-inverse);
  overflow: hidden;
}

.checkout-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(197, 160, 89, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(197, 160, 89, 0.08) 0%, transparent 50%),
    var(--hero-bg-image, none) center / cover no-repeat;
  pointer-events: none;
}

.checkout-hero .container {
  position: relative;
  z-index: 1;
}

.checkout-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  transition: color 0.25s;
}

.checkout-hero__back:hover {
  color: var(--gold-300);
}

.checkout-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.checkout-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 520px;
}

.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.checkout-steps span {
  border: 1px solid rgba(212, 183, 106, 0.26);
  background: rgba(12, 20, 40, 0.48);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
}

.checkout-steps span.is-active {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(212, 183, 106, 0.45);
  background: rgba(197, 160, 89, 0.15);
}

.checkout-steps span.is-done::before {
  content: "✓ ";
  color: var(--gold-300);
}

.checkout-stepper {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 640px;
}

.checkout-stepper__item {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.checkout-stepper__marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(212, 183, 106, 0.35);
  background: rgba(12, 20, 40, 0.72);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.checkout-stepper__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.35;
  padding: 0 6px;
}

.checkout-stepper__line {
  position: absolute;
  top: 17px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.checkout-stepper__item.is-active .checkout-stepper__marker {
  border-color: var(--gold-400);
  background: rgba(197, 160, 89, 0.22);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.14);
}

.checkout-stepper__item.is-active .checkout-stepper__label {
  color: rgba(255, 255, 255, 0.95);
}

.checkout-stepper__item.is-done .checkout-stepper__marker {
  border-color: var(--gold-400);
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  color: var(--navy-900);
}

.checkout-stepper__item.is-done .checkout-stepper__label {
  color: rgba(255, 255, 255, 0.82);
}

.checkout-stepper__item.is-done .checkout-stepper__line {
  background: rgba(197, 160, 89, 0.55);
}

.checkout-panel .checkout-stepper {
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  max-width: none;
}

.checkout-stepper--panel .checkout-stepper__marker {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
  border-color: #d8dce3;
  background: #fff;
  color: var(--text-secondary);
}

.checkout-stepper--panel .checkout-stepper__label {
  color: var(--text-tertiary);
  font-size: 0.6875rem;
}

.checkout-stepper--panel .checkout-stepper__line {
  top: 15px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  background: #e4e7ec;
}

.checkout-stepper--panel .checkout-stepper__item.is-active .checkout-stepper__marker {
  border-color: var(--gold-500);
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold-700, #8a6d38);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.12);
}

.checkout-stepper--panel .checkout-stepper__item.is-active .checkout-stepper__label {
  color: var(--text-primary);
}

.checkout-stepper--panel .checkout-stepper__item.is-done .checkout-stepper__marker {
  border-color: var(--gold-500);
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  color: var(--navy-900);
}

.checkout-stepper--panel .checkout-stepper__item.is-done .checkout-stepper__label {
  color: var(--text-secondary);
}

.checkout-stepper--panel .checkout-stepper__item.is-done .checkout-stepper__line {
  background: rgba(197, 160, 89, 0.45);
}

.checkout-main {
  padding: clamp(40px, 5vw, 56px) 0 clamp(64px, 8vw, 88px);
  background: var(--surface-1);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: clamp(28px, 4vw, 40px);
  align-items: start;
}

.checkout-summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.checkout-summary__card {
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 32px);
  color: var(--text-inverse);
  border: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: 0 20px 48px rgba(5, 10, 24, 0.2);
}

.checkout-summary__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 8px;
}

.checkout-summary__price {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 16px;
}

.checkout-summary__currency {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  padding-bottom: 6px;
}

.checkout-summary__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.checkout-summary__period {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  padding-bottom: 8px;
  margin-left: 6px;
}

.checkout-summary__note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-summary__lines {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-summary__lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.checkout-summary__lines li strong {
  color: #fff;
  font-weight: 600;
}

.checkout-summary__credits-info {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-summary__credits-info-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0 0 10px;
}

.checkout-summary__credits-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-summary__credits-info li {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.checkout-summary__credits-info li strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1rem;
  font-weight: 700;
}

.checkout-summary__total span:last-child {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--gold-300);
}

.checkout-summary__benefits {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-summary__benefits li {
  display: flex;
  gap: 10px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.checkout-summary__benefits svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-400);
}

.checkout-panel {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}

.checkout-panel__section + .checkout-panel__section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.checkout-panel__head {
  margin-bottom: 18px;
}

.checkout-panel__head h2 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.checkout-panel__head p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-fields--single {
  grid-template-columns: 1fr;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-field--full {
  grid-column: 1 / -1;
}

.checkout-field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 18, 25, 0.08);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: #f7f7f5;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.checkout-field input::placeholder {
  color: var(--text-tertiary);
}

.checkout-field input:focus,
.checkout-field select:focus {
  outline: none;
  border-color: var(--gold-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.checkout-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238892A0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.checkout-pay-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.checkout-pay-icons span {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.checkout-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.checkout-terms input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold-500);
  flex-shrink: 0;
}

.checkout-terms a {
  color: var(--gold-600);
  font-weight: 600;
}

.checkout-submit {
  width: 100%;
  margin-top: 20px;
}

.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.checkout-secure svg {
  color: var(--gold-500);
  flex-shrink: 0;
}

.checkout-success {
  display: none;
  text-align: center;
  padding: clamp(32px, 5vw, 48px) 24px;
}

.checkout-success.is-visible {
  display: block;
}

.checkout-form.is-hidden {
  display: none;
}

.checkout-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-success h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.checkout-success p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.checkout-empty {
  text-align: center;
  padding: clamp(40px, 6vw, 64px) 24px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 28px;
  max-width: 520px;
  margin: 0 auto;
}

.checkout-empty h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.checkout-empty p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.checkout-packages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}

.checkout-package {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 20px 20px 16px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--surface-0);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    background 0.2s ease;
}

.checkout-package:hover:not(:disabled) {
  border-color: rgba(197, 160, 89, 0.45);
  box-shadow: 0 8px 24px rgba(5, 10, 24, 0.06);
}

.checkout-package:focus-visible {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.22);
}

.checkout-package:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.checkout-package--selected {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, rgba(197, 160, 89, 0.07) 0%, var(--surface-0) 100%);
  box-shadow: 0 10px 28px rgba(197, 160, 89, 0.12);
}

.checkout-package--featured.checkout-package--selected {
  border-color: var(--gold-500);
}

.checkout-package__ribbon {
  position: absolute;
  top: -1px;
  right: 20px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  color: var(--navy-900);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.35);
}

.checkout-package__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
}

.checkout-package__radio {
  color: var(--text-tertiary);
  margin-top: 2px;
  line-height: 0;
}

.checkout-package__radio.is-checked {
  color: var(--gold-600);
}

.checkout-package__title-block {
  min-width: 0;
}

.checkout-package__name {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  line-height: 1.3;
}

.checkout-package__description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.checkout-package__price-block {
  text-align: right;
  flex-shrink: 0;
}

.checkout-package__price {
  display: block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gold-600);
  line-height: 1.2;
  white-space: nowrap;
}

.checkout-package__price-note {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-top: 2px;
  white-space: nowrap;
}

.checkout-package__bullets {
  list-style: none;
  margin: 14px 0 0 36px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.checkout-package__bullets li {
  position: relative;
  padding-left: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.checkout-package__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
}

.checkout-package__footnote {
  margin: 10px 0 0 36px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.checkout-panel__footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.checkout-step {
  animation: checkout-step-in 0.28s ease;
}

@keyframes checkout-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkout-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.checkout-step-nav--end {
  justify-content: flex-end;
}

.checkout-step-nav--pay {
  align-items: center;
}

.checkout-step-nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.checkout-step-nav__btn {
  min-height: 42px;
  padding: 10px 22px;
  font-size: 0.875rem;
  border-radius: 999px;
  white-space: nowrap;
}

.checkout-step-nav__back {
  min-width: 96px;
  flex-shrink: 0;
}

.checkout-step-nav--pay .checkout-submit {
  min-width: 148px;
  flex-shrink: 0;
}

.checkout-secure--center {
  justify-content: center;
  margin-top: 12px;
}

.checkout-review {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-review__block {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  background: var(--surface-1);
}

.checkout-review__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.checkout-review__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.checkout-review__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  user-select: text;
}

.checkout-review__meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.checkout-review__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-600);
  white-space: nowrap;
}

.checkout-review__credits {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.checkout-review__credits li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-left: 14px;
  position: relative;
}

.checkout-review__credits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
}

.checkout-review__details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.checkout-review__details div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: baseline;
}

.checkout-review__details dt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.checkout-review__details dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-word;
}

.checkout-review__edit {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-600);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-review__edit:hover {
  color: var(--gold-500);
}

.checkout-summary__account {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.checkout-summary__account-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.checkout-summary__account-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}

.checkout-summary__account-email {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  word-break: break-word;
}

.checkout-account-form .checkout-account-form__input,
.checkout-account-form input.checkout-account-form__input,
.checkout-account-form .PhoneInputInput {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid #c5cad3 !important;
  border-radius: 10px;
  font-size: 0.9375rem;
  background: #ffffff !important;
  color: var(--text-primary) !important;
  box-shadow: none;
}

.checkout-account-form .checkout-account-form__input::placeholder,
.checkout-account-form input.checkout-account-form__input::placeholder,
.checkout-account-form .PhoneInputInput::placeholder {
  color: var(--text-tertiary);
}

.checkout-account-form .checkout-account-form__input:hover,
.checkout-account-form input.checkout-account-form__input:hover,
.checkout-account-form .PhoneInputInput:hover {
  border-color: #aeb5c0 !important;
}

.checkout-account-form .checkout-account-form__input:focus,
.checkout-account-form input.checkout-account-form__input:focus,
.checkout-account-form .PhoneInputInput:focus {
  outline: none;
  border-color: var(--gold-500) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18) !important;
}

.checkout-account-form .phone-country-select--checkout {
  min-height: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #c5cad3 !important;
  background: #ffffff !important;
  color: var(--text-primary) !important;
  padding: 10px;
}

.checkout-account-form .phone-country-select--checkout:hover {
  border-color: #aeb5c0 !important;
}

.checkout-account-form .phone-country-select--checkout:focus-visible {
  border-color: var(--gold-500) !important;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18) !important;
}

.checkout-account-form .phone-field--checkout {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.checkout-account-form .password-strength--checkout {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e4e7ec;
  background: #f8f9fb;
}

.checkout-account-form .password-strength--checkout .password-strength__header span:first-child {
  color: var(--text-secondary);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.checkout-account-form .password-strength--checkout .password-strength__segment--inactive {
  background: #e2e6ec;
}

.checkout-account-form .password-strength--checkout .password-strength__rule {
  color: var(--text-tertiary);
}

.checkout-account-form .password-strength--checkout .password-strength__rule svg {
  color: #c5cad3;
}

.checkout-account-form .password-strength--checkout .password-strength__rule--met {
  color: #15803d;
}

.checkout-account-form .password-strength--checkout .password-strength__rule--met svg {
  color: #16a34a;
}

.checkout-account-form .password-strength--compact .password-strength__rules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}

.checkout-account-form .password-strength--compact .password-strength__rule,
.checkout-account-form .password-strength--compact .password-strength__rule--met {
  font-size: 0.6875rem;
}

.checkout-account-form .password-input {
  position: relative;
}

.checkout-account-form .password-input__field {
  padding-right: 42px;
}

.checkout-account-form .password-input__toggle {
  color: var(--text-tertiary);
}

.checkout-field__label,
.checkout-account-form .label-ui {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.checkout-field--phone {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-panel__notice {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
}

.checkout-form__error {
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b42318;
}

.checkout-alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  margin-bottom: 20px;
}

.checkout-alert--inline {
  margin-top: 16px;
  margin-bottom: 0;
}

.checkout-alert--verification {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.12) 0%, rgba(197, 160, 89, 0.05) 100%);
  border-color: rgba(197, 160, 89, 0.35);
}

.checkout-alert--error {
  background: rgba(180, 35, 24, 0.06);
  border-color: rgba(180, 35, 24, 0.22);
}

.checkout-alert--info {
  background: var(--surface-1);
  border-color: var(--border);
}

.checkout-alert__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-alert--verification .checkout-alert__icon {
  background: rgba(197, 160, 89, 0.18);
  color: var(--gold-600);
}

.checkout-alert--error .checkout-alert__icon {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}

.checkout-alert--info .checkout-alert__icon {
  background: rgba(15, 18, 25, 0.06);
  color: var(--text-secondary);
}

.checkout-alert__body {
  min-width: 0;
  flex: 1;
}

.checkout-alert__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  line-height: 1.35;
}

.checkout-alert__message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.checkout-alert__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.checkout-alert--verification .checkout-alert__action {
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: #fff;
  color: var(--gold-700, #9a7b3f);
}

.checkout-alert--verification .checkout-alert__action:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--gold-500);
}

.checkout-alert--error .checkout-alert__action,
.checkout-alert--info .checkout-alert__action {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-primary);
}

.checkout-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

@media (max-width: 560px) {
  .checkout-package__top {
    grid-template-columns: auto 1fr;
  }

  .checkout-package__price-block {
    grid-column: 2;
    text-align: left;
    margin-top: 4px;
  }

  .checkout-package__bullets,
  .checkout-package__footnote {
    margin-left: 0;
  }
}

@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .checkout-stepper__label {
    font-size: 0.6875rem;
  }
}

@media (max-width: 560px) {
  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .checkout-step-nav {
    flex-direction: row;
    align-items: center;
  }

  .checkout-step-nav__btn {
    min-width: 0;
  }

  .checkout-step-nav--pay .checkout-step-nav__btn {
    flex: 0 0 auto;
  }

  .checkout-step-nav--end {
    justify-content: stretch;
  }

  .checkout-step-nav--end .checkout-step-nav__btn {
    flex: none;
    width: 100%;
  }

  .checkout-stepper--panel .checkout-stepper__label {
    font-size: 0.625rem;
  }

  .checkout-account-form .password-strength--compact .password-strength__rules {
    grid-template-columns: 1fr;
  }
}
