:root {
  --configurator-burgundy: #830a2c;
}

html,
body.configurator-embed {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #fbf7f3;
}

body.configurator-embed {
  overflow: hidden;
}

.configurator-bootstrap {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 100vh;
  padding: 32px;
  color: #44252f;
  text-align: center;
  background: linear-gradient(145deg, #fffaf5, #f1e5df);
}

.configurator-bootstrap[hidden] {
  display: none;
}

.configurator-home { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: #f7f4f1; }
.configurator-home-card { width: min(760px, 100%); padding: 34px; border: 1px solid #ead9d3; border-radius: 24px; background: #fff; box-shadow: 0 16px 48px rgba(54, 24, 34, .1); }
.configurator-home-card h1 { margin: 8px 0; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.configurator-home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 34px; }
.configurator-drafts-list { display: grid; gap: 10px; }
.configurator-draft { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px; border: 1px solid #ead9d3; border-radius: 14px; }

.configurator-bootstrap strong {
  color: var(--configurator-burgundy);
  font-size: 1.2rem;
}

.configurator-bootstrap.is-error strong,
.configurator-bootstrap.is-error span {
  color: #a32626;
}

.configurator-embed .modal-shell-fullscreen,
.configurator-embed .modal-overlay,
.configurator-embed #opening-modal,
.configurator-embed #ceruse-modal {
  position: fixed;
  inset: 0;
}

.configurator-embed .configuration-modal-card {
  width: 100%;
  max-width: none;
  min-height: 100%;
  border-radius: 0;
}

.configurator-embed .configuration-modal-header,
.configurator-embed .configuration-footer-bar {
  background: #fffaf7;
}

.configurator-embed .primary-button {
  background: var(--configurator-burgundy);
}

.configurator-embed .configuration-back-button {
  display: none;
}

.configurator-embed .opening-form-section.is-complete .opening-section-status,
.configurator-embed .opening-section-step.is-complete {
  color: #277b53;
}

.configurator-embed .configuration-name-modal-card {
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.configurator-embed .b2b-checkout-progress {
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 31, 26, 0.56);
}

.configurator-embed .b2b-checkout-card {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(560px, 100%);
  padding: 30px;
  border-radius: 22px;
  color: #153f35;
  background: #fffdf7;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.configurator-embed .b2b-checkout-spinner {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 5px solid #d9e8d4;
  border-top-color: #1f5a49;
  border-radius: 50%;
  animation: configurator-submit-spin 800ms linear infinite;
}

.configurator-embed.installer-mode #add-opening-button,
.configurator-embed.installer-mode #delete-opening-button,
.configurator-embed.installer-mode #duplicate-opening-button,
.configurator-embed.installer-mode [data-opening-delete],
.configurator-embed.installer-mode [data-opening-duplicate],
.configurator-embed.installer-mode .configuration-message-section {
  display: none !important;
}

@keyframes configurator-submit-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .configurator-embed .modal-overlay,
  .configurator-embed #opening-modal,
  .configurator-embed #ceruse-modal {
    padding: 0;
  }

  .configurator-embed .configuration-name-modal-card,
  .configurator-embed .opening-modal-card {
    min-height: 100%;
    border-radius: 0;
  }
}
