/*
 * Online-Rezeption Frontend Launcher
 * Bricks-unabhaengige Modals, Formular-Trigger und optionale Quickbar.
 */

.orp-modal-is-open {
  overflow: hidden;
}

.orp-form-trigger,
.orp-form-launcher-grid__button,
.orp-quickbar__toggle,
.orp-quickbar__button {
  min-height: var(--or-button-min-height, 44px);
  padding: var(--or-button-padding-block, 0.8em) var(--or-button-padding-inline, 1.2em);
  border: 0;
  border-radius: var(--or-button-radius, 999px);
  background: var(--or-primary, #0071e3);
  color: var(--or-primary-text, #ffffff);
  font: inherit;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.orp-form-trigger:hover,
.orp-form-launcher-grid__button:hover,
.orp-quickbar__toggle:hover,
.orp-quickbar__button:hover {
  background: var(--or-primary-hover, #0066cc);
  color: var(--or-primary-text, #ffffff);
}

.orp-form-trigger:focus-visible,
.orp-form-launcher-grid__button:focus-visible,
.orp-quickbar__toggle:focus-visible,
.orp-quickbar__button:focus-visible {
  outline: 0;
  box-shadow: var(--or-focus-ring, 0 0 0 4px rgba(0, 113, 227, 0.18));
}

.orp-form-launcher-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.orp-modal[hidden] {
  display: none !important;
}

.orp-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  color: var(--or-text, #172033);
  font-family: var(--or-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.orp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.orp-modal__panel {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: min(88vh, 980px);
  overflow: auto;
  padding: clamp(72px, 8vw, 86px) clamp(28px, 5vw, 46px) clamp(28px, 5vw, 42px);
  border: 1px solid var(--or-border, rgba(15, 23, 42, 0.16));
  border-radius: var(--or-popup-radius, var(--or-modal-radius, 28px));
  background: var(--or-surface, #ffffff);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
  transform: translateY(8px) scale(0.985);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.orp-modal.is-open .orp-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.orp-modal__close {
  position: absolute;
  top: 18px;
  right: 26px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--or-text, #172033) 70%, transparent);
  font: inherit;
  font-size: 42px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.orp-modal__close:hover {
  color: var(--or-text, #172033);
  background: transparent;
}

.orp-modal__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.orp-modal__body {
  clear: none;
  padding-right: clamp(0px, 2vw, 10px);
}

.orp-modal__state {
  margin: 0;
  color: var(--or-muted, #667085);
}

.orp-modal-success {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(26px, 5vw, 48px) 0;
  text-align: center;
}

.orp-modal-success__icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--or-primary, #0071e3) 14%, #ffffff);
  color: var(--or-primary, #0071e3);
}

.orp-modal-success__icon::before {
  content: "";
  width: 18px;
  height: 30px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: translateY(-3px) rotate(42deg);
}

.orp-modal-success__title {
  max-width: 620px;
  margin: 2px 0 0;
  color: var(--or-text, #172033);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 800;
}

.orp-modal-success__message,
.orp-modal-success__note {
  max-width: 580px;
  margin: 0;
  color: var(--or-text, #172033);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.45;
}

.orp-modal-success__note {
  color: var(--or-muted, #667085);
  font-size: 15px;
}

.orp-modal-form-shell {
  background: transparent;
}

.orp-modal-form-shell .fluentform .ff-step-progress-wrap {
  margin-top: 0;
  margin-bottom: 28px;
}

.orp-modal-form-shell .fluentform .orp-step-status {
  display: block;
  margin: 0 0 10px;
  color: var(--or-muted, #667085);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.orp-modal-form-shell .fluentform .ff-el-progress {
  height: 10px;
  background: var(--or-surface-soft, #fbfbfd);
}

.orp-modal-form-shell .fluentform .ff-el-progress-bar {
  background: var(--or-primary, #0071e3);
}

.orp-modal-form-shell .fluentform .ff-el-progress-status {
  display: none !important;
  margin: 0 0 10px;
  color: var(--or-muted, #667085);
  font-weight: 650;
}

.orp-modal-form-shell .fluentform .ff-btn-prev,
.orp-modal-form-shell .fluentform .ff-btn-next,
.orp-modal-form-shell .fluentform .ff-btn-submit {
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.orp-modal-form-shell .fluentform .orp-modal-at-final-step .fluentform-step.active .ff_submit_btn_wrapper,
.orp-modal-form-shell .fluentform .orp-modal-at-final-step .fluentform-step.active .ff_submit_btn_wrapper_custom,
.orp-modal-form-shell .fluentform .orp-modal-at-final-step .fluentform-step.active .ff-btn-submit,
.orp-modal-form-shell .fluentform .orp-modal-at-final-step .fluentform-step.active button[type="submit"] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.orp-modal-form-shell .fluentform .orp-modal-at-final-step .fluentform-step.active .ff_submit_btn_wrapper,
.orp-modal-form-shell .fluentform .orp-modal-at-final-step .fluentform-step.active .ff_submit_btn_wrapper_custom {
  display: block !important;
  width: 100%;
}

.orp-quickbar {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 999990;
  display: grid;
  gap: 8px;
  justify-items: stretch;
  max-width: min(280px, calc(100vw - 32px));
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--or-quickbar-radius, 24px);
  background: color-mix(in srgb, #1d1d1f 88%, transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.orp-quickbar__items {
  display: grid;
  gap: 8px;
}

.orp-quickbar__items[hidden] {
  display: none !important;
}

.orp-quickbar__toggle,
.orp-quickbar__button {
  width: 100%;
  min-width: 190px;
  border-radius: calc(var(--or-quickbar-radius, 24px) - 8px);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-align: center;
}

.orp-quickbar__toggle {
  background: var(--or-primary, #0071e3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.orp-quickbar__toggle::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.orp-quickbar.is-open .orp-quickbar__toggle::after {
  transform: translateY(2px) rotate(225deg);
}

.orp-quickbar__button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.orp-modal-is-open .orp-quickbar {
  display: none !important;
}

@media (max-width: 640px) {
  .orp-modal {
    align-items: end;
    padding: 0;
  }

  .orp-modal__panel {
    width: 100%;
    max-height: 92vh;
    padding: 68px 22px 28px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--or-popup-radius, var(--or-modal-radius, 28px)) var(--or-popup-radius, var(--or-modal-radius, 28px)) 0 0;
  }

  .orp-modal__close {
    top: 16px;
    right: 18px;
  }

  .orp-quickbar {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}
