.bw-configurator-body {
  background: #f8f9fa;
}

.bw-configurator-embed {
  margin: 0;
  overflow-x: hidden;
}

.bw-configurator-embed .bw-config-hero .container,
.bw-configurator-embed .bw-config-wrap .container {
  max-width: 100%;
}

.bw-configurator-embed .bw-config-wrap {
  min-height: auto;
}

.bw-config-hero {
  border-bottom: 1px solid #dfe5ee;
}

.bw-config-wrap {
  min-height: 70vh;
}

.bw-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 16px;
  padding-top: 16px;
}

.bw-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  color: #6c757d;
  background: #fff;
  border: 1px solid #dfe5ee;
}

.bw-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #0061c1;
  border: 1px solid #0061c1;
  font-family: Avenir, Arial, sans-serif;
  font-weight: 700;
}

.bw-step b {
  font-size: 0.9rem;
}

.bw-step.is-current {
  color: #fff;
  background: #0061c1;
  border-color: #0061c1;
}

.bw-step.is-current span {
  color: #0061c1;
  background: #fff;
}

.bw-step.is-done {
  color: #0061c1;
  background: #f2f8ff;
}

.bw-config-panel,
.bw-summary {
  background: #fff;
  border: 1px solid #dfe5ee;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.bw-config-panel {
  padding: 24px;
}

.bw-panel-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dfe5ee;
}

.bw-choice-section {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.bw-choice-section legend {
  width: 100%;
  margin-bottom: 12px;
  font-weight: 700;
}

.bw-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bw-option-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 64px;
  margin: 0;
  padding: 14px;
  color: #212529;
  background: #fff;
  border: 1px solid #ced4da;
  cursor: pointer;
}

.bw-option-card:hover {
  border-color: #0061c1;
}

.bw-option-card input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.bw-option-card:has(input:checked) {
  background: #f2f8ff;
  border-color: #0061c1;
  box-shadow: inset 4px 0 0 #0061c1;
}

.bw-option-title {
  font-weight: 700;
  line-height: 1.5;
}

.bw-input-group {
  margin-bottom: 20px;
}

.bw-input-group label {
  font-weight: 700;
}

.bw-input-group select.form-control {
  height: 48px;
}

.bw-field-error {
  margin: 0 0 8px;
  color: #c20062;
  font-size: 0.9rem;
  font-weight: 700;
}

.bw-config-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #dfe5ee;
}

.bw-config-actions .btn-success {
  margin-left: auto;
  min-width: 220px;
}

.bw-summary {
  position: sticky;
  top: 16px;
  padding: 20px;
}

.bw-summary dl {
  margin: 0;
}

.bw-summary div {
  margin-bottom: 12px;
}

.bw-summary dt {
  color: #6c757d;
  font-size: 0.8rem;
}

.bw-summary dd {
  margin: 0;
  font-weight: 700;
}

.bw-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bw-zip-message {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: #6c757d;
}

.bw-zip-message.is-error {
  color: #c20062;
  font-weight: 700;
}

.bw-zip-message.is-ok {
  color: #0061c1;
}

.bw-zip-message.is-loading {
  color: #6c757d;
}

.bw-zip-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.bw-zip-modal {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid #dfe5ee;
  max-height: min(82vh, 560px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bw-zip-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #dfe5ee;
}

.bw-zip-modal-title {
  margin: 0;
  font-size: 1rem;
}

.bw-zip-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dfe5ee;
  background: #fff;
  color: #212529;
}

.bw-zip-modal-note {
  margin: 12px 16px 4px;
}

.bw-zip-modal-list {
  overflow-y: auto;
  padding: 6px 0;
}

.bw-zip-modal-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: #fff;
  text-align: left;
  color: #212529;
  border-bottom: 1px solid #f0f3f7;
}

.bw-zip-modal-option:hover,
.bw-zip-modal-option:focus-visible {
  background: #f2f8ff;
  outline: none;
}

.bw-zip-modal-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .bw-summary {
    position: static;
    margin-top: 16px;
  }
}

@media (max-width: 767.98px) {
  .bw-stepper {
    grid-template-columns: repeat(2, 1fr);
  }

  .bw-option-grid {
    grid-template-columns: 1fr;
  }

  .bw-config-panel {
    padding: 18px;
  }

  .bw-config-actions {
    flex-direction: column-reverse;
  }

  .bw-config-actions .btn {
    width: 100%;
  }
}
