.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.checkout-modal.is-open {
  display: flex;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(16px);
}

.checkout-dialog {
  position: relative;
  width: min(100%, 860px);
  max-height: min(92vh, 780px);
  overflow: auto;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, .18), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(34, 197, 94, .12), transparent 28%),
    linear-gradient(145deg, #09090b, #020617 58%, #030712);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  animation: checkoutIn .22s ease-out;
}

.checkout-hero-banner {
  padding: 18px 18px 0;
}

.checkout-hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, .24);
  background: #020617;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .52), 0 0 34px rgba(14, 165, 233, .16);
}

@keyframes checkoutIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.checkout-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #e4e4e7;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.checkout-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 0;
}

.checkout-summary,
.checkout-panel {
  padding: 34px;
}

.checkout-summary {
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.checkout-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(34, 211, 238, .1);
  color: #22d3ee;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.checkout-summary h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.checkout-summary p {
  margin: 0;
  color: #a1a1aa;
  font-size: 15px;
}

.checkout-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(34, 211, 238, .18);
  border-radius: 18px;
  background: rgba(8, 47, 73, .18);
}

.checkout-product strong,
.checkout-product b {
  display: block;
  color: #fff;
}

.checkout-product span {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.checkout-product b {
  color: #67e8f9;
  font-size: 24px;
  white-space: nowrap;
}

.checkout-benefits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d4d4d8;
  font-size: 13px;
}

.checkout-benefits li {
  position: relative;
  padding-left: 22px;
}

.checkout-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, .7);
}

.checkout-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 800;
}

.checkout-form input,
.checkout-pix textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.checkout-form input {
  height: 52px;
  padding: 0 14px;
}

.checkout-form input:focus,
.checkout-pix textarea:focus {
  border-color: rgba(34, 211, 238, .7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
  background: rgba(255, 255, 255, .075);
}

.checkout-submit,
.checkout-copy {
  min-height: 54px;
  border-radius: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.checkout-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  min-height: 68px;
  margin-top: 6px;
  background: #0f7f72;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(15, 127, 114, .28);
}

.checkout-submit-arrow {
  font-size: 30px;
  font-weight: 800;
  line-height: .8;
}

.checkout-submit:hover,
.checkout-copy:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.checkout-submit.is-loading {
  pointer-events: none;
  opacity: .82;
}

.checkout-trust {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 8px;
  color: #64748b;
  text-align: center;
}

.checkout-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(15, 127, 114, .18);
  border-radius: 999px;
  background: rgba(15, 127, 114, .08);
  color: #0f7f72;
  font-size: 14px;
  line-height: 1;
}

.checkout-secure-badge svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-trust p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.checkout-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 900;
}

.checkout-spinner {
  display: none;
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(3, 16, 24, .2);
  border-top-color: #031018;
  border-radius: 50%;
  animation: checkoutSpin .75s linear infinite;
}

.checkout-submit.is-loading .checkout-spinner {
  display: block;
}

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

.checkout-pix {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.checkout-status {
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(250, 204, 21, .1);
  border: 1px solid rgba(250, 204, 21, .22);
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.checkout-pix img {
  width: min(100%, 260px);
  aspect-ratio: 1;
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}

.checkout-pix textarea {
  min-height: 92px;
  padding: 12px;
  resize: none;
  color: #d4d4d8;
  font-size: 12px;
}

.checkout-copy {
  width: 100%;
  background: rgba(34, 197, 94, .16);
  border: 1px solid rgba(34, 197, 94, .34);
  color: #bbf7d0;
}

.checkout-approved {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, .34);
  background: rgba(34, 197, 94, .12);
  text-align: center;
}

.checkout-approved-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #22c55e;
  color: #02130a;
  font-size: 34px;
  font-weight: 900;
}

.checkout-approved h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.checkout-approved p,
.checkout-error {
  margin: 0;
  color: #a1a1aa;
  font-size: 13px;
}

.checkout-error:not(:empty) {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, .3);
  background: rgba(239, 68, 68, .12);
  color: #fecaca;
}

body.checkout-lock {
  overflow: hidden;
}

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

  .checkout-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 22px;
  }

  .checkout-hero-banner {
    padding: 12px 12px 0;
  }

  .checkout-hero-banner img {
    max-height: none;
    border-radius: 18px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary,
  .checkout-panel {
    padding: 24px 18px;
  }

  .checkout-summary {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .checkout-product {
    margin: 20px 0;
  }
}

.support-widget {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 90;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.support-float {
  display: grid;
  place-items: center;
  position: relative;
  width: 64px;
  height: 64px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent !important;
  color: #fff !important;
  box-shadow: 0 0 34px rgba(34, 214, 95, .46);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}

.support-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 42px rgba(34, 214, 95, .72);
}

.support-wa-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #22d65f;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .26);
}

.support-wa-mark svg {
  display: block;
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke: none;
}

.support-float-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(239, 68, 68, .38);
}

.support-avatar svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-popup {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto auto;
  width: min(255px, calc(100vw - 24px));
  height: 376px;
  overflow: hidden;
  border: 1px solid rgba(7, 95, 80, .18);
  border-radius: 13px;
  background: #e6ded5;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease;
}

.support-widget.is-open .support-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.support-widget.is-open .support-float {
  transform: scale(.9);
  opacity: 0;
  pointer-events: none;
}

.support-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 11px 13px;
  background: #087260;
  color: #fff;
}

.support-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #087260;
  flex: 0 0 auto;
}

.support-header strong {
  display: block;
  color: #fff;
  font-size: 12px;
  line-height: 1.15;
}

.support-header span {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: #9cf2bd;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.support-header i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #31e981;
  box-shadow: 0 0 0 4px rgba(49, 233, 129, .14);
}

.support-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .86);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.support-close:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transform: rotate(90deg);
}

.support-chat {
  display: grid;
  align-content: start;
  gap: 9px;
  overflow-y: auto;
  padding: 13px 13px 7px;
  scroll-behavior: smooth;
}

.support-chat::-webkit-scrollbar {
  width: 5px;
}

.support-chat::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(7, 95, 80, .24);
}

.support-message {
  max-width: 94%;
  padding: 10px 11px;
  border-radius: 8px;
  color: #374151;
  font-size: 12px;
  line-height: 1.35;
  animation: supportMessageIn .22s ease both;
}

.support-message.bot {
  justify-self: start;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
}

.support-message.user {
  justify-self: end;
  background: #087260;
  color: #fff;
}

.support-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  padding: 10px 12px;
}

.support-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #087260;
  animation: supportTyping 1s ease-in-out infinite;
}

.support-typing span:nth-child(2) {
  animation-delay: .12s;
}

.support-typing span:nth-child(3) {
  animation-delay: .24s;
}

.support-quick {
  display: grid;
  gap: 8px;
  padding: 0 13px 12px;
}

.support-quick button {
  width: 100%;
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, .13);
  border-radius: 7px;
  background: #fff;
  color: #087260;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.support-quick button:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 114, 96, .35);
  background: #f8fffc;
  box-shadow: 0 8px 20px rgba(8, 114, 96, .13);
}

.support-real {
  display: grid;
  place-items: center;
  min-height: 39px;
  padding: 0 14px;
  background: #fff;
  color: #006251;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.support-real:hover {
  background: #f5fffb;
  color: #087260;
}

@keyframes supportMessageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes supportTyping {
  0%,
  80%,
  100% {
    opacity: .35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (min-width: 768px) {
  .support-widget {
    right: 24px;
    bottom: 24px;
  }

  .support-popup {
    width: 255px;
  }
}

@media (max-width: 380px) {
  .support-widget {
    right: 10px;
    bottom: 86px;
  }

  .support-popup {
    width: calc(100vw - 20px);
    height: 372px;
  }
}
