/* The review invitation floats above the order without replacing its live state. */
dialog.order-review-dialog {
  width: min(460px, calc(100vw - 24px));
  max-height: min(760px, calc(100dvh - 32px));
  margin: auto;
  padding: 34px 28px 24px;
  overflow: auto;
  color: #edf3ff;
  border: 1px solid #a8c9ea38;
  border-radius: 30px;
  background: radial-gradient(ellipse at 0 0, #46699245, transparent 58%), radial-gradient(ellipse at 100% 100%, #65518b24, transparent 58%), #101420;
  box-shadow: 0 30px 100px #020714aa, inset 0 1px 0 #e6f2ff12;
}
dialog.order-review-dialog::backdrop { background: #05091596; backdrop-filter: blur(7px); }
.order-review-dialog [hidden] { display: none !important; }
.order-review-dialog .close-btn { top: 15px; right: 15px; width: 38px; height: 38px; border-radius: 50%; }
.order-review-spark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border: 1px solid #bcdaff42; border-radius: 18px; background: linear-gradient(135deg, #c5e0fb23, #8daaf306); color: #c4dffb; font-size: 33px; box-shadow: 0 7px 30px #86baff12; }
.order-review-eyebrow { margin: 0 0 10px; color: #9eb9d3; font-size: 10px; font-weight: 600; letter-spacing: .17em; }
.order-review-dialog h2 { margin: 0 36px 11px 0; font-size: clamp(26px, 5.8vw, 32px); line-height: 1.1; letter-spacing: -.045em; }
.order-review-intro, #order-review-result-note, #order-review-loading { margin: 0 0 23px; font-size: 14px; line-height: 1.6; color: #a5afc4; }
#order-review-form label { display: block; margin-bottom: 9px; font-size: 13px; color: #e7edfa; }
#order-review-text { display: block; box-sizing: border-box; width: 100%; min-height: 116px; max-height: 260px; padding: 15px; border: 1px solid #a6bad436; border-radius: 17px; background: #090d1870; font: inherit; font-size: 16px; line-height: 1.5; color: #f1f6ff; resize: vertical; transition: border-color .2s, box-shadow .2s; }
#order-review-text::placeholder { color: #818ca6; }
#order-review-text:focus { border-color: #bbd9f3; outline: none; box-shadow: 0 0 0 3px #acd0ef20; }
.order-review-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; font-size: 10px; line-height: 1.5; color: #8b98ad; }
#order-review-consent { margin: 17px 0 0; color: #9ea9bd; font-size: 11px; line-height: 1.65; }
#order-review-consent a { color: #c2d9ef; text-decoration: underline; text-underline-offset: 2px; }
#order-review-error { min-height: 0; margin: 9px 0; font-size: 12px; line-height: 1.5; color: #f0abae; }
.order-review-dialog .primary, .order-review-dialog .secondary { display: block; width: 100%; min-height: 49px; margin-top: 12px; padding: 13px 18px; border-radius: 16px; font-size: 14px; }
.order-review-dialog .primary:disabled { cursor: wait; opacity: .65; }
.order-review-later { display: block; width: 100%; min-height: 40px; margin-top: 4px; border: 0; border-radius: 14px; background: transparent; font: inherit; font-size: 12px; color: #a3aec3; cursor: pointer; }
.order-review-later:hover { color: #f1f6ff; background: #c4d9ee07; }
#order-review-published-text { margin: 0 0 20px; padding: 16px 18px; border: 1px solid #b6cee422; border-radius: 18px; background: #bddaf508; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
#order-review-published-text:empty { display: none; }
.order-review-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; margin: 10px 8px 0 0; padding: 9px 14px; border: 1px solid #afcde64a; border-radius: 14px; background: linear-gradient(120deg, #92b4d926, #9a8ecd12); color: #d9eafa; font: inherit; font-size: 12px; line-height: 1.4; cursor: pointer; transition: background .2s, border-color .2s; }
.order-review-trigger:hover { border-color: #c6dff39c; background: #9bbfe436; }
.wait-review-trigger { width: 100%; min-height: 52px; margin: 0 0 14px; font-size: 15px; border-radius: 18px; }
.wait-review-trigger span { font-size: 23px; }
@media (max-width: 520px) {
  dialog.order-review-dialog { padding: 28px 22px 19px; max-height: calc(100dvh - 24px); border-radius: 26px; }
  .order-review-spark { width: 43px; height: 43px; margin-bottom: 17px; border-radius: 15px; font-size: 28px; }
  .order-review-dialog .close-btn { top: 12px; right: 12px; }
  .order-review-intro { margin-bottom: 20px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #order-review-text, .order-review-trigger { transition: none; }
}
