*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.rc.is-ok {
  background: #fcfaf5;
}

.rc-page {
  width: min(480px, 100%);
  min-height: 100%;
  margin: 0 auto;
  background: #fcfaf5;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
}

.rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 18px;
}

.rc-head h1 {
  font-size: 18px;
  font-weight: 700;
}

.rc-x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #444;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
}

.rc-valor {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 6px 0 22px;
}

.rc-label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.rc-slot {
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3f1ec, #eceae4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  margin-bottom: 10px;
}

.rc-slot[hidden],
.rc-pix[hidden],
.rc-retry[hidden],
.rc-gpay[hidden],
.rc-page[hidden],
.rc-ok[hidden] { display: none !important; }

.rc-pix {
  display: flex;
  align-items: stretch;
  min-height: 50px;
  border: 1.5px solid #e68a45;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
}

.rc-code {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 12px 16px;
  font-size: 13px;
  font-family: ui-monospace, Consolas, monospace;
  color: #333;
  background: transparent;
  outline: none;
}

.rc-copy {
  border: 0;
  background: #e68a45;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 0 16px;
  white-space: nowrap;
  cursor: pointer;
}

.rc-copy:disabled { opacity: .55; cursor: wait; }

.rc-gpay {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e8e8e8;
  cursor: default;
}

.gpay-spin {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(#b5b5b5 0 18deg, transparent 18deg 45deg);
  -webkit-mask: radial-gradient(farthest-side, transparent 42%, #000 44%);
  mask: radial-gradient(farthest-side, transparent 42%, #000 44%);
  animation: gpay-spin .75s linear infinite;
}

@keyframes gpay-spin {
  to { transform: rotate(360deg); }
}

.gpay-g {
  width: 22px;
  height: 22px;
  display: block;
  filter: grayscale(.2) saturate(.75) brightness(1.08);
  opacity: .85;
}

.gpay-pay {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: #8d8d8d;
  line-height: 1;
}

.rc-err {
  color: #c0392b;
  font-size: 13px;
  min-height: 1.2em;
  margin-top: 12px;
}

.rc-retry {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: #e68a45;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.rc-ok {
  width: min(480px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 48px 28px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fcfaf5;
}

.rc-ok-p {
  width: 56px;
  height: 56px;
  display: block;
  margin-bottom: 22px;
}

.rc-ok h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 10px;
}

.rc-ok-msg {
  font-size: 16px;
  line-height: 1.45;
  color: #3a3a3a;
  max-width: 22em;
}

.rc-ok-saldo {
  margin-top: 18px;
  font-size: 14px;
  color: #6a6a6a;
}

.rc-ok-saldo strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -.03em;
}

.rc-ok-home {
  margin-top: auto;
  width: 100%;
  max-width: 360px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #de6a24;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
