/* Public-site message windows and reserved validation messages. */
.studio-message {
  position: fixed;
  margin: auto;
  padding: 3px;
  box-sizing: border-box;
  width: max-content;
  min-width: min(280px, calc(100vw - 32px));
  max-width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 0;
  outline: none;
  background: #c0c0c0;
  color: #000;
  font: 13px/1.65 Tahoma, "굴림", Gulim, AppleGothic, sans-serif;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff;
}
.studio-message::backdrop { background: transparent; }
.studio-message [hidden] { display: none; }
.studio-message-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 25px;
  padding: 3px 3px 3px 6px;
  color: #fff;
  background: linear-gradient(90deg, #000080, #1084d0);
}
.studio-message-title { margin: 0; color: inherit; font: bold 13px/1.4 Tahoma, "굴림", Gulim, AppleGothic, sans-serif; }
.studio-message button {
  -webkit-user-select: none;
  user-select: none;
  border: 0;
  border-radius: 0;
  background: #c0c0c0;
  color: transparent;
  text-shadow: 0 0 #000;
  font: inherit;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}
.studio-message button:active {
  text-shadow: 1px 1px #000;
  box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
}
.studio-message button:focus { outline: 1px dotted #000; outline-offset: -5px; }
.studio-message-close { display: grid; place-items: center; width: 20px; height: 19px; flex: none; padding: 0; }
.studio-message-close img { width: 8px; height: 7px; image-rendering: pixelated; }
.studio-message img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.studio-message-close:active img { transform: translate(1px, 1px); }
.studio-message-body { display: flex; justify-content: center; padding: 22px 20px 20px; }
.studio-message-group { display: flex; align-items: center; gap: 16px; min-width: 0; max-width: 100%; }
.studio-message-icon { display: block; flex: none; width: 32px; height: 32px; image-rendering: pixelated; }
.studio-message-content { min-width: 0; text-align: left; word-break: keep-all; overflow-wrap: anywhere; }
.studio-message-content p { margin: 0; }
.studio-message-content .studio-message-detail { margin-top: 5px; color: #444; }
.studio-message-actions { display: flex; justify-content: center; gap: 8px; padding: 0 18px 18px; }
.studio-message-actions button { min-width: 78px; min-height: 27px; padding: 4px 14px; }
.studio-message-actions .studio-message-default {
  box-shadow: inset -2px -2px #0a0a0a, inset 1px 1px #0a0a0a, inset 2px 2px #fff, inset -3px -3px #808080, inset 3px 3px #dfdfdf;
}
.studio-message-actions .studio-message-default:active {
  box-shadow: inset 2px 2px #0a0a0a, inset -1px -1px #0a0a0a, inset -2px -2px #fff, inset 3px 3px #808080, inset -3px -3px #dfdfdf;
}
body:has(> .studio-message[open]) > .studio-window > header .studio-titlebar { background: linear-gradient(90deg, #808080, #b5b5b5); }
.has-inline-errors .field [aria-invalid="true"] { border-top-color: #800000; border-left-color: #800000; }
.studio-form.has-inline-errors .field, .booking-form.has-inline-errors .field { margin-bottom: 8px; }
.studio-field-error { display: grid; min-height: 1.6em; margin: 5px 0 0; color: #800000; font-size: 12px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.studio-field-error > span { grid-area: 1 / 1; }
.studio-error-reserve { visibility: hidden; pointer-events: none; }
@media (max-width: 480px) {
  .studio-message { font-size: 14px; }
  .studio-message-body { padding: 20px 14px 18px; }
  .studio-message-group { gap: 13px; }
}
@media (pointer: coarse) {
  .studio-message-close { width: 32px; height: 32px; }
  .studio-message-actions button { min-height: 44px; }
}
@media (forced-colors: active) {
  .studio-message { border: 1px solid CanvasText; box-shadow: none; }
  .studio-message button, .studio-message button:active { color: ButtonText; text-shadow: none; border: 1px solid ButtonText; }
  .studio-message button:focus { outline-color: ButtonText; }
}
