.beverage-dialog {
  width: min(640px, calc(100% - 24px));
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #20363d;
  box-shadow: 0 20px 80px #0006;
  overflow: auto;
}
.beverage-dialog::backdrop { background: #07171cba; }
.beverage-dialog header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid #d9e3e6;
}
.beverage-dialog h2 { font-size: 24px; line-height: 1.25; margin: 0; }
.beverage-dialog .beverage-close {
  flex: 0 0 40px; width: 40px; height: 40px; padding: 0;
  border: 1px solid #cad6da; border-radius: 6px; background: #fff;
  color: #20363d; font-size: 28px; line-height: 1; cursor: pointer;
}
.beverage-dialog-body { padding: 20px 24px; }
.beverage-dialog-body p, .beverage-signed-term p { font-size: 16px; line-height: 1.65; margin: 0 0 16px; }
.beverage-dialog-body p:last-child { margin-bottom: 0; }
.beverage-dialog footer { padding: 16px 24px; border-top: 1px solid #d9e3e6; background: #fff; }
.beverage-dialog footer button { width: 100%; min-height: 48px; white-space: normal; }
.beverage-dialog label { display: block; font-weight: 600; margin-bottom: 12px; }
.beverage-canvas-wrap { border: 2px solid #627f88; border-radius: 6px; background: #fff; margin-bottom: 12px; }
#beverageSignatureCanvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; touch-action: none; cursor: crosshair; }
#beverageConsentError { color: #aa1b22; margin-top: 16px; font-weight: 600; }
.beverage-signed-term { margin-top: 28px; padding-top: 24px; border-top: 2px solid #ec870c; break-inside: avoid; }
.public-page .beverage-signed-term { margin: 28px 30px 24px; color: #20363d; }
.beverage-signed-term h2 { font-size: 22px; margin: 0 0 16px; }
.beverage-signed-term img { display: block; width: min(100%, 360px); height: auto; background: #fff; }
.beverage-signed-term figure { margin: 12px 0 0; }
.beverage-signed-term figcaption { font-size: 13px; color: #42585f; border-top: 1px solid #a9b9be; padding-top: 8px; max-width: 360px; }
#beverageTermStatus { font-size: 14px; color: #325b40; }
.beverage-dialog [hidden], .beverage-signed-term[hidden], .beverage-signed-term [hidden] { display: none !important; }
@media (max-width: 480px) {
  .public-page .beverage-signed-term { margin-right: 18px; margin-left: 18px; }
  .beverage-dialog header, .beverage-dialog-body, .beverage-dialog footer { padding: 16px; }
  .beverage-dialog h2 { font-size: 21px; }
}
@media print {
  .beverage-signed-term { padding-top: 12px; margin-top: 16px; }
  .beverage-signed-term h2 { font-size: 14pt; }
  .beverage-signed-term p { font-size: 10pt; line-height: 1.4; }
  .beverage-signed-term img { max-width: 240px; }
  .beverage-signed-term button { display: none; }
}
