.topup-step-summary[hidden],
.topup-step-enter[hidden] {
  display: none !important;
}

.topup-summary-lines {
  margin: 0 0 var(--padding-m, 16px);
  padding: 0;
  list-style: none;
}

.topup-summary-lines li {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.45;
  color: #000;
}

.topup-billing-summary {
  margin-top: 4px;
  margin-bottom: 0;
}

#topup-billing-chosen[hidden],
#topup-billing-form[hidden] {
  display: none !important;
}

.topup-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 16px;
  color: #0050ff;
  text-decoration: none;
  font-size: 15px;
}

.topup-edit-link:hover {
  text-decoration: underline;
}

.topup-edit-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.topup-amount-select-wrap {
  position: relative;
  width: 100%;
  max-width: 22rem;
}

.topup-amount-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 12px 40px 12px 14px;
  border: 1px solid #949494;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  line-height: 1.3;
  color: #000;
  cursor: pointer;
}

.topup-amount-select-wrap select:focus {
  outline: 2px solid #0050ff;
  outline-offset: 0;
  border-color: #0050ff;
}

.topup-amount-select-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: translateY(-65%) rotate(45deg);
}

.topup-page-title {
  margin-bottom: 8px;
}

.topup-wizard-gap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topup-amount-step {
  gap: 16px;
}

.topup-amount-step ._form-item_uoq9e_1 {
  margin: 0;
  max-width: 22rem;
  width: 100%;
}

.topup-wizard-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 22rem;
  margin-top: 16px;
  clear: both;
}

.topup-step-next,
#topupPayNow,
.topup-address-continue {
  position: relative;
  z-index: 0;
  margin-top: 0 !important;
  transform: none !important;
}

.topup-amount-select-wrap {
  margin-bottom: 0;
}

.topup-required-mark {
  color: #c00;
}

.topup-summary-amount {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.45;
}

.topup-narrow-fields {
  max-width: 22rem;
}

.topup-search-btn {
  width: 100%;
  max-width: 22rem;
  min-height: 48px;
  border: 2px solid #0050ff;
  border-radius: 8px;
  background: #fff;
  color: #0050ff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.topup-search-btn--spaced {
  margin-top: 20px;
}

.topup-search-btn:hover {
  background: #f0f6ff;
}

.topup-field-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #666;
  line-height: 1.35;
  clear: both;
}

#topup-card-section ._form-item_uoq9e_1 .topup-field-hint {
  margin-top: 10px;
}

.topup-pay-note {
  margin-top: 10px;
}

/* Wizard fields: visible labels above inputs (O2 mirror uses hidden labels + placeholders on the guest form). */
.topup-step-summary ._form-item_uoq9e_1,
#topup-billing-section ._form-item_uoq9e_1,
#topup-card-section ._form-item_uoq9e_1 {
  --form-item-gap: 10px;
  gap: 10px;
  margin-bottom: 14px;
}

.topup-step-summary ._form-item__label_uoq9e_16,
#topup-billing-section ._form-item__label_uoq9e_16,
#topup-card-section ._form-item__label_uoq9e_16 {
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  display: block;
  margin: 0 0 2px;
  font-size: 14px;
  line-height: 1.35;
  color: #1a1a1a;
}

#topup-billing-section ._form-input_61szp_1,
#topup-card-section .topup-narrow-fields ._form-input_61szp_1 {
  --_background-color: #fff;
  background-color: #fff !important;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 2.625rem;
  box-sizing: border-box;
}

#topup-billing-section ._form-input_61szp_1:focus-within,
#topup-card-section .topup-narrow-fields ._form-input_61szp_1:focus-within {
  --_background-color: #fff;
  background-color: #fff !important;
}

#topup-billing-section ._form-input__control_61szp_31,
#topup-card-section ._form-input__control_61szp_31 {
  flex: 1 1 auto;
  width: 100%;
  min-height: 2.625rem;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1.25;
  box-sizing: border-box;
}

#topup-billing-section ._form-input__control_61szp_31:focus,
#topup-card-section ._form-input__control_61szp_31:focus {
  outline: none;
}

.topup-guest-form ._form-item--has-hidden-labels_uoq9e_8 {
  --form-item-gap: 0;
  margin-bottom: 12px;
}

.topup-guest-form ._form-item--has-hidden-labels_uoq9e_8 + p {
  margin-top: 6px;
  margin-bottom: 12px;
}

.topup-guest-form ._form-input_61szp_1 {
  display: flex;
  align-items: stretch;
  min-height: 3rem;
  box-sizing: border-box;
}

.topup-guest-form ._form-input__control_61szp_31 {
  flex: 1 1 auto;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 12px var(--padding-m, 16px);
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1.35;
  box-sizing: border-box;
}

.topup-guest-form ._form-input__control_61szp_31:focus {
  outline: none;
}

.topup-guest-form ._form-input__control_61szp_31::placeholder {
  color: #767676;
  opacity: 1;
}

#topup-card-section {
  position: relative;
}

.topup-step-summary--pay-wait {
  position: relative;
}

.topup-step-summary--pay-wait .topup-pay-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
}

.topup-pay-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.94);
}

.topup-pay-overlay[hidden] {
  display: none !important;
}

.topup-pay-overlay__panel {
  max-width: 15rem;
  text-align: center;
}

.topup-pay-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border: 3px solid #e5e5e5;
  border-top-color: #555;
  border-radius: 50%;
  animation: topup-pay-spin 0.85s linear infinite;
}

@keyframes topup-pay-spin {
  to {
    transform: rotate(360deg);
  }
}

.topup-pay-overlay__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

.topup-card-section--processing [class*="spinner"]:not(.topup-pay-spinner),
.topup-card-section--processing [class*="Spinner"]:not(.topup-pay-spinner),
.topup-card-section--processing [class*="loader"],
.topup-card-section--processing [role="progressbar"]:not(.topup-pay-spinner) {
  display: none !important;
}

.topup-card-number-shell {
  position: relative;
}

.topup-card-number-shell input {
  padding-right: 52px;
}

.topup-card-scheme-affix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 24px;
  pointer-events: none;
}

.topup-card-scheme-icon {
  width: 36px;
  height: auto;
  max-height: 24px;
  object-fit: contain;
}

.topup-card-scheme-icon[hidden] {
  display: none !important;
}

.topup-plain-field {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 8px;
  border: 1px solid #949494;
  border-radius: 8px;
  background: #fff;
}

.topup-plain-field:focus-within {
  border-color: #0050ff;
  outline: 2px solid #0050ff;
  outline-offset: 0;
}

.topup-plain-input {
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 15px;
  line-height: 1.25;
  font-family: inherit;
  text-align: center;
}

.topup-plain-input:focus {
  outline: none;
}

.topup-cvv-shell {
  flex: 0 0 auto;
  width: 4.25rem;
  min-width: 4.25rem;
  max-width: 4.25rem;
}

.topup-cvv-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topup-cvv-hint-icon {
  display: none;
  flex: 0 0 auto;
  width: 72px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .topup-cvv-hint-icon {
    display: block;
  }
}

.topup-expiry-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.topup-expiry-field,
.topup-cvv-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.topup-expiry-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.topup-expiry-inputs ._form-input_61szp_1 {
  width: 4.25rem !important;
  max-width: 4.25rem !important;
  min-width: 4.25rem !important;
  flex: 0 0 4.25rem !important;
  min-height: 2.5rem !important;
}

.topup-expiry-inputs ._form-input__control_61szp_31 {
  min-height: 2.25rem !important;
  padding: 6px 4px !important;
  text-align: center;
  font-size: 15px;
}

.topup-field-error {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: #c00;
}

.topup-field-error:empty {
  display: none;
}

.topup-field-error[hidden] {
  display: none !important;
}

.topup-address-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.topup-address-picker[hidden] {
  display: none !important;
}

.topup-address-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 22rem;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
  color: #000;
}

.topup-address-confirm__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.topup-address-confirm__box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid #949494;
  border-radius: 4px;
  background: #fff;
}

.topup-address-confirm__input:checked + .topup-address-confirm__box {
  border-color: #00a859;
  background-color: #00a859;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.2 11.5 3.4 8.7l1.1-1.1 1.7 1.7 4.3-4.3 1.1 1.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.topup-address-continue {
  max-width: 22rem;
}
