/* Alertas, avisos e telas de resultado — tema claro Loja 24K */

body .notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(42, 39, 36, 0.04);
}

body .notice:last-child {
  margin-bottom: 0;
}

body .notice__icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-top: 0.05rem;
}

body .notice__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .notice__body {
  flex: 1;
  min-width: 0;
}

body .notice__title {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: inherit;
}

body .notice__text {
  margin: 0;
  font-weight: 600;
  color: inherit;
}

body .notice__text .link {
  font-weight: 800;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body .notice--ok {
  background: #edf7f1;
  border-color: #b8dfc4;
  color: #1b5e20;
}

body .notice--ok .notice__icon {
  background: rgba(46, 125, 50, 0.14);
  color: #2e7d32;
}

body .notice--err {
  background: #fdf3f3;
  border-color: #e8b4b4;
  color: #b71c1c;
}

body .notice--err .notice__icon {
  background: rgba(198, 40, 40, 0.12);
  color: #c62828;
}

body .notice--warn {
  background: #fff9eb;
  border-color: #ecd08a;
  color: #7a5a10;
}

body .notice--warn .notice__icon {
  background: rgba(245, 124, 0, 0.14);
  color: #e65100;
}

body .notice--info {
  background: rgba(168, 120, 48, 0.08);
  border-color: rgba(168, 120, 48, 0.28);
  color: #6d4c1a;
}

body .notice--info .notice__icon {
  background: rgba(168, 120, 48, 0.14);
  color: var(--gold-deep, #8b6914);
}

body .auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid transparent;
}

body .auth-alert--info {
  background: rgba(168, 120, 48, 0.08);
  border-color: rgba(168, 120, 48, 0.28);
  color: #6d4c1a;
}

body .auth-alert--err {
  background: #fdf3f3;
  border-color: #e8b4b4;
  color: #b71c1c;
}

/* Telas de sucesso / confirmação */
.result-state {
  text-align: center;
  max-width: 36rem;
  margin: clamp(1rem, 3vw, 2rem) auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(168, 120, 48, 0.2);
  box-shadow: 0 12px 40px rgba(42, 39, 36, 0.07);
}

.result-state__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.result-state__icon svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-state--ok .result-state__icon {
  background: rgba(46, 125, 50, 0.12);
  border: 1px solid rgba(46, 125, 50, 0.25);
  color: #2e7d32;
}

.result-state--err .result-state__icon {
  background: rgba(198, 40, 40, 0.1);
  border: 1px solid rgba(198, 40, 40, 0.22);
  color: #c62828;
}

.result-state--info .result-state__icon {
  background: rgba(168, 120, 48, 0.12);
  border: 1px solid rgba(168, 120, 48, 0.25);
  color: var(--gold-deep, #8b6914);
}

.result-state__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem) !important;
  text-transform: none !important;
  color: var(--fg);
}

.result-state__message {
  margin: 0 auto 1.25rem;
  max-width: 38ch;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--muted);
}

.result-state__actions {
  justify-content: center;
  margin-top: 0;
}

.result-state__actions .btn {
  min-width: 10rem;
}

.checkout-success.result-state,
.pix-page__done.result-state {
  max-width: 32rem;
}

@media (max-width: 760px) {
  body .notice {
    padding: 0.8rem 0.85rem;
  }

  body .notice__icon {
    width: 2rem;
    height: 2rem;
  }
}
