body [data-mpay-hidden-downsell="true"] {
  display: none !important;
}

.mpay-basic-flow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
}

.mpay-basic-flow-tabs button,
.mpay-basic-flow-tabs button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary) / .35);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mpay-basic-flow-tabs button:hover {
  border-color: hsl(var(--primary) / .55);
  background: hsl(var(--primary) / .12);
}

.mpay-basic-flow-tabs button.is-active {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
}

[data-mpay-flow-group][hidden],
[data-mpay-flow-extra][hidden] {
  display: none !important;
}

[data-mpay-basic-back],
[data-mpay-basic-icon],
[data-mpay-basic-subtitle],
[data-mpay-upsell-base],
.mpay-downsell-actions,
.mpay-downsell-save-all {
  display: none !important;
}

[data-mpay-welcome-part][hidden] {
  display: none !important;
}


html[data-mpay-basic-booting="true"] {
  background:
    radial-gradient(circle at 44% 14%, rgb(37 99 235 / .22), transparent 32%),
    linear-gradient(115deg, #061923 0%, #0b2a4c 48%, #030914 100%);
}

html[data-mpay-basic-booting="true"] body {
  background: transparent;
}

html[data-mpay-basic-booting="true"] #root {
  visibility: hidden;
}

html[data-mpay-basic-booting="true"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  background:
    linear-gradient(rgb(37 99 235 / .04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(37 99 235 / .04) 1px, transparent 1px),
    radial-gradient(circle at 52% 28%, rgb(59 130 246 / .18), transparent 30%),
    linear-gradient(115deg, #061923 0%, #0b2a4c 48%, #030914 100%);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

html[data-mpay-basic-booting="true"] body::after {
  content: "Carregando fluxo...";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2147483001;
  transform: translate(-50%, -50%);
  padding: 14px 18px;
  border: 1px solid rgb(96 165 250 / .28);
  border-radius: 12px;
  color: rgb(219 234 254);
  background: rgb(3 11 23 / .82);
  box-shadow: 0 24px 70px rgb(0 0 0 / .28);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
}

.mpay-basic-audio-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  padding: 20px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--card));
}

.mpay-basic-audio-card h3 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 18px;
  font-weight: 700;
}

.mpay-basic-audio-card p {
  margin: 6px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
}

.mpay-basic-audio-upload {
  min-width: 190px;
}

.mpay-basic-audio-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mpay-basic-audio-upload span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 14px;
  border: 1px dashed hsl(var(--primary) / .55);
  border-radius: 8px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

[data-mpay-flow-group] {
  scroll-margin-top: 90px;
}

.mpay-flow-plan-editor {
  display: grid;
  gap: 18px;
  padding: 4px 0;
}

.mpay-flow-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mpay-flow-plan-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 20px;
  font-weight: 800;
}

.mpay-flow-plan-header h3 span,
.mpay-flow-plan-empty-icon,
.mpay-flow-plan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--primary) / .45);
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
}

.mpay-flow-plan-header h3 span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 13px;
}

.mpay-flow-plan-header p {
  margin: 6px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
}

.mpay-flow-plan-counter {
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  font-weight: 800;
}

.mpay-flow-plan-actions {
  display: flex;
  justify-content: flex-end;
}

.mpay-flow-plan-actions button,
.mpay-flow-plan-empty-state button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid hsl(var(--primary) / .45);
  border-radius: 8px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.mpay-flow-plan-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.mpay-flow-plan-list {
  display: grid;
  gap: 14px;
}

.mpay-flow-plan-empty,
.mpay-flow-plan-empty-state {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}

.mpay-flow-plan-empty-state {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 228px;
  border: 1px dashed hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--background) / .22);
  text-align: center;
}

.mpay-flow-plan-empty-state strong {
  color: hsl(var(--muted-foreground));
  font-size: 15px;
}

.mpay-flow-plan-empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  font-size: 28px;
}

.mpay-flow-plan-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid hsl(var(--border) / .9);
  border-radius: 12px;
  background: hsl(var(--secondary) / .22);
}

.mpay-flow-plan-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid hsl(var(--border) / .7);
}

.mpay-flow-plan-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  font-size: 18px;
}

.mpay-flow-plan-summary h4 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 18px;
  font-weight: 800;
}

.mpay-flow-plan-summary p {
  margin: 5px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  font-weight: 700;
}

.mpay-flow-plan-summary p span {
  padding: 0 6px;
}

.mpay-flow-plan-collapse {
  position: absolute;
  top: 26px;
  right: 22px;
  border: 0;
  color: hsl(var(--muted-foreground));
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.mpay-flow-plan-card.is-collapsed .mpay-flow-plan-fields,
.mpay-flow-plan-card.is-collapsed .mpay-flow-plan-delivery-panel,
.mpay-flow-plan-card.is-collapsed .mpay-flow-plan-ob-panel,
.mpay-flow-plan-card.is-collapsed .mpay-flow-plan-remove {
  display: none;
}

.mpay-flow-plan-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mpay-flow-plan-card label {
  display: grid;
  gap: 6px;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 700;
}

.mpay-flow-plan-card input,
.mpay-flow-plan-card textarea,
.mpay-flow-plan-card select {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  color: hsl(var(--foreground));
  background: hsl(var(--background) / .55);
  padding: 13px 14px;
  font-size: 14px;
  outline: none;
}

.mpay-flow-plan-card input:focus,
.mpay-flow-plan-card textarea:focus,
.mpay-flow-plan-card select:focus {
  border-color: hsl(var(--primary) / .8);
  box-shadow: 0 0 0 3px hsl(var(--primary) / .12);
}

.mpay-flow-plan-delivery-panel,
.mpay-flow-plan-ob-panel {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid hsl(var(--border) / .7);
}

.mpay-flow-plan-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--foreground));
}

.mpay-flow-plan-section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #22c55e;
  background: rgb(34 197 94 / .12);
}

.mpay-flow-plan-wide {
  grid-column: 1 / -1;
}

.mpay-flow-plan-ob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mpay-flow-plan-ob-note,
.mpay-flow-plan-media-note small {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 700;
}

.mpay-flow-plan-ob-body {
  display: none;
  gap: 14px;
}

.mpay-flow-plan-ob-panel.is-open .mpay-flow-plan-ob-body {
  display: grid;
}

.mpay-flow-plan-switch {
  display: inline-flex !important;
}

.mpay-flow-plan-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mpay-flow-plan-switch span {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: hsl(var(--muted) / .7);
}

.mpay-flow-plan-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: hsl(var(--foreground));
  transition: transform .16s ease;
}

.mpay-flow-plan-switch input:checked + span {
  background: hsl(var(--primary));
}

.mpay-flow-plan-switch input:checked + span::after {
  transform: translateX(14px);
  background: white;
}

.mpay-flow-plan-media-note {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 18px;
  border: 1px dashed hsl(var(--border));
  border-radius: 10px;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--background) / .2);
}

.mpay-flow-plan-remove {
  min-height: 38px;
  border: 1px solid rgb(248 113 113 / .28);
  border-radius: 9px;
  color: #ef4444;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 720px) {
  .mpay-flow-plan-header,
  .mpay-flow-plan-ob-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mpay-flow-plan-fields {
    grid-template-columns: 1fr;
  }
}

.mpay-upsell-tools {
  display: grid;
  gap: 18px;
}

.mpay-upsell-logic,
.mpay-upsell-card {
  padding: 22px;
  border: 1px solid hsl(var(--border) / .9);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 31, 51, .92), rgba(5, 13, 26, .96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .24);
}

.mpay-upsell-logic strong,
.mpay-upsell-card h3 {
  color: hsl(var(--foreground));
  font-size: 16px;
  font-weight: 800;
}

.mpay-upsell-logic p {
  margin: 8px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  line-height: 1.5;
}

.mpay-upsell-list {
  display: grid;
  gap: 14px;
}

.mpay-downsell-tools {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 5;
  gap: 18px;
  width: min(100%, 1220px);
  min-height: 520px;
  margin: 28px auto 0;
}

.mpay-downsell-tools[hidden] {
  display: none !important;
}

[data-mpay-downsell-base] {
  display: none !important;
}

.mpay-downsell-warning {
  padding: 16px 20px;
  border: 1px solid rgb(245 158 11 / .38);
  border-radius: 18px;
  color: rgb(245 158 11);
  background: rgb(120 53 15 / .25);
  font-size: 14px;
  line-height: 1.45;
}

.mpay-upsell-master-toggle,
.mpay-downsell-master-toggle,
.mpay-downsell-package-bump {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: hsl(var(--foreground));
  font-size: 16px;
  font-weight: 800;
}

.mpay-upsell-master-toggle input,
.mpay-downsell-master-toggle input,
.mpay-downsell-package-bump input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mpay-upsell-master-toggle span,
.mpay-downsell-master-toggle span,
.mpay-downsell-package-bump span {
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: rgb(39 39 42);
  position: relative;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
}

.mpay-upsell-master-toggle span::after,
.mpay-downsell-master-toggle span::after,
.mpay-downsell-package-bump span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgb(10 10 10);
  transition: transform .18s ease, background .18s ease;
}

.mpay-upsell-master-toggle input:checked + span,
.mpay-downsell-master-toggle input:checked + span,
.mpay-downsell-package-bump input:checked + span {
  background: rgb(34 197 94);
}

.mpay-upsell-master-toggle input:checked + span::after,
.mpay-downsell-master-toggle input:checked + span::after,
.mpay-downsell-package-bump input:checked + span::after {
  transform: translateX(20px);
  background: white;
}

.mpay-upsell-disabled-state {
  padding: 22px;
  border: 1px solid hsl(var(--border) / .9);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 31, 51, .92), rgba(5, 13, 26, .96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .24);
}

.mpay-upsell-disabled-state strong {
  display: block;
  color: hsl(var(--foreground));
  font-size: 18px;
  font-weight: 800;
}

.mpay-upsell-disabled-state p {
  margin: 10px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 15px;
}

.mpay-downsell-add-row {
  display: flex;
  justify-content: center;
  padding: 12px 0 2px;
}

.mpay-downsell-add-message {
  min-height: 40px;
  padding: 0 26px;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 999px;
  color: hsl(var(--muted-foreground));
  background: rgb(39 39 42 / .76);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.mpay-downsell-list {
  display: grid;
  gap: 18px;
}

.mpay-downsell-message-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 18px;
  color: hsl(var(--foreground));
  background: rgb(32 32 35 / .94);
  box-shadow: 0 20px 40px rgb(0 0 0 / .18);
}

.mpay-downsell-message-head,
.mpay-downsell-head-actions,
.mpay-downsell-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mpay-downsell-message-head {
  justify-content: space-between;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  padding-bottom: 18px;
}

.mpay-downsell-title-wrap h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.mpay-downsell-drag {
  color: hsl(var(--muted-foreground));
  font-size: 20px;
}

.mpay-downsell-collapse,
.mpay-downsell-duplicate,
.mpay-downsell-delete {
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 10px;
  color: hsl(var(--foreground));
  background: rgb(39 39 42 / .8);
  cursor: pointer;
  font-weight: 800;
}

.mpay-downsell-collapse {
  width: 28px;
  height: 28px;
}

.mpay-downsell-duplicate,
.mpay-downsell-delete {
  min-height: 46px;
  padding: 0 18px;
}

.mpay-downsell-delete {
  border-color: rgb(239 68 68 / .35);
  color: rgb(248 113 113);
  background: rgb(127 29 29 / .18);
}

.mpay-downsell-editor {
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 14px;
  overflow: hidden;
  background: rgb(38 38 38);
}

[data-mpay-legacy-message-toolbar="true"] {
  display: none !important;
}

.mpay-message-formatting-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-height: 30px;
  padding: 3px 2px;
  border: 0;
  background: transparent;
}

.mpay-message-formatting-toolbar button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: hsl(var(--muted-foreground));
  background: transparent;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}

.mpay-message-formatting-toolbar button:hover,
.mpay-message-formatting-toolbar button:focus-visible {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary) / .7);
  outline: none;
}

.mpay-message-formatting-toolbar button::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 60;
  left: 50%;
  bottom: calc(100% + 7px);
  padding: 5px 7px;
  border: 1px solid hsl(var(--border));
  border-radius: 5px;
  color: hsl(var(--foreground));
  background: hsl(var(--popover));
  box-shadow: 0 8px 20px rgb(0 0 0 / .28);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 3px);
  transition: opacity .12s ease, transform .12s ease;
}

.mpay-message-formatting-toolbar button:hover::after,
.mpay-message-formatting-toolbar button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mpay-message-formatting-toolbar + textarea {
  margin-top: 0 !important;
}

.mpay-downsell-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid rgb(255 255 255 / .08);
}

.mpay-downsell-toolbar button {
  min-width: 34px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  color: hsl(var(--foreground));
  background: rgb(24 24 27);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.mpay-downsell-toolbar .is-premium {
  width: auto;
  padding: 0 12px;
  color: rgb(250 204 21);
  background: rgb(113 63 18 / .34);
}

.mpay-downsell-toolbar span {
  width: 1px;
  height: 22px;
  background: rgb(255 255 255 / .12);
}

.mpay-downsell-editor textarea,
.mpay-downsell-package-form textarea {
  width: 100%;
  min-height: 156px;
  padding: 16px;
  border: 0;
  color: hsl(var(--foreground));
  background: transparent;
  font-size: 15px;
  resize: vertical;
  outline: none;
}

.mpay-downsell-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 200px) minmax(260px, 1fr);
  gap: 18px 24px;
}

.mpay-downsell-config-grid label,
.mpay-downsell-package-form label {
  display: grid;
  gap: 8px;
  color: hsl(var(--foreground));
  font-size: 14px;
  font-weight: 700;
}

.mpay-downsell-config-grid select,
.mpay-downsell-package-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 13px;
  color: hsl(var(--foreground));
  background: rgb(39 39 42);
  padding: 0 14px;
  outline: none;
  font-size: 15px;
}

.mpay-downsell-media {
  display: grid;
  gap: 10px;
}

.mpay-downsell-media p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}

.mpay-downsell-media-row {
  display: grid;
  grid-template-columns: 32px 32px 32px 1fr 40px;
  align-items: center;
  min-height: 54px;
  padding: 0 12px;
  border-radius: 10px;
  color: hsl(var(--muted-foreground));
  background: rgb(31 31 34 / .9);
}

.mpay-downsell-media-row button {
  border: 0;
  color: rgb(248 113 113);
  background: transparent;
  cursor: pointer;
}

.mpay-downsell-upload {
  min-height: 70px;
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 12px 16px;
  border: 1px dashed rgb(255 255 255 / .13);
  border-radius: 12px;
  color: hsl(var(--foreground));
  background: rgb(24 24 27 / .65);
  cursor: pointer;
  text-align: left;
}

.mpay-downsell-upload small {
  color: hsl(var(--muted-foreground));
  font-size: 13px;
}

.mpay-downsell-packages {
  display: grid;
  gap: 18px;
  padding-top: 4px;
}

.mpay-downsell-packages h3 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 24px;
  font-weight: 900;
}

.mpay-downsell-package-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0 18px 12px;
  border-bottom: 1px solid rgb(255 255 255 / .14);
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.mpay-downsell-package-form {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 18px;
}

.mpay-downsell-package-form strong {
  font-size: 16px;
}

.mpay-downsell-package-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  gap: 18px;
}

.mpay-downsell-package-form textarea {
  min-height: 140px;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 14px;
  background: rgb(39 39 42);
}

.mpay-downsell-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgb(255 255 255 / .1);
  padding-top: 14px;
}

.mpay-downsell-save-all {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: rgb(22 163 74);
  cursor: pointer;
  font-weight: 800;
}

.mpay-downsell-save-all.is-saved {
  background: rgb(34 197 94);
}

.mpay-downsell-tools {
  width: min(100%, 760px);
  min-height: 0;
  gap: 16px;
}

.mpay-downsell-warning {
  border-radius: 10px;
  background: rgb(120 53 15 / .18);
}

.mpay-downsell-master-toggle {
  width: fit-content;
}

.mpay-downsell-add-row {
  order: 3;
  padding: 0;
}

.mpay-downsell-add-message {
  width: 100%;
  min-height: 42px;
  border: 1px dashed hsl(var(--primary) / .72);
  border-radius: 8px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
}

.mpay-downsell-message-card {
  gap: 16px;
  padding: 18px;
  border-color: rgb(59 130 246 / .18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgb(13 31 54 / .98), rgb(7 18 34 / .98));
  box-shadow: 0 18px 36px rgb(0 0 0 / .28);
}

.mpay-downsell-message-head {
  border-bottom-color: rgb(59 130 246 / .16);
  padding-bottom: 12px;
}

.mpay-downsell-title-wrap h3 {
  font-size: 15px;
}

.mpay-downsell-collapse,
.mpay-downsell-duplicate,
.mpay-downsell-delete {
  border-radius: 7px;
  background: rgb(15 23 42 / .82);
}

.mpay-downsell-duplicate,
.mpay-downsell-delete {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.mpay-downsell-media-strip {
  display: grid;
  gap: 10px;
}

.mpay-downsell-media-strip p,
.mpay-downsell-editor > label {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  font-weight: 800;
}

.mpay-downsell-media-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mpay-downsell-media-slot,
.mpay-upsell-media-slot,
.mpay-welcome-media-slot {
  aspect-ratio: 1 / .82;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed rgb(59 130 246 / .26);
  border-radius: 8px;
  color: hsl(var(--muted-foreground));
  background: rgb(2 6 23 / .42);
  cursor: pointer;
}

.mpay-downsell-media-slot.has-file,
.mpay-upsell-media-slot.has-file,
.mpay-welcome-media-slot.has-file {
  border-style: solid;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .12);
}

.mpay-downsell-media-slot span,
.mpay-upsell-media-slot span,
.mpay-welcome-media-slot span {
  font-size: 24px;
  font-weight: 800;
}

.mpay-downsell-media-slot small,
.mpay-upsell-media-slot small,
.mpay-welcome-media-slot small {
  font-size: 12px;
}

.mpay-downsell-inline-config {
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgb(59 130 246 / .14);
  border-radius: 8px;
  background: rgb(2 6 23 / .36);
}

.mpay-downsell-inline-config label {
  display: grid;
  gap: 7px;
  min-width: 128px;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 800;
}

.mpay-downsell-editor {
  display: grid;
  gap: 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mpay-downsell-toolbar {
  min-height: 32px;
  padding: 0;
  border: 0;
}

.mpay-downsell-toolbar button {
  min-width: 26px;
  height: 24px;
  border: 1px solid rgb(148 163 184 / .12);
  background: rgb(15 23 42 / .92);
}

.mpay-downsell-toolbar .is-premium {
  color: rgb(250 204 21);
  background: rgb(113 63 18 / .26);
}

.mpay-downsell-editor textarea,
.mpay-downsell-package-form textarea,
.mpay-downsell-delivery textarea {
  border: 1px solid rgb(71 85 105 / .72);
  border-radius: 8px;
  background: rgb(15 23 42 / .78);
}

.mpay-downsell-config-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mpay-downsell-config-grid label,
.mpay-downsell-package-form label,
.mpay-downsell-delivery label {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
}

.mpay-downsell-config-grid select,
.mpay-downsell-inline-config select,
.mpay-downsell-package-form input,
.mpay-downsell-delivery input,
.mpay-downsell-delivery select {
  min-height: 40px;
  border: 1px solid rgb(71 85 105 / .72);
  border-radius: 8px;
  color: hsl(var(--foreground));
  background: rgb(15 23 42 / .82);
}

.mpay-downsell-offer-plans,
.mpay-downsell-delivery {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgb(59 130 246 / .14);
}

.mpay-downsell-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mpay-downsell-section-head strong {
  display: block;
  color: hsl(var(--foreground));
  font-size: 15px;
}

.mpay-downsell-section-head small,
.mpay-downsell-section-head em,
.mpay-downsell-delivery p {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-style: normal;
}

.mpay-downsell-mini-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  white-space: nowrap;
}

.mpay-downsell-mini-toggle input {
  position: absolute;
  opacity: 0;
}

.mpay-downsell-mini-toggle span {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgb(30 41 59);
  position: relative;
}

.mpay-downsell-mini-toggle span::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: 3px;
  left: 3px;
  border-radius: 999px;
  background: rgb(2 6 23);
  transition: transform .18s ease;
}

.mpay-downsell-mini-toggle input:checked + span {
  background: hsl(var(--primary));
}

.mpay-downsell-mini-toggle input:checked + span::after {
  transform: translateX(14px);
  background: white;
}

.mpay-downsell-global-plans {
  display: grid;
  gap: 10px;
}

.mpay-downsell-plan-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 12px;
  border: 1px solid rgb(59 130 246 / .18);
  border-radius: 8px;
  background: rgb(15 23 42 / .68);
}

.mpay-downsell-plan-pill input {
  position: absolute;
  opacity: 0;
}

.mpay-downsell-plan-pill span {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: hsl(var(--primary));
  box-shadow: inset 0 0 0 4px hsl(var(--primary));
}

.mpay-downsell-plan-pill strong {
  font-size: 13px;
}

.mpay-downsell-plan-pill small {
  color: rgb(34 197 94);
  font-weight: 800;
}

.mpay-downsell-plan-price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.mpay-downsell-plan-price s {
  color: hsl(var(--muted-foreground));
  font-weight: 600;
}

.mpay-downsell-plan-price strong {
  color: rgb(34 197 94);
  font-size: inherit;
  font-weight: 800;
}

.mpay-downsell-empty-plans {
  padding: 14px;
  border: 1px dashed rgb(59 130 246 / .22);
  border-radius: 8px;
  color: hsl(var(--muted-foreground));
  text-align: center;
  background: rgb(2 6 23 / .34);
}

.mpay-downsell-packages.is-hidden,
.mpay-downsell-global-plans.is-hidden {
  display: none !important;
}

.mpay-downsell-packages {
  gap: 12px;
  padding: 0;
}

.mpay-downsell-add-plan {
  min-height: 36px;
  border: 1px dashed rgb(59 130 246 / .35);
  border-radius: 8px;
  color: hsl(var(--primary));
  background: rgb(2 6 23 / .28);
}

.mpay-downsell-package-form {
  border-radius: 8px;
  background: rgb(2 6 23 / .2);
}

.mpay-downsell-delivery {
  padding-bottom: 2px;
}

.mpay-downsell-actions {
  border-top: 0;
}

.mpay-downsell-save-all {
  background: hsl(var(--primary));
}

.mpay-downsell-embed {
  display: grid;
  gap: 14px;
  min-height: 760px;
  padding: 18px;
  border: 1px solid hsl(var(--border) / .9);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 31, 51, .88), rgba(5, 13, 26, .96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .24);
}

.mpay-downsell-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mpay-downsell-embed-head h3 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 20px;
  font-weight: 800;
}

.mpay-downsell-embed-head p {
  margin: 6px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
}

.mpay-downsell-embed-head a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid hsl(var(--primary) / .55);
  border-radius: 8px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.mpay-downsell-embed iframe {
  width: 100%;
  min-height: 700px;
  height: min(1120px, calc(100vh - 220px));
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.mpay-downsell-tools {
  width: min(100%, 760px) !important;
  gap: 18px !important;
}

.mpay-downsell-empty-state {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed rgb(59 130 246 / .28);
  border-radius: 10px;
  color: hsl(var(--muted-foreground));
  background: rgb(2 6 23 / .3);
  font-size: 14px;
  font-weight: 700;
}

.mpay-downsell-message-card {
  padding: 18px !important;
  gap: 16px !important;
  overflow: hidden;
}

.mpay-downsell-message-head,
.mpay-downsell-title-wrap,
.mpay-downsell-head-actions {
  display: flex;
  align-items: center;
}

.mpay-downsell-message-head {
  justify-content: space-between;
  gap: 14px;
}

.mpay-downsell-title-wrap,
.mpay-downsell-head-actions {
  gap: 9px;
}

.mpay-downsell-title-wrap h3 {
  line-height: 1.2;
}

.mpay-downsell-drag,
.mpay-downsell-collapse,
.mpay-downsell-duplicate,
.mpay-downsell-delete,
.mpay-downsell-toolbar button,
.mpay-downsell-media-slot,
.mpay-upsell-media-slot,
.mpay-welcome-media-slot,
.mpay-downsell-save-all,
.mpay-downsell-add-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mpay-downsell-drag {
  width: 18px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  letter-spacing: -5px;
}

.mpay-downsell-collapse {
  width: 24px;
  height: 24px;
  padding: 0;
}

.mpay-downsell-media-slots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mpay-downsell-media-slot,
.mpay-upsell-media-slot,
.mpay-welcome-media-slot {
  flex-direction: column;
  min-height: 124px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mpay-downsell-media-slot img,
.mpay-downsell-media-slot video,
.mpay-upsell-media-slot img,
.mpay-upsell-media-slot video,
.mpay-welcome-media-slot img,
.mpay-welcome-media-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpay-downsell-media-slot.has-file,
.mpay-upsell-media-slot.has-file,
.mpay-welcome-media-slot.has-file {
  border-style: solid !important;
  border-color: rgb(59 130 246 / .45) !important;
  background: rgb(2 6 23 / .62) !important;
  cursor: pointer;
}

.mpay-downsell-media-slot.is-dragging,
.mpay-upsell-media-slot.is-dragging,
.mpay-welcome-media-slot.is-dragging {
  opacity: .55;
}

.mpay-downsell-media-slot.is-drag-over,
.mpay-upsell-media-slot.is-drag-over,
.mpay-welcome-media-slot.is-drag-over {
  border-color: rgb(59 130 246 / .9) !important;
  box-shadow: inset 0 0 0 1px rgb(59 130 246 / .65), 0 0 0 3px rgb(59 130 246 / .16);
}

.mpay-downsell-media-slot.has-file::after,
.mpay-upsell-media-slot.has-file::after,
.mpay-welcome-media-slot.has-file::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / .05), rgb(0 0 0 / .62));
  opacity: .85;
  pointer-events: none;
  transition: opacity .16s ease;
}

.mpay-downsell-media-slot.has-file:hover::after,
.mpay-upsell-media-slot.has-file:hover::after,
.mpay-welcome-media-slot.has-file:hover::after {
  opacity: .98;
}

.mpay-downsell-media-overlay,
.mpay-upsell-media-overlay,
.mpay-welcome-media-overlay {
  position: relative;
  z-index: 2;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  background: rgb(15 23 42 / .78);
  font-size: 12px !important;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}

.mpay-downsell-media-slot.has-file:hover .mpay-downsell-media-overlay,
.mpay-upsell-media-slot.has-file:hover .mpay-upsell-media-overlay,
.mpay-welcome-media-slot.has-file:hover .mpay-welcome-media-overlay {
  opacity: 1;
  transform: translateY(0);
}

.mpay-downsell-media-slot.has-file small,
.mpay-upsell-media-slot.has-file small,
.mpay-welcome-media-slot.has-file small {
  position: absolute;
  z-index: 2;
  left: 8px;
  right: 8px;
  bottom: 8px;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 3px rgb(0 0 0 / .72);
}

.mpay-downsell-media-remove,
.mpay-upsell-media-remove,
.mpay-welcome-media-remove {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(248 113 113 / .55);
  border-radius: 8px;
  color: white;
  background: rgb(239 68 68 / .92);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transition: opacity .16s ease, transform .16s ease;
}

.mpay-downsell-media-slot.has-file:hover .mpay-downsell-media-remove,
.mpay-upsell-media-slot.has-file:hover .mpay-upsell-media-remove,
.mpay-welcome-media-slot.has-file:hover .mpay-welcome-media-remove {
  opacity: 1;
}

.mpay-media-drag-handle {
  position: absolute !important;
  z-index: 3 !important;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(148 163 184 / .35);
  border-radius: 8px;
  color: rgb(226 232 240) !important;
  background: rgb(15 23 42 / .74);
  cursor: grab;
  font-size: 15px !important;
  font-weight: 900;
  letter-spacing: -5px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity .16s ease, transform .16s ease;
}

.mpay-downsell-media-slot.has-file:hover .mpay-media-drag-handle,
.mpay-upsell-media-slot.has-file:hover .mpay-media-drag-handle,
.mpay-welcome-media-slot.has-file:hover .mpay-media-drag-handle {
  opacity: 1;
  transform: translateY(0);
}

.mpay-downsell-media-remove:hover,
.mpay-upsell-media-remove:hover,
.mpay-welcome-media-remove:hover {
  transform: scale(1.04);
}

.mpay-media-preview-placeholder {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: rgb(147 197 253);
  background: rgb(30 64 175 / .32);
  font-size: 18px;
  font-weight: 900;
  pointer-events: none;
}

.mpay-welcome-media-preview {
  margin-top: 16px;
}

.mpay-welcome-media-add {
  min-width: 180px;
  min-height: 88px;
  border: 1px dashed rgba(59, 155, 255, .48) !important;
  background: rgba(8, 20, 38, .55) !important;
  color: #8fc7ff !important;
}

.mpay-media-preview-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(21, 43, 72, .9), rgba(7, 17, 31, .96));
}

.mpay-media-preview-placeholder::after {
  content: "Carregando preview";
  color: rgba(220, 232, 247, .65);
  font-size: 12px;
}

.mpay-welcome-media-slot {
  width: 180px;
  min-height: 128px;
  border: 1px dashed rgb(59 130 246 / .55);
  border-radius: 9px;
  color: hsl(var(--muted-foreground));
  background: rgb(2 6 23 / .48);
  cursor: pointer;
}

.mpay-downsell-inline-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 150px));
  align-items: end;
}

.mpay-downsell-inline-config label,
.mpay-downsell-config-grid label,
.mpay-downsell-package-form label,
.mpay-downsell-delivery label {
  display: grid;
  gap: 7px;
}

.mpay-downsell-toolbar {
  align-items: center;
}

.mpay-downsell-toolbar button {
  padding: 0;
  line-height: 1;
}

.mpay-downsell-editor textarea {
  min-height: 132px;
}

.mpay-downsell-delivery {
  grid-template-columns: 1fr;
}

.mpay-downsell-delivery select {
  width: fit-content;
  min-width: 172px;
}

.mpay-downsell-delivery input,
.mpay-downsell-delivery textarea {
  width: 100%;
}

.mpay-downsell-delivery textarea {
  min-height: 118px;
}

.mpay-downsell-delivery-url.is-hidden {
  display: none !important;
}

.mpay-downsell-delivery {
  gap: 10px !important;
  padding: 18px 0 0 !important;
  border-top: 1px solid rgb(59 130 246 / .14) !important;
}

.mpay-downsell-delivery .mpay-downsell-section-head {
  margin-bottom: 2px;
}

.mpay-downsell-delivery .mpay-downsell-section-head strong {
  font-size: 14px;
  font-weight: 900;
}

.mpay-downsell-delivery .mpay-downsell-section-head small {
  margin-top: 8px;
  line-height: 1.4;
}

.mpay-downsell-delivery-mode {
  display: block !important;
}

.mpay-downsell-delivery-mode select {
  width: 100% !important;
  min-height: 48px !important;
  border-radius: 10px !important;
  border-color: rgb(59 130 246 / .46) !important;
  background-color: rgb(2 6 23 / .82) !important;
  padding: 0 42px 0 16px !important;
  color: hsl(var(--foreground)) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.mpay-downsell-delivery-url,
.mpay-downsell-delivery-message {
  display: grid !important;
  gap: 7px !important;
  color: hsl(var(--muted-foreground)) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.mpay-downsell-delivery-url input {
  min-height: 42px !important;
  border-radius: 10px !important;
  background: rgb(0 0 0 / .34) !important;
}

.mpay-downsell-delivery-message textarea {
  min-height: 88px !important;
  border-style: dashed !important;
  border-radius: 10px !important;
  background: rgb(0 0 0 / .28) !important;
  padding: 14px 16px !important;
}

.mpay-downsell-delivery p {
  margin: -2px 0 0 !important;
  font-size: 12px !important;
}

.mpay-downsell-master-toggle {
  min-height: 30px;
  align-items: center;
}

.mpay-downsell-master-toggle span {
  flex: 0 0 auto;
}

.mpay-upsell-card {
  display: grid;
  gap: 18px;
}

.mpay-upsell-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mpay-upsell-card-head h3 {
  margin: 0;
  font-size: 20px;
}

.mpay-upsell-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mpay-upsell-remove {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgb(239 68 68 / .9);
  border-radius: 7px;
  color: rgb(248 113 113);
  background: rgb(127 29 29 / .1);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.mpay-upsell-switch,
.mpay-upsell-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mpay-upsell-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mpay-upsell-switch span,
.mpay-upsell-mini-switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgb(30 41 59);
  position: relative;
  box-shadow: inset 0 0 0 1px rgb(148 163 184 / .14);
}

.mpay-upsell-switch span::after,
.mpay-upsell-mini-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(15 23 42);
  transition: transform .18s ease, background .18s ease;
}

.mpay-upsell-switch input:checked + span {
  background: rgb(59 130 246);
}

.mpay-upsell-switch input:checked + span::after {
  transform: translateX(20px);
}

.mpay-upsell-desc {
  margin: -6px 0 4px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}

.mpay-upsell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
}

.mpay-upsell-files {
  grid-template-columns: 1fr 1fr;
}

.mpay-upsell-card label {
  display: grid;
  gap: 7px;
  color: hsl(var(--foreground));
  font-size: 14px;
  font-weight: 700;
}

.mpay-upsell-file-field {
  display: grid;
  gap: 7px;
  color: hsl(var(--foreground));
  font-size: 14px;
  font-weight: 700;
}

.mpay-upsell-media-slot {
  width: min(100%, 190px);
  min-height: 126px;
}

.mpay-upsell-card input,
.mpay-upsell-card textarea {
  width: 100%;
  border: 1px solid rgb(71 85 105 / .72);
  border-radius: 9px;
  color: hsl(var(--foreground));
  background: rgb(15 23 42 / .86);
  font-size: 14px;
  outline: none;
}

.mpay-upsell-card input {
  height: 44px;
  padding: 0 12px;
}

.mpay-upsell-card textarea {
  min-height: 128px;
  padding: 12px;
  resize: vertical;
}

.mpay-upsell-card input:focus,
.mpay-upsell-card textarea:focus {
  border-color: rgb(59 130 246);
  box-shadow: 0 0 0 3px rgb(59 130 246 / .14);
}

.mpay-upsell-message {
  min-height: 138px !important;
}

.mpay-upsell-delivery {
  min-height: 118px !important;
}

.mpay-upsell-count {
  justify-self: end;
  margin-top: -4px;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 600;
}

.mpay-upsell-file {
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgb(59 130 246 / .35);
  border-radius: 9px;
  color: hsl(var(--foreground));
  background: rgb(2 6 23 / .7);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.mpay-upsell-native-file {
  display: none !important;
}

.mpay-upsell-file-name {
  min-height: 16px;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 600;
  word-break: break-word;
}

.mpay-upsell-inline-toggle {
  color: hsl(var(--foreground));
  font-size: 14px;
  font-weight: 800;
}

.mpay-upsell-inline-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mpay-upsell-inline-toggle input:checked + .mpay-upsell-mini-switch {
  background: rgb(59 130 246);
}

.mpay-upsell-inline-toggle input:checked + .mpay-upsell-mini-switch::after {
  transform: translateX(20px);
}

.mpay-upsell-timer {
  display: grid;
  gap: 10px;
}

.mpay-upsell-timer strong {
  color: hsl(var(--foreground));
  font-size: 14px;
}

.mpay-upsell-timer p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
}

.mpay-upsell-timer div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.mpay-upsell-timer input {
  height: 18px;
  padding: 0;
}

.mpay-upsell-timer span {
  color: hsl(var(--foreground));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 800;
}

.mpay-upsell-add {
  height: 42px;
  border: 1px dashed hsl(var(--primary) / .55);
  border-radius: 10px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .mpay-basic-audio-card {
    align-items: stretch;
    flex-direction: column;
  }

  .mpay-basic-audio-upload {
    min-width: 0;
  }

  .mpay-upsell-grid,
  .mpay-upsell-files,
  .mpay-upsell-timer div {
    grid-template-columns: 1fr;
  }

  .mpay-upsell-card {
    padding: 18px;
  }
}

/* Shared media editor */
.mpay-media-row,
.mpay-downsell-media-slots,
.mpay-welcome-media-preview {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 3px;
}

.mpay-media-card,
.mpay-downsell-media-slot,
.mpay-upsell-media-slot,
.mpay-welcome-media-slot {
  flex: 0 0 184px;
  width: 184px !important;
  height: 132px;
  min-height: 132px !important;
  padding: 0;
  border: 1px dashed rgb(59 130 246 / .45) !important;
  border-radius: 8px !important;
  background: rgb(3 12 26 / .7) !important;
}

.mpay-media-add {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgb(147 197 253) !important;
  cursor: pointer;
}

.mpay-media-add > span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(96 165 250 / .35);
  border-radius: 8px;
  color: rgb(191 219 254) !important;
  background: rgb(30 64 175 / .22);
  font-size: 20px !important;
}

.mpay-media-add small {
  color: rgb(148 163 184) !important;
  font-size: 12px !important;
  font-weight: 700;
}

.mpay-media-card.has-file {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.mpay-media-card.has-file img,
.mpay-media-card.has-file video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpay-media-overlay {
  position: relative;
  z-index: 4;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 7px;
  color: white;
  background: rgb(2 6 23 / .82);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .16s ease, transform .16s ease;
}

.mpay-media-card.has-file:hover .mpay-media-overlay {
  opacity: 1;
  transform: translateY(0);
}

.mpay-media-remove {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(248 113 113 / .65);
  border-radius: 7px;
  color: white;
  background: rgb(220 38 38 / .92);
  cursor: pointer;
  opacity: 0;
  font-size: 0;
  transition: opacity .16s ease, transform .16s ease;
}

.mpay-media-remove::before {
  content: "🗑";
  font-size: 14px;
}

.mpay-media-card.has-file:hover .mpay-media-remove {
  opacity: 1;
}

.mpay-media-card .mpay-media-drag-handle {
  pointer-events: auto;
}

.mpay-media-card.has-file:hover .mpay-media-drag-handle {
  opacity: 1;
}

/* Welcome editor layout */
.mpay-welcome-editor,
.mpay-plans-editor {
  display: grid;
  gap: 16px;
  width: min(100%, 980px);
  margin: 0 auto 28px;
}

.mpay-welcome-editor[hidden],
.mpay-plans-editor[hidden] {
  display: none !important;
}

.mpay-welcome-editor > [data-mpay-welcome-part],
.mpay-plans-editor > [data-mpay-plans-part] {
  width: 100% !important;
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid rgb(51 92 142 / .42) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgb(12 29 51 / .93), rgb(5 15 29 / .97)) !important;
  box-shadow: 0 14px 30px rgb(0 0 0 / .18) !important;
}

.mpay-flow-save-row {
  width: min(100%, 980px) !important;
  margin: 0 auto 28px !important;
  display: flex !important;
  justify-content: flex-end !important;
  padding: 0 !important;
}

.mpay-welcome-editor > [data-mpay-welcome-part="Midias"] {
  min-height: 220px;
}

.mpay-welcome-editor > [data-mpay-welcome-part="Mensagem Inicial"] textarea {
  min-height: 230px !important;
}

.mpay-welcome-media-preview {
  margin-top: 16px;
}

.mpay-welcome-media-slot {
  flex-basis: 260px;
  width: 260px !important;
  height: 168px;
  min-height: 168px !important;
}

/* Reference-style Upsell sequences in MoneyPay blue */
.mpay-upsell-tools {
  width: min(100%, 980px);
  margin: 0 auto 28px;
  gap: 16px;
}

.mpay-upsell-editor-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 4px 2px;
}

.mpay-upsell-editor-head strong {
  color: hsl(var(--foreground));
  font-size: 17px;
}

.mpay-upsell-editor-head p {
  margin: 5px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
}

.mpay-upsell-card.mpay-upsell-sequence {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgb(51 92 142 / .46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgb(13 31 54 / .96), rgb(5 15 29 / .98));
}

.mpay-upsell-sequence .mpay-upsell-card-head {
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid rgb(51 92 142 / .3);
}

.mpay-upsell-sequence-title,
.mpay-upsell-section-heading,
.mpay-upsell-plan-summary,
.mpay-upsell-audio-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mpay-upsell-sequence-title h3 {
  font-size: 15px !important;
}

.mpay-upsell-collapse {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: rgb(191 219 254);
  background: rgb(30 64 175 / .22);
  cursor: pointer;
  font-size: 18px;
}

.mpay-upsell-duplicate,
.mpay-upsell-add-plan {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgb(96 165 250 / .3);
  border-radius: 7px;
  color: rgb(191 219 254);
  background: rgb(30 64 175 / .15);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.mpay-upsell-sequence-body {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.mpay-upsell-sequence.is-collapsed .mpay-upsell-sequence-body {
  display: none;
}

.mpay-upsell-media-block,
.mpay-upsell-plans,
.mpay-upsell-delivery-block {
  display: grid;
  gap: 12px;
}

.mpay-upsell-section-heading {
  justify-content: space-between;
}

.mpay-upsell-section-heading > div,
.mpay-upsell-section-heading:not(:has(div)) {
  align-items: start;
}

.mpay-upsell-section-heading strong {
  display: block;
  color: hsl(var(--foreground));
  font-size: 14px;
}

.mpay-upsell-section-heading small {
  display: block;
  margin-top: 3px;
  color: hsl(var(--muted-foreground));
  font-size: 11px;
}

.mpay-upsell-section-heading em {
  color: hsl(var(--muted-foreground));
  font-size: 11px;
  font-style: normal;
}

.mpay-upsell-audio-row {
  min-height: 38px;
}

.mpay-upsell-controls {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(180px, 1fr) minmax(150px, .7fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgb(51 92 142 / .32);
  border-radius: 8px;
  background: rgb(2 10 22 / .44);
}

.mpay-upsell-card select {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 11px;
  border: 1px solid rgb(71 85 105 / .72);
  border-radius: 8px;
  color: hsl(var(--foreground));
  background: rgb(8 20 38 / .96);
  outline: none;
}

.mpay-upsell-discount-value.is-hidden {
  display: none !important;
}

.mpay-upsell-plan-card,
.mpay-upsell-delivery-block {
  padding: 14px;
  border: 1px solid rgb(51 92 142 / .34);
  border-radius: 8px;
  background: rgb(2 10 22 / .48);
}

.mpay-upsell-plan-summary {
  justify-content: space-between;
  margin-bottom: 12px;
}

.mpay-upsell-plan-summary span {
  color: rgb(74 222 128);
  font-size: 13px;
  font-weight: 800;
}

.mpay-upsell-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, .75fr) minmax(150px, .75fr);
  gap: 12px;
}

.mpay-upsell-plan-grid input[readonly] {
  color: rgb(74 222 128);
  background: rgb(6 25 30 / .88);
}

.mpay-upsell-add-plan {
  width: 100%;
  border-style: dashed;
}

.mpay-upsell-message {
  min-height: 180px !important;
}

.mpay-upsell-delivery {
  min-height: 104px !important;
  border-style: dashed !important;
}

.mpay-upsell-add {
  width: 100%;
}

@media (max-width: 760px) {
  .mpay-upsell-controls,
  .mpay-upsell-plan-grid {
    grid-template-columns: 1fr;
  }

  .mpay-upsell-head-actions {
    gap: 6px;
  }

  .mpay-upsell-duplicate,
  .mpay-upsell-remove {
    padding: 0 8px;
  }

  .mpay-welcome-editor > [data-mpay-welcome-part],
  .mpay-plans-editor > [data-mpay-plans-part] {
    padding: 16px !important;
  }
}
