.checkout-page,
.checkout-page button,
.checkout-page input,
.checkout-page code,
.checkout-page small {
  font-size: max(12px, 0.75rem);
}

.checkout-card {
  min-height: 0;
}

.checkout-alert {
  align-items: flex-start;
  border-radius: 11px;
  display: flex;
  font-size: 0.78rem;
  gap: 9px;
  line-height: 1.45;
  margin-bottom: 18px;
  padding: 11px 13px;
  text-align: left;
}

.checkout-alert-error {
  background: var(--red-pale);
  border: 1px solid rgba(216, 73, 73, 0.24);
  color: #9f2f2f;
}

.checkout-alert i {
  flex: 0 0 auto;
  margin-top: 1px;
}

.password-control {
  position: relative;
}

.password-control .form-control-clean {
  padding-right: 48px;
}

.password-control button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #77777c;
  display: flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 6px;
  width: 36px;
}

.password-control button:hover {
  background: #ededeb;
  color: var(--ink);
}

.checkout-page .button-primary:disabled,
.checkout-page .button-secondary:disabled,
.checkout-page .pix-code-wrap button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.qr-image-wrap {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(16, 16, 18, 0.12);
  display: flex;
  height: 226px;
  justify-content: center;
  margin: 0 auto 14px;
  overflow: hidden;
  padding: 8px;
  width: 226px;
}

.qr-image-wrap img {
  display: block;
  height: 210px;
  image-rendering: pixelated;
  object-fit: contain;
  width: 210px;
}

.pix-code-wrap code {
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-all;
}

.pix-wait-note {
  align-items: center;
  color: #77777c;
  display: inline-flex;
  gap: 7px;
  line-height: 1.45;
  margin-bottom: 17px;
}

.pix-wait-note .spinner-border {
  color: var(--gold);
  height: 14px;
  width: 14px;
}

.pix-status.paid {
  background: var(--green-pale);
  border-color: rgba(22, 166, 106, 0.2);
  color: #0b7548;
}

.pix-status.paid i {
  animation: none;
}

.pix-status.expired {
  background: #f1f1ee;
  border-color: var(--line);
  color: #67676c;
}

.pix-status.expired i {
  animation: none;
}

.pix-expired-panel,
.payment-success-panel {
  margin: 15px auto 0;
  max-width: 450px;
  text-align: center;
}

.pix-expired-panel h3,
.payment-success-panel h3 {
  font-size: 1.22rem;
  font-weight: 840;
  letter-spacing: -0.035em;
  margin: 13px 0 5px;
}

.pix-expired-panel p,
.payment-success-panel p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 auto 17px;
}

.expired-icon,
.success-icon {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-size: 1.25rem;
  height: 54px;
  justify-content: center;
  margin: 0 auto;
  width: 54px;
}

.expired-icon {
  background: var(--orange-pale);
  color: var(--orange);
}

.success-icon {
  background: var(--green-pale);
  color: var(--green);
}

.promotion-detail {
  align-items: flex-start;
  background: var(--gold-pale);
  border: 1px solid rgba(216, 169, 40, 0.22);
  border-radius: 10px;
  color: #755b16;
  display: flex;
  gap: 7px;
  line-height: 1.45;
  margin-top: 12px;
  padding: 10px;
}

.promotion-detail i {
  flex: 0 0 auto;
}

.checkout-plan-selector { border: 0; margin: 0 0 24px; padding: 0; }
.checkout-plan-selector legend { font-size: 0.82rem; font-weight: 800; margin-bottom: 10px; }
.checkout-plan-options { display: grid; gap: 9px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkout-plan-options label { cursor: pointer; margin: 0; position: relative; }
.checkout-plan-options input { opacity: 0; position: absolute; }
.checkout-plan-options span { background: #fafaf8; border: 1px solid #deded9; border-radius: 12px; display: flex; flex-direction: column; min-height: 68px; padding: 11px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.checkout-plan-options strong { font-size: 0.78rem; }
.checkout-plan-options small { color: #77777c; font-size: 0.75rem; margin-top: 3px; }
.checkout-plan-options input:checked + span { border-color: #b88a18; box-shadow: 0 0 0 3px rgba(216, 169, 40, .16); transform: translateY(-1px); }
.checkout-plan-options input:focus-visible + span { outline: 3px solid rgba(20, 117, 255, .25); outline-offset: 2px; }

@media (max-width: 575.98px) {
  .checkout-plan-options { grid-template-columns: 1fr; }
  .checkout-plan-options span { min-height: auto; }
}

@media (max-width: 575.98px) {
  .checkout-title-wrap p {
    font-size: 0.82rem;
  }

  .qr-image-wrap {
    height: min(226px, calc(100vw - 72px));
    width: min(226px, calc(100vw - 72px));
  }

  .qr-image-wrap img {
    height: 100%;
    width: 100%;
  }

  .pix-code-wrap code {
    max-height: 82px;
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-page *,
  .checkout-page *::before,
  .checkout-page *::after {
    scroll-behavior: auto !important;
  }

  .pix-status i {
    animation: none;
  }
}
