/* BomWidgets — Wizard */

*:has(> .bww) {
  container-type: inline-size;
}

.bww {
  max-width: 800px;
}

/* Step */
.bww__step {
  margin-bottom: 28px;
  position: relative;
  padding-left: 44px;
}

.bww__step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bww__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #01a8ff, #007ce4);
  color: #fff;
  font-size: 15px;
  font-family: "GreycliffCF-Bold.woff"; font-weight: 400;
  flex-shrink: 0;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}

/* Timeline connector line between steps */
.bww__step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -28px;
  width: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.bww__step-title {
  font-size: 17px;
  font-family: "GreycliffCF-Bold.woff"; font-weight: 400;
  color: #1e293b;
}

/* Options grid */
.bww__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Option button */
.bww__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #334155;
  line-height: 1;
}

.bww__option:hover {
  border-color: #93c5fd;
  background: #f0f7ff;
}

.bww__option.is-selected {
  border-color: #007ce4;
  background: linear-gradient(180deg, #01a8ff, #007ce4);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 124, 228, 0.25);
  transform: translateY(-1px);
}

/* Option icon */
.bww__option-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

.bww__option.is-selected .bww__option-icon {
  fill: #fff;
}

/* Result */
.bww__result {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.bww__result-text {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 20px;
}

.bww__result-button {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(180deg, #01a8ff, #007ce4);
  color: #fff;
  font-size: 15px;
  font-family: "GreycliffCF-Bold.woff"; font-weight: 400;
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.bww__result-button:hover {
  box-shadow: 0 4px 16px rgba(0, 124, 228, 0.3);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.bww__result-button:active {
  transform: translateY(0);
}

/* Dark theme */
.bww--dark {
  background: transparent;
}

.bww--dark .bww__step-title {
  color: #fff;
}

.bww--dark .bww__step-number {
  background: #008EF1;
}

.bww--dark .bww__step:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.15);
}

.bww--dark .bww__option {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.bww--dark .bww__option .bww__option-icon {
  fill: rgba(255, 255, 255, 0.85);
}

.bww--dark .bww__option:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.bww--dark .bww__option.is-selected {
  border-color: #008EF1;
  background: linear-gradient(180deg, #013350, #033d56);
  color: #fff;
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 1px #008EF1, 0 2px 12px rgba(0, 142, 241, 0.3);
}

.bww--dark .bww__option.is-selected .bww__option-icon {
  fill: #fff;
}

.bww--dark .bww__result {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.bww--dark .bww__result-text {
  color: #cbd5e1;
}

.bww--dark .bww__result-button {
  background: #008EF1;
}

.bww--dark .bww__result-button:hover {
  background: #1a9ff5;
  box-shadow: 0 4px 20px rgba(0, 142, 241, 0.4);
}

@container (max-width: 600px) {
  .bww--dark {
    padding: 20px;
    border-radius: 12px;
  }
}

/* Hide JSON data */
.bww__data {
  display: none;
}

/* Responsive */
@container (max-width: 600px) {
  .bww__options {
    gap: 8px;
  }

  .bww__option {
    padding: 8px 12px;
    font-size: 13px;
    gap: 6px;
  }

  .bww__option-icon {
    width: 18px;
    height: 18px;
  }

  .bww__step-title {
    font-size: 15px;
  }

  .bww__step {
    padding-left: 38px;
  }

  .bww__step-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .bww__step:not(:last-child)::after {
    left: 13px;
    top: 28px;
  }

  .bww__result {
    padding: 18px;
  }

  .bww__result-text {
    font-size: 14px;
  }

  .bww__result-button {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
}
