/**
 * Celebrax Commercial Checkout
 * Camada exclusivamente visual. Os seletores são isolados para não interferir
 * no checkout de presentes nem nos componentes do painel.
 */

.celebrax-checkout-modal {
  --checkout-navy: #071b3b;
  --checkout-navy-soft: #0c2b57;
  --checkout-blue: #075ff7;
  --checkout-coral: #ff6b57;
  --checkout-mint: #26cfa0;
  --checkout-ink: #15243b;
  --checkout-muted: #66758d;
  --checkout-line: #dfe6f1;
  --checkout-surface: #f5f7fb;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
  font-family: "Montserrat", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--checkout-ink);
}

.celebrax-checkout-modal *,
.celebrax-checkout-modal *::before,
.celebrax-checkout-modal *::after {
  box-sizing: border-box;
}

.celebrax-checkout-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(7, 95, 247, 0.22), transparent 32%),
    radial-gradient(circle at 86% 88%, rgba(38, 207, 160, 0.14), transparent 28%),
    rgba(3, 15, 35, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.celebrax-checkout-container {
  position: relative;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  max-height: min(92vh, 920px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  background: var(--checkout-surface);
  box-shadow: 0 32px 100px rgba(0, 10, 30, 0.44), 0 8px 32px rgba(0, 27, 72, 0.18);
  animation: celebrax-checkout-enter 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes celebrax-checkout-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.celebrax-checkout-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 18px 24px 18px 28px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--checkout-line);
  background: #fff;
}

.celebrax-checkout-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--checkout-blue), #8d73f6 46%, var(--checkout-coral) 72%, var(--checkout-mint));
}

.celebrax-checkout-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.celebrax-checkout-brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--checkout-navy);
  box-shadow: 0 8px 18px rgba(7, 27, 59, 0.2);
}

.celebrax-checkout-brand-mark i {
  position: absolute;
  display: block;
  width: 8px;
  height: 20px;
  border-radius: 999px;
  transform-origin: 50% 100%;
}

.celebrax-checkout-brand-mark i:nth-child(1) {
  left: 11px;
  top: 8px;
  background: var(--checkout-blue);
  transform: rotate(-33deg);
}

.celebrax-checkout-brand-mark i:nth-child(2) {
  left: 18px;
  top: 7px;
  height: 23px;
  background: var(--checkout-coral);
  transform: rotate(1deg);
}

.celebrax-checkout-brand-mark i:nth-child(3) {
  right: 9px;
  top: 10px;
  background: var(--checkout-mint);
  transform: rotate(35deg);
}

.celebrax-checkout-eyebrow,
.celebrax-checkout-form-kicker,
.celebrax-checkout-order-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--checkout-blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.celebrax-checkout-header h2 {
  margin: 0;
  color: var(--checkout-navy);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.celebrax-checkout-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0 0 3px;
  border: 1px solid var(--checkout-line);
  border-radius: 14px;
  background: #f7f9fc;
  color: #52627a;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.celebrax-checkout-close:hover {
  border-color: #f2b5ad;
  background: #fff4f2;
  color: #d94d3b;
  transform: rotate(3deg);
}

.celebrax-checkout-close:focus-visible,
.celebrax-coupon-apply-btn:focus-visible,
.celebrax-checkout-btn-submit:focus-visible {
  outline: 3px solid rgba(7, 95, 247, 0.24);
  outline-offset: 3px;
}

.celebrax-checkout-progress {
  display: grid;
  grid-template-columns: max-content minmax(50px, 1fr) max-content;
  align-items: center;
  gap: 16px;
  padding: 15px 30px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--checkout-line);
  background: rgba(255, 255, 255, 0.86);
}

.celebrax-checkout-progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8793a5;
  transition: color 0.25s ease;
}

.celebrax-checkout-progress-item > span:last-child {
  display: grid;
  gap: 1px;
}

.celebrax-checkout-progress-item strong,
.celebrax-checkout-progress-item small {
  display: block;
  line-height: 1.25;
}

.celebrax-checkout-progress-item strong {
  font-size: 0.78rem;
  font-weight: 900;
}

.celebrax-checkout-progress-item small {
  font-size: 0.68rem;
  font-weight: 600;
}

.celebrax-checkout-progress-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid #d6deea;
  border-radius: 50%;
  background: #fff;
  color: #79879b;
  font-size: 0.75rem;
  font-weight: 900;
}

.celebrax-checkout-progress-item.is-active {
  color: var(--checkout-navy);
}

.celebrax-checkout-progress-item.is-active .celebrax-checkout-progress-number {
  border-color: var(--checkout-blue);
  background: var(--checkout-blue);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(7, 95, 247, 0.1);
}

.celebrax-checkout-progress-item.is-complete .celebrax-checkout-progress-number {
  border-color: var(--checkout-mint);
  background: var(--checkout-mint);
  color: var(--checkout-navy);
}

.celebrax-checkout-progress-line {
  display: block;
  width: 100%;
  height: 1px;
  background: #dce3ee;
}

.celebrax-checkout-modal[data-step="payment"] .celebrax-checkout-progress-line {
  background: linear-gradient(90deg, var(--checkout-mint), var(--checkout-blue));
}

.celebrax-checkout-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #bbc6d6 transparent;
  scrollbar-width: thin;
}

.celebrax-checkout-step {
  min-height: 100%;
  animation: celebrax-checkout-fade-in 0.24s ease;
}

@keyframes celebrax-checkout-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.celebrax-checkout-form {
  display: grid;
  grid-template-columns: 348px minmax(0, 1fr);
  align-items: stretch;
  min-height: 620px;
  margin: 0;
}

.celebrax-checkout-order {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 34px 30px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 108% 2%, rgba(38, 207, 160, 0.18), transparent 32%),
    radial-gradient(circle at -8% 88%, rgba(255, 107, 87, 0.16), transparent 30%),
    linear-gradient(158deg, var(--checkout-navy-soft), var(--checkout-navy) 62%);
  color: #fff;
}

.celebrax-checkout-order::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.025), 0 0 0 45px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.celebrax-checkout-order-kicker {
  color: #89b7ff;
}

.celebrax-plan-summary {
  padding: 0 0 22px;
  margin: 10px 0 21px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: transparent;
}

.celebrax-plan-summary h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.celebrax-plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  color: #fff;
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.celebrax-plan-price strong {
  color: #fff;
  font-size: inherit;
}

.celebrax-price-original {
  color: #9cacbf;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: line-through;
}

.celebrax-plan-payment-note {
  display: block;
  margin-top: 3px;
  color: #aebbd0;
  font-size: 0.76rem;
  font-weight: 700;
}

.celebrax-plan-discount {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(38, 207, 160, 0.25);
  border-radius: 999px;
  background: rgba(38, 207, 160, 0.12);
  color: #91f3d4;
  font-size: 0.72rem;
  font-weight: 800;
}

.celebrax-plan-discount[hidden] {
  display: none;
}

.celebrax-checkout-order-benefits {
  display: grid;
  gap: 12px;
  margin: 0 0 23px;
  padding: 0;
  list-style: none;
}

.celebrax-checkout-order-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #e3eaf5;
  font-size: 0.77rem;
  font-weight: 650;
  line-height: 1.4;
}

.celebrax-checkout-order-benefits li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: rgba(38, 207, 160, 0.15);
  color: #70e7c3;
  font-size: 0.68rem;
}

.celebrax-checkout-form-panel {
  min-width: 0;
  padding: 30px 34px 28px;
  background: #fff;
}

.celebrax-checkout-form-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.celebrax-checkout-form-intro h3 {
  margin: 3px 0 5px;
  color: var(--checkout-navy);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.celebrax-checkout-form-intro p {
  max-width: 560px;
  margin: 0;
  color: var(--checkout-muted);
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.5;
}

.celebrax-checkout-required-note {
  flex: 0 0 auto;
  padding-top: 6px;
  color: #8490a2;
  font-size: 0.68rem;
  font-weight: 700;
}

.celebrax-checkout-required-note i {
  color: var(--checkout-coral);
  font-style: normal;
}

.celebrax-checkout-form-section {
  padding: 20px;
  margin: 0 0 14px;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  background: #fbfcfe;
}

.celebrax-checkout-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.celebrax-checkout-section-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid #dbe7fd;
  border-radius: 11px;
  background: #eef4ff;
  color: var(--checkout-blue);
  font-size: 0.65rem;
  font-weight: 900;
}

.celebrax-checkout-section-heading h4,
.celebrax-checkout-section-heading p {
  margin: 0;
}

.celebrax-checkout-section-heading h4 {
  color: var(--checkout-navy);
  font-size: 0.88rem;
  font-weight: 900;
}

.celebrax-checkout-section-heading p {
  margin-top: 1px;
  color: #8995a7;
  font-size: 0.67rem;
  font-weight: 600;
}

.celebrax-checkout-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.celebrax-checkout-form-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.celebrax-checkout-form-group label {
  display: block;
  margin: 0 0 7px;
  color: #2b3950;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.celebrax-checkout-form-group label small {
  color: #8b96a8;
  font-size: 0.65rem;
  font-weight: 650;
}

.celebrax-checkout-form-group input,
.celebrax-checkout-form-group select,
.celebrax-checkout-form-group textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d9e1ec;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--checkout-ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.celebrax-checkout-form-group input::placeholder,
.celebrax-checkout-form-group textarea::placeholder {
  color: #9aa5b5;
  font-weight: 550;
}

.celebrax-checkout-form-group input:hover,
.celebrax-checkout-form-group select:hover,
.celebrax-checkout-form-group textarea:hover {
  border-color: #bfcada;
}

.celebrax-checkout-form-group input:focus,
.celebrax-checkout-form-group select:focus,
.celebrax-checkout-form-group textarea:focus {
  border-color: var(--checkout-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7, 95, 247, 0.1);
}

.celebrax-checkout-form-group input[aria-invalid="true"] {
  border-color: #e14e5b;
  box-shadow: 0 0 0 3px rgba(225, 78, 91, 0.09);
}

.celebrax-checkout-form-group textarea {
  min-height: 76px;
  resize: vertical;
}

.celebrax-checkout-error-message {
  display: block;
  min-height: 0;
  margin-top: 4px;
  color: #d93e4c;
  font-size: 0.66rem;
  font-weight: 750;
}

.celebrax-checkout-error-message:empty {
  display: none;
}

.celebrax-coupon-box {
  padding: 15px;
  margin: 0 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.celebrax-coupon-box label {
  color: #fff;
}

.celebrax-coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.celebrax-coupon-row input {
  min-height: 41px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.celebrax-coupon-row input::placeholder {
  color: #aab7cb;
  text-transform: none;
  letter-spacing: 0;
}

.celebrax-coupon-row input:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.celebrax-coupon-row input:focus {
  border-color: #75aaff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(99, 158, 255, 0.14);
}

.celebrax-coupon-apply-btn {
  min-height: 41px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--checkout-navy);
  font-family: inherit;
  font-size: 0.69rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.celebrax-coupon-apply-btn:hover:not(:disabled) {
  background: #ecf3ff;
  transform: translateY(-1px);
}

.celebrax-coupon-apply-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.celebrax-coupon-message,
.celebrax-affiliate-message {
  min-height: 0;
  margin-top: 7px;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.35;
}

.celebrax-coupon-message:empty,
.celebrax-affiliate-message:empty {
  display: none;
}

.celebrax-coupon-message { color: #c0cada; }
.celebrax-coupon-message.success { color: #7ce8c7; }
.celebrax-coupon-message.error { color: #ffadad; }
.celebrax-coupon-message.info { color: #9fc2ff; }
.celebrax-affiliate-message { color: #91f3d4; }

.celebrax-checkout-order-assurance,
.celebrax-checkout-payment-provider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.celebrax-checkout-order-assurance {
  margin-top: auto;
  padding-top: 5px;
}

.celebrax-checkout-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 11px;
  background: rgba(38, 207, 160, 0.13);
  color: #70e7c3;
  font-size: 0.76rem;
  font-weight: 900;
}

.celebrax-checkout-order-assurance p,
.celebrax-checkout-payment-provider p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.celebrax-checkout-order-assurance strong {
  color: #fff;
  font-size: 0.72rem;
}

.celebrax-checkout-order-assurance small {
  color: #9fadc1;
  font-size: 0.63rem;
  line-height: 1.35;
}

.celebrax-checkout-fee-note {
  margin: 13px 0 0;
  color: #8f9eb4;
  font-size: 0.59rem;
  font-weight: 600;
  line-height: 1.55;
}

.celebrax-checkout-consents {
  display: grid;
  gap: 10px;
  padding: 5px 2px 2px;
}

.celebrax-checkout-form-group.celebrax-checkout-checkbox {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: start;
  gap: 0 9px;
}

.celebrax-checkout-checkbox input {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin: 1px 0 0;
  padding: 0;
  border-radius: 5px;
  accent-color: var(--checkout-blue);
  cursor: pointer;
}

.celebrax-checkout-checkbox label {
  margin: 0;
  color: #65738a;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.celebrax-checkout-checkbox .celebrax-checkout-error-message {
  grid-column: 2;
}

.celebrax-checkout-btn-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  margin-top: 17px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(110deg, var(--checkout-blue), #0d4ed0 60%, var(--checkout-navy-soft));
  color: #fff;
  box-shadow: 0 13px 28px rgba(7, 95, 247, 0.22);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.celebrax-checkout-btn-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-110%);
  transition: transform 0.55s ease;
}

.celebrax-checkout-btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 17px 32px rgba(7, 95, 247, 0.28);
}

.celebrax-checkout-btn-submit:hover:not(:disabled)::after {
  transform: translateX(110%);
}

.celebrax-checkout-btn-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.celebrax-submit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.celebrax-checkout-btn-submit:hover:not(:disabled) .celebrax-submit-icon {
  transform: translateX(3px);
}

.celebrax-checkout-btn-submit.is-loading .celebrax-submit-icon {
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  background: transparent;
  color: transparent;
  animation: celebrax-checkout-spin 0.8s linear infinite;
}

.celebrax-checkout-payment-provider {
  justify-content: center;
  margin-top: 13px;
  color: #8590a2;
}

.celebrax-checkout-payment-provider > span {
  font-size: 0.8rem;
  filter: grayscale(1);
}

.celebrax-checkout-payment-provider strong {
  color: #56647a;
  font-size: 0.65rem;
}

.celebrax-checkout-payment-provider small {
  color: #909bad;
  font-size: 0.59rem;
}

.celebrax-checkout-inline-error {
  display: grid;
  gap: 4px;
  margin: 18px 24px 0;
  padding: 13px 15px 13px 46px;
  border: 1px solid #f2c8c5;
  border-radius: 14px;
  background: #fff6f5;
  color: #7f312c;
  position: relative;
}

.celebrax-checkout-inline-error::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e95d52;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.celebrax-checkout-inline-error strong {
  color: #7f312c;
  font-size: 0.75rem;
}

.celebrax-checkout-inline-error span {
  color: #9a4f49;
  font-size: 0.69rem;
  line-height: 1.45;
}

.celebrax-checkout-modal[data-step="payment"] .celebrax-checkout-content {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(7, 95, 247, 0.08), transparent 33%),
    #fff;
}

.celebrax-checkout-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 590px;
  min-height: 480px;
  padding: 54px 30px;
  text-align: center;
}

.celebrax-checkout-loading-visual {
  display: grid;
  grid-template-columns: 54px 92px 54px;
  align-items: center;
  margin-bottom: 25px;
}

.celebrax-checkout-loading-check,
.celebrax-checkout-loading-mp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  font-weight: 900;
  box-shadow: 0 9px 22px rgba(7, 27, 59, 0.12);
}

.celebrax-checkout-loading-check {
  background: #e3fbf3;
  color: #129b74;
  font-size: 1.25rem;
}

.celebrax-checkout-loading-mp {
  background: var(--checkout-blue);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: -0.03em;
}

.celebrax-checkout-loading-route {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  background: #dbe4f0;
}

.celebrax-checkout-loading-route::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, var(--checkout-mint), var(--checkout-blue));
  animation: celebrax-checkout-route 1.2s ease-in-out infinite;
}

@keyframes celebrax-checkout-route {
  from { transform: translateX(-110%); }
  to { transform: translateX(360%); }
}

.celebrax-checkout-spinner {
  width: 26px;
  height: 26px;
  margin-bottom: 18px;
  border: 3px solid #e0e8f4;
  border-top-color: var(--checkout-blue);
  border-radius: 50%;
  animation: celebrax-checkout-spin 0.8s linear infinite;
}

@keyframes celebrax-checkout-spin {
  to { transform: rotate(360deg); }
}

.celebrax-checkout-loading-state h3 {
  margin: 4px 0 9px;
  color: var(--checkout-navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.celebrax-checkout-loading-state > p {
  max-width: 450px;
  margin: 0;
  color: var(--checkout-muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.6;
}

.celebrax-checkout-loading-security {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
  padding: 10px 14px;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #67758a;
  font-size: 0.66rem;
  font-weight: 750;
}

/* Compatibilidade com o campo de endereço caso ele volte ao formulário. */
.celebrax-site-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d9e1ec;
  border-radius: 11px;
  background: #fff;
}

.celebrax-site-address-row input {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.celebrax-site-address-row span {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 11px;
  border-left: 1px solid #d9e1ec;
  background: #eef4ff;
  color: var(--checkout-navy);
  font-size: 0.71rem;
  font-weight: 800;
  white-space: nowrap;
}

.celebrax-site-address-field small {
  display: block;
  margin-top: 5px;
  color: var(--checkout-muted);
  font-size: 0.65rem;
}

.btn-plan[data-checkout-plan] {
  cursor: pointer;
}

@media (max-width: 920px) {
  .celebrax-checkout-container {
    width: min(760px, 100%);
  }

  .celebrax-checkout-form {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .celebrax-checkout-order {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    gap: 0 26px;
    min-height: 0;
    padding: 25px 28px;
  }

  .celebrax-checkout-order-kicker,
  .celebrax-plan-summary,
  .celebrax-checkout-order-benefits {
    grid-column: 1;
  }

  .celebrax-coupon-box,
  .celebrax-checkout-order-assurance,
  .celebrax-checkout-fee-note {
    grid-column: 2;
  }

  .celebrax-coupon-box {
    grid-row: 1 / span 3;
    align-self: start;
    margin: 0;
  }

  .celebrax-checkout-order-assurance {
    align-self: end;
  }

  .celebrax-checkout-fee-note {
    margin-top: 10px;
  }

  .celebrax-checkout-order-benefits {
    margin-bottom: 0;
  }

  .celebrax-checkout-form-panel {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .celebrax-checkout-modal {
    align-items: flex-end;
    padding: 0;
  }

  .celebrax-checkout-overlay {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .celebrax-checkout-container {
    width: 100%;
    max-height: 97dvh;
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
    animation-name: celebrax-checkout-enter-mobile;
  }

  @keyframes celebrax-checkout-enter-mobile {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .celebrax-checkout-header {
    min-height: 70px;
    padding: 14px 15px 13px 18px;
  }

  .celebrax-checkout-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 12px;
  }

  .celebrax-checkout-brand-mark i:nth-child(1) { left: 9px; top: 7px; }
  .celebrax-checkout-brand-mark i:nth-child(2) { left: 15px; top: 6px; }
  .celebrax-checkout-brand-mark i:nth-child(3) { right: 7px; top: 9px; }

  .celebrax-checkout-eyebrow {
    font-size: 0.55rem;
  }

  .celebrax-checkout-header h2 {
    font-size: 1.05rem;
  }

  .celebrax-checkout-close {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 12px;
    font-size: 25px;
  }

  .celebrax-checkout-progress {
    grid-template-columns: max-content minmax(25px, 1fr) max-content;
    gap: 8px;
    padding: 11px 17px;
  }

  .celebrax-checkout-progress-item {
    gap: 7px;
  }

  .celebrax-checkout-progress-number {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    font-size: 0.64rem;
  }

  .celebrax-checkout-progress-item strong {
    font-size: 0.65rem;
  }

  .celebrax-checkout-progress-item small {
    display: none;
  }

  .celebrax-checkout-order {
    display: block;
    padding: 24px 20px;
  }

  .celebrax-plan-summary {
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .celebrax-plan-price {
    font-size: 1.9rem;
  }

  .celebrax-checkout-order-benefits {
    gap: 9px;
    margin-bottom: 18px;
  }

  .celebrax-coupon-box {
    margin-bottom: 18px;
  }

  .celebrax-checkout-order-assurance {
    margin-top: 0;
  }

  .celebrax-checkout-form-panel {
    padding: 24px 16px 28px;
  }

  .celebrax-checkout-form-intro {
    display: block;
    margin-bottom: 19px;
  }

  .celebrax-checkout-required-note {
    display: block;
    padding-top: 7px;
  }

  .celebrax-checkout-form-section {
    padding: 17px 14px;
    border-radius: 16px;
  }

  .celebrax-checkout-fields-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .celebrax-field-full {
    grid-column: auto;
  }

  .celebrax-coupon-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .celebrax-checkout-btn-submit {
    min-height: 55px;
    font-size: 0.75rem;
  }

  .celebrax-checkout-payment-provider {
    align-items: flex-start;
    padding: 0 8px;
    text-align: left;
  }

  .celebrax-checkout-inline-error {
    margin: 14px 14px 0;
  }

  .celebrax-checkout-loading-state {
    min-height: 430px;
    padding: 46px 22px;
  }

  .celebrax-checkout-loading-visual {
    grid-template-columns: 50px 64px 50px;
  }

  .celebrax-checkout-loading-check,
  .celebrax-checkout-loading-mp {
    width: 50px;
    height: 50px;
  }

  .celebrax-site-address-row {
    grid-template-columns: 1fr;
  }

  .celebrax-site-address-row span {
    min-height: 40px;
    justify-content: center;
    border-top: 1px solid #d9e1ec;
    border-left: 0;
  }
}

@media (max-width: 380px) {
  .celebrax-checkout-heading {
    gap: 9px;
  }

  .celebrax-checkout-brand-mark {
    display: none;
  }

  .celebrax-checkout-progress {
    padding-inline: 14px;
  }

  .celebrax-coupon-row {
    grid-template-columns: 1fr;
  }

  .celebrax-coupon-apply-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .celebrax-checkout-container,
  .celebrax-checkout-step,
  .celebrax-checkout-loading-route::after,
  .celebrax-checkout-spinner,
  .celebrax-checkout-btn-submit.is-loading .celebrax-submit-icon {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .celebrax-checkout-btn-submit,
  .celebrax-checkout-close {
    transition: none;
  }
}


/* Cadastro funcional do plano gratuito */
.celebrax-free-password-note {
  margin: .65rem 0 0;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.5;
}

.celebrax-checkout-free-success {
  display: grid;
  justify-items: center;
  gap: .85rem;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}

.celebrax-checkout-free-success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 2rem;
  font-weight: 900;
}

.celebrax-checkout-free-success h3 {
  margin: 0;
  color: #0b1730;
  font-size: clamp(1.45rem, 4vw, 2.1rem);
}

.celebrax-checkout-free-success > p {
  max-width: 48ch;
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.celebrax-checkout-free-access-card {
  display: grid;
  gap: .35rem;
  width: min(100%, 420px);
  padding: 1rem 1.2rem;
  border: 1px solid #dbe5f3;
  border-radius: 16px;
  background: #f8fbff;
}

.celebrax-checkout-free-access-card span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.celebrax-checkout-free-access-card strong {
  color: #0b1730;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.celebrax-checkout-free-success .celebrax-checkout-btn-submit {
  width: min(100%, 420px);
  text-decoration: none;
}

.celebrax-checkout-free-public-link {
  color: #0052cc;
  font-size: .86rem;
  font-weight: 800;
}

.celebrax-checkout-modal.is-free-plan .celebrax-plan-price {
  color: #15803d;
}
