.pkc-configurator {
  padding: 48px 80px 62px;
  background: #fff;
  border-radius: 44px;
  box-shadow: 0 20px 60px rgba(38, 62, 71, 0.12);
  position: relative;
}

.pkc-progress {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 6px auto 58px;
}

.pkc-progress__item {
  width: 160px;
  height: 6px;
  border-radius: 999px;
  background: #eef0f0;
}

.pkc-progress__item.is-active {
  background: #c5a05a;
}

.pkc-step__title {
  margin: 0 0 34px;
  text-align: center;
  color: #244b57;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
}

.pkc-step__body {
  max-width: 1320px;
  margin: 0 auto;
}

.pkc-options--cards {
  display: grid;
  gap: 24px;
}

.pkc-options--style {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pkc-options--opening {
  display: flex;
  gap: 24px;
  justify-content: center;
  justify-items: center;
}

.pkc-options--opening .pkc-option {
  max-width: 350px;
}

.pkc-options--pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.pkc-option {
  border: 1px solid #f0f1f1;
  background: #fff;
  color: #315665;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.pkc-options--cards .pkc-option {
  overflow: hidden;
  border-radius: 20px !important;
  padding: 0 !important;
  box-shadow: 0 14px 35px rgba(38, 62, 71, 0.13);
  text-align: left;
}

.pkc-option__media {
  background: #e9ecec;
}

.pkc-option__media img,
.pkc-option__media-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  margin-bottom: 0 !important;
}

.pkc-option__media-fallback {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
  background: linear-gradient(135deg, #d7cab9 0%, #efe9db 52%, #7d969a 100%);
}

.pkc-option__media-fallback-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #244b57;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pkc-options--cards .pkc-option__label {
  display: block;
  padding: 24px 28px;
  font-size: 1.5em;
  line-height: 1.2;
  background: #fff;
  text-align: center;
}

.pkc-options--pills .pkc-option {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 999px;
}

.pkc-option__swatch {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.pkc-option__swatch img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pkc-option.is-active {
  color: #fff;
  border-color: #2e5963;
  background-color: #2e5963;
}

.pkc-options--cards .pkc-option.is-active {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(38, 62, 71, 0.18);
}

.pkc-options--cards .pkc-option.is-active .pkc-option__label {
  background: #2e5963;
  color: #fff;
  font-weight: 700;
}

.pkc-options--pills .pkc-option.is-active .pkc-option__swatch {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.pkc-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 42px;
}

.pkc-button {
  min-width: 220px;
  min-height: 58px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.pkc-button--primary {
  border: 0;
  background: #c5a05a;
  color: #fff;
  box-shadow: 0 8px 14px rgba(199, 161, 85, 0.24);
}

.pkc-button--secondary {
  border: 1px solid #c5a05a;
  background: transparent;
  color: #c5a05a;
}

.pkc-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .pkc-configurator {
    padding: 32px 24px 40px;
  }

  .pkc-options--style,
  .pkc-options--opening {
    grid-template-columns: 1fr;
  }

  .pkc-options--opening {
    flex-wrap: wrap;
  }

  .pkc-options--pills {
    flex-wrap: wrap;
    gap: 9px;
    justify-content: start;
  }

  .pkc-options--pills .pkc-option {
    justify-content: start;
    align-items: center;
    padding: 10px 10px;
    width: calc(50% - 5px);
  }

  .pkc-option {
    text-align: left;
  }

  .pkc-actions {
    flex-direction: column-reverse;
  }
}

/* Busy state.
   Only applied once a wait passes the threshold set in pkp-configurator.js, so an
   instantly resolved step never flashes it. */
.pkc-step {
  position: relative;
}

.pkc-step.is-busy .pkc-step__body {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 120ms ease-out;
}

.pkc-step.is-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(45, 74, 90, 0.18);
  border-top-color: #2d4a5a;
  border-radius: 50%;
  animation: pkc-spin 700ms linear infinite;
  pointer-events: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .pkc-step.is-busy::after {
    animation: none;
    border-top-color: rgba(45, 74, 90, 0.18);
    opacity: 0.6;
  }

  .pkc-step.is-busy .pkc-step__body {
    transition: none;
  }
}
