/* ----- Reservalue 預約 widget modal(vanilla,demos 未載入 Bootstrap) ----- */
.rv-widget-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.rv-widget-modal.open { display: flex; }
.rv-widget-modal__backdrop { position: absolute; inset: 0; background: rgba(44, 41, 37, 0.55); backdrop-filter: blur(2px); }
.rv-widget-modal__dialog {
  position: relative; display: flex; flex-direction: column;
  width: min(96vw, 480px); max-height: 90vh;
  background: var(--stone); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(44, 41, 37, 0.30); overflow: hidden;
}
/* Floating close — pinned to the dialog's top-right, sitting inside the
   widget's own header bar (.rv-header). The separate modal head was removed:
   the widget already shows the service title, so a second title bar was
   redundant; only the close affordance needed to survive. */
.rv-widget-modal__close {
  position: absolute;
  top: 13px;
  right: 12px;
  z-index: 5;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border: none; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); color: var(--stone);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .15s ease;
}
.rv-widget-modal__close:hover { background: rgba(255, 255, 255, 0.34); }
/* Reserve room at the right of the widget's header so its step counter
   (e.g. "1 / 4") doesn't slide under the floating close button. */
#widgetModal .rv-widget .rv-header { padding-right: 56px; }
.rv-widget-modal__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rv-widget-modal__body #divWidgetContainer { min-height: 200px; }
