* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #00bb1b;
  --green-soft: #e3f6eb;
  --green-soft-strong: #c8edd9;
  --text-main: #16223a;
  --text-muted: #6c7488;
}

body {
  font-family: 'Montserrat', 'Nunito', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #e9edf5 0%, #f4f6fb 100%);
  color: var(--text-main);
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.checkout {
  width: 100%;
  max-width: 420px;
}

.brand {
  text-align: center;
  margin-bottom: 16px;
}

.brand img {
  width: 140px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 18px;
  margin-bottom: 16px;
}

.summary .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.summary h2 {
  font-size: 16px;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.product {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-title {
  font-size: 13px;
  font-weight: 600;
}

.product-qty {
  font-size: 12px;
  color: #6c7488;
}

.product-price {
  font-size: 13px;
  font-weight: 700;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #283045;
}

.row.total {
  font-weight: 700;
  font-size: 14px;
  border-top: 1px solid #edf0f6;
  padding-top: 10px;
}

.link-btn {
  background: none;
  border: none;
  color: #1e8c3f;
  font-size: 12px;
  text-decoration: underline;
  text-align: left;
  cursor: pointer;
}

.steps {
  padding: 18px 18px 22px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.step {
  text-align: center;
  color: #8b94a8;
  font-size: 12px;
}

.step.active {
  color: var(--green);
  font-weight: 700;
}

.bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4faf7;
  border: 1px solid #d3e7d8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  color: var(--green);
  font-size: 14px;
}

.step.active .bubble {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-panel {
  display: block;
}

.hidden {
  display: none !important;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.input-group label {
  font-size: 12px;
  color: #4b5670;
}

.input-group input,
.input-group select {
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #e3e7ef;
  border-radius: 8px;
  background: #fafbfd;
  font-size: 14px;
  color: #1f2a44;
}

.input-group input:focus,
.input-group select:focus {
  outline: 2px solid #b4e1c3;
  border-color: #1e8c3f;
  background: #fff;
}

.invalid {
  border-color: #e57373 !important;
  background: #fff7f7;
}

.notice {
  font-size: 12px;
  color: #59627a;
  line-height: 1.5;
  background: #f4f8ff;
  border: 1px solid #e5edff;
  border-radius: 8px;
  padding: 10px;
  margin: 6px 0 14px;
}

.primary {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 8px 18px rgba(0, 187, 27, 0.25);
}

.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.primary:hover:enabled {
  transform: translateY(-1px);
}

.secondary {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--green);
  color: var(--green);
  background: #f7fbf8;
  font-weight: 700;
  cursor: pointer;
}

.back {
  border: none;
  background: none;
  font-size: 16px;
  color: var(--green);
  cursor: pointer;
  margin-bottom: 8px;
}

.section-title h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.section-title p {
  font-size: 13px;
  color: #6d7385;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 12px;
}

.grid .full {
  grid-column: span 2;
}

.shipping {
  margin: 12px 0 18px;
}

.section-subtitle {
  font-size: 13px;
  color: #4a5570;
  margin-bottom: 8px;
}

.shipping-option {
  margin-bottom: 10px;
}

.shipping-card {
  border: 1px solid #d5e8d9;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f7fbf8;
}

.shipping-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shipping-extra {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.shipping-logo {
  height: 14px;
}

.shipping-full-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}

.shipping-full-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.shipping-card strong {
  display: block;
  color: #1f2a44;
  font-size: 13px;
}

.shipping-card p {
  font-size: 12px;
  color: #6c7488;
}

.shipping-card .price {
  font-weight: 700;
  color: #1f2a44;
}

.shipping-option input {
  position: absolute;
  opacity: 0;
}

.shipping-option input:checked + .shipping-card {
  border-color: var(--green);
  background: var(--green-soft);
}

.payment-method {
  margin: 14px 0 10px;
}

.payment-card {
  border: 1px solid #d5e8d9;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7fbf8;
  gap: 8px;
}

.payment-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-title {
  font-weight: 700;
  color: #1f2a44;
}

.payment-sub {
  color: #6c7488;
  font-size: 12px;
}

.status {
  color: var(--green);
  font-weight: 700;
}

.terms {
  font-size: 12px;
  color: #6c7488;
  margin: 8px 0 14px;
}

.result {
  margin-top: 16px;
  display: block !important;
}

.result.hidden {
  display: none !important;
}

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}

.alert.success {
  background: #eaf7ef;
  color: var(--green);
  border: 1px solid #cfeede;
}

.alert.error {
  background: #ffecec;
  color: #c62828;
  border: 1px solid #f5c5c5;
  white-space: pre-line;
  line-height: 1.6;
}

.qr-area {
  text-align: center;
  border: 1px solid #e6e9f1;
  border-radius: 12px;
  padding: 14px;
  background: #fafbfd;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 12px;
}

.qr-area[hidden] {
  display: none !important;
}

.qr-area h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2a44;
  margin-bottom: 12px;
  display: block !important;
}

.qr-area img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 10px auto;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 1px solid #e6e9f1;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.qr-area img[style*="display: none"] {
  display: none !important;
}

.pix-code .amount-label {
  font-size: 12px;
  color: #6c7488;
}

.pix-code .amount {
  font-size: 16px;
  font-weight: 700;
  color: #1f2a44;
}

.copy-text {
  font-size: 12px;
  color: #4a5570;
  word-break: break-all;
  margin: 8px 0;
  display: block !important;
  visibility: visible !important;
}

.pix-code {
  margin-top: 12px;
}

.secondary {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 12px;
}

.secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.howto {
  margin-top: 12px;
  border: 1px solid #e6e9f1;
  border-radius: 10px;
  padding: 12px;
  background: #f8f9fd;
  display: block !important;
  visibility: visible !important;
}

.howto[hidden] {
  display: none !important;
}

.howto ol {
  padding-left: 18px;
  color: #4a5570;
  font-size: 13px;
}

.howto li {
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .grid .full {
    grid-column: span 1;
  }
  .checkout {
    max-width: 100%;
  }
}

