@charset "UTF-8";


/* Ensure anything with the hidden attribute is actually hidden */
.ambx [hidden] {
  display: none !important;
}

/* Your .error-msg sets display:block globally; respect [hidden] */
.ambx .error-msg[hidden] {
  display: none !important;
}

/* Wrapper */
.ambx__hero {
  background: linear-gradient(135deg, rgba(83, 196, 202, 0.12), rgba(179, 137, 187, 0.12));
  border: 1px solid rgba(58, 60, 65, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 22px 20px;
}
.ambx__hero-inner h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.02em;
}
.ambx__hero-inner p {
  margin: 0;
  color: #3a3c41;
  text-align: center;
}
.ambx__foot {
  margin-top: 18px;
  color: #7b7d85;
  text-align: center;
}

/* Badges, Cards */
.ambx .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  font-weight: 700;
  font-size: 0.8rem;
  background: linear-gradient(135deg, #53c4ca, #b389bb);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(83, 196, 202, 0.25);
}

.ambx .card {
  background: #fff;
  border: 1px solid rgba(58, 60, 65, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 18px;
  margin-top: 14px;
}

.ambx .step__head {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}
/* RC1: the step's title sits clear of its badge and above its note, as live (measured: 40px
   under the badge, 30px over the note); the theme gives the calculator's H2 no margin. */
.ambx .step__head h2 {
  margin: 30px 0 20px;
}
.ambx .step__head .muted {
  color: #7b7d85;
  margin: 0;
}

/* Step lock visual */
.ambx .step.is-locked {
  position: relative;
  pointer-events: none;
}
.ambx .step.is-locked::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 4;
}
.ambx .step.is-locked .lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
}
.ambx .step.is-locked .lock-overlay__inner {
  display: grid;
  gap: 6px;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(58, 60, 65, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.ambx .step.is-locked .lock-overlay__inner .lock-ico {
  font-size: 22px;
}
.ambx .step.is-locked > *:not(.lock-overlay) {
  filter: blur(2px) saturate(0.9);
}

.ambx .step.is-unlocked .lock-overlay {
  display: none;
}

/* Notes */
.ambx .note {
  margin-top: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.ambx .note--info {
  background: rgba(83, 196, 202, 0.08);
  border: 1px solid rgba(83, 196, 202, 0.2);
}
.ambx .note--warn {
  background: rgba(255, 180, 0, 0.12);
  border: 1px solid rgba(255, 180, 0, 0.35);
}
.ambx .note--err {
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.25);
}

/* Inputs */
.ambx label {
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0px;
}

.ambx input[type=text],
.ambx select {
  font-family: inherit;
  color: var(--lv-ink, #3a3c41);
  background-color: #fff;
  border: 1px solid rgba(58, 60, 65, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
  width: 100%;
  height: unset;
  margin: 0;
}
.ambx .handle-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ambx .url-field {
  position: relative;
}
.ambx .url-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.ambx .url-field__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.ambx #post_url.url-field__input {
  transition: padding-left 0.2s ease;
}
.ambx #post_url.url-field__input.has-icon {
  padding-left: 44px;
}
.ambx input.handle-input {
  width: 200px;
}
/* RC1 (John, 22 Oct 2026, review desk q-11: "the calculator ... all the styling is wrong"):
   the check button is the site's purple button (live's Elementor kit gave it lavender; the
   rebuild has no kit, so it was an unstyled grey bar), faded while it waits for a link, as live. */
.ambx button.check-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: var(--lv-radius, 10px);
  padding: 14px 20px;
  background-color: var(--lv-purple-text, #b389bb);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.ambx button.check-btn:not(:disabled):hover,
.ambx button.check-btn:focus-visible {
  background-color: var(--lv-teal-text, #53c4ca);
}
.ambx button.check-btn:focus-visible {
  outline: 2px solid var(--lv-ink, #3a3c41);
  outline-offset: 2px;
}
.ambx button.check-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ambx .status-msg:empty {
  display: none;
}
/* Status with inline spinner */
.ambx .status-msg {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Small spinner */
.ambx .status-msg .spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.15);
  border-top-color: #00a4b4; /* or your brand accent */
  animation: amb-spin 0.6s linear infinite;
}

@keyframes amb-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Only for select boxes */
.ambx select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg fill='%233a3c41' height='32' viewBox='0 0 24 24' width='32' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 14px center;
  background-size: 26px;
  padding-right: 52px;
  cursor: pointer;
}
.ambx input[type=text]:focus,
.ambx select:focus {
  border-color: #53c4ca;
  box-shadow: 0 0 0 4px rgba(83, 196, 202, 0.15);
}
.ambx input[type=text].invalid,
.ambx select.invalid {
  border-color: #d84a4a;
  box-shadow: 0 0 0 4px rgba(216, 74, 74, 0.12);
}

.ambx .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: flex-start;
}
@media (max-width: 680px) {
  .ambx .grid-2 {
    grid-template-columns: 1fr;
  }
}

.ambx .form-field {
  display: grid;
  gap: 6px;
}

/* Status message for handle fetch */
.ambx .status-msg {
  font-size: 0.85rem;
  color: #3a3c41;
  margin-top: -2px;
  min-height: 18px;
}

/* Status message error */
.ambx .status-msg.error {
  color: #d84a4a;
}

/* Inline loader for handle lookups */
.ambx .handle-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(58, 60, 65, 0.2);
  border-top-color: #53c4ca;
  animation: spinHandle 0.8s linear infinite;
  margin-left: 6px;
}

@keyframes spinHandle {
  to {
    transform: rotate(360deg);
  }
}

/* Buttons */
.ambx .btn {
  font-family: inherit;
  font-size: 16px;
  border: 1px solid rgba(58, 60, 65, 0.16);
  background: #fff;
  color: #3a3c41;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ambx .btn:active {
  transform: translateY(1px);
}
.ambx .btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #53c4ca, #b389bb);
  color: #fff;
  box-shadow: 0 10px 26px rgba(83, 196, 202, 0.26);
}
.ambx .btn--primary:hover {
  box-shadow: 0 14px 30px rgba(179, 137, 187, 0.26);
}
.ambx .btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ambx .btn--ghost {
  background: transparent;
}
.ambx .btn--ghost:hover {
  background: rgba(58, 60, 65, 0.04);
}
.ambx .btn--calculate {
  margin-left: auto;
}


.ambx .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ambx .actions--end {
  justify-content: flex-end;
}


/* Input cards */
.ambx .input-card {
  margin-top: 12px;
  border: 1px solid rgba(58, 60, 65, 0.1);
  border-radius: 12px;
  background: #f0f5f7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 14px;
}
.ambx .input-card__title {
  font-weight: 700;
  margin-bottom: 10px;
}




/* Campaign box */
.ambx .campaign {
  margin-top: 14px;
}
.ambx .campaign .campaign__box {
  border: 2px dashed rgba(83, 196, 202, 0.35);
  border-radius: 12px;
  background: rgba(83, 196, 202, 0.06);
  padding: 14px;
  display: grid;
  gap: 6px;
}
.ambx .campaign .campaign__toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.ambx .campaign .campaign__toggle input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}
.ambx .campaign .campaign__label {
  font-weight: 700;
  display: inline-grid;
  gap: 2px;
}
.ambx .campaign .campaign__sub {
  font-weight: 600;
  color: #7b7d85;
}
.ambx .campaign .campaign__note {
  color: #7b7d85;
  font-size: 0.9rem;
}

/* Bonuses */
.ambx .bonuses {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(58, 60, 65, 0.2);
  border-radius: 12px;
  background: rgba(179, 137, 187, 0.05);
  display: grid;
  gap: 10px;
}
.ambx .bonuses__hd {
  font-weight: 700;
}
.ambx .bonuses__list {
  display: grid;
  gap: 10px;
}
.ambx .bonuses .bonus-line {
  background: #fff;
  border: 1px solid rgba(58, 60, 65, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.ambx .bonuses .bonus-line input {
  width: 18px;
  height: 18px;
}
.ambx .bonuses .bonus-line .bl__label {
  font-weight: 700;
}
.ambx .bonuses .bonus-line .bl__fee {
  margin-left: auto;
  font-weight: 700;
}

/* Results */
.ambx .step--results[hidden] {
  display: none;
}

.ambx .results .meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 16px;
  border: 1px solid rgba(58, 60, 65, 0.1);
  border-radius: 12px;
  padding: 12px;
  background: #f0f5f7;
  margin-bottom: 10px;
}
.ambx .results .meta .k {
  font-weight: 700;
}
.ambx .results .calc-loader {
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed rgba(58, 60, 65, 0.16);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(179, 137, 187, 0.08), rgba(83, 196, 202, 0.08));
}
.ambx .results .spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 6px solid rgba(58, 60, 65, 0.12);
  border-top-color: #53c4ca;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.ambx .results .line {
  border: 1px dashed rgba(58, 60, 65, 0.16);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}
.ambx .results .line__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ambx .results .line__meta {
  color: #7b7d85;
  font-size: 0.9rem;
}
.ambx .results .line__fee {
  font-weight: 700;
}
.ambx .results .line .icons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ambx .results .line .breakdown {
  font-size: 0.9rem;
  color: #7b7d85;
}
.ambx .results .total {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px;
  padding: 16px 14px;
  background: linear-gradient(135deg, rgba(179, 137, 187, 0.18), rgba(83, 196, 202, 0.18));
  border: 1px solid rgba(58, 60, 65, 0.08);
}
.ambx .results .total .label {
  font-weight: 700;
}
.ambx .results .total .value {
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 28px);
}
.ambx .results .total--bonus {
  background: linear-gradient(135deg, rgba(179, 137, 187, 0.22), rgba(83, 196, 202, 0.22));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.ambx .results .total--final {
  background: linear-gradient(135deg, rgba(179, 137, 187, 0.28), rgba(83, 196, 202, 0.28));
}

/* extra tweaks */
.ambx .error-msg {
  color: #d84a4a;
  font-size: 0.85rem;
  margin-top: -4px;
  display: block;
}


.ambx .warn-box {
  display: block;
  width: 100%;
  background: #fff4f4;
  border-left: 4px solid #e63946;
  padding: 12px 14px;
  margin-top: 8px;
  margin-bottom: 6px;
  border-radius: 4px;

  font-size: 0.9rem;
  line-height: 1.45;
  color: #7a1f1f;

  animation: warnFade 0.3s ease-out;
}

.ambx .warn-box strong {
  color: #b01717;
  font-weight: 600;
}

.ambx .success-box {
  display: block;
  width: 100%;
  background: #E9F7EF;
  border-left: 4px solid #0F7B3A;
  padding: 12px 14px;
  margin-top: 8px;
  margin-bottom: 6px;
  border-radius: 4px;

  font-size: 0.9rem;
  line-height: 1.45;
  color: #0F7B3A;

  animation: warnFade 0.3s ease-out;
}

.ambx .success-box strong {
  color: #0F7B3A;
  font-weight: 600;
}

@keyframes warnFade {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}