/* Folienwerk Konfigurator – WordPress Plugin */

.fw-konfig-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .fw-konfig-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
    align-items: start;
  }
}

@media (max-width: 1023px) {
  .fw-konfig-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

/* Step card transitions */
.fw-step-content {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.fw-step-content.open {
  max-height: 1400px;
  opacity: 1;
}

.fw-step-content.closed {
  max-height: 0;
  opacity: 0;
}

.fw-step-content.open > .fw-inner {
  padding: 1.5rem;
}

.fw-step-content.closed > .fw-inner {
  padding: 0 1.5rem;
}

/* Reset WP/GP default button styles */
#fw-konfigurator-root button,
#fw-konfigurator-root .fw-brand-btn,
#fw-konfigurator-root .fw-model-btn,
#fw-konfigurator-root .fw-side-btn,
#fw-konfigurator-root .fw-foil-card {
  color: #0f1a2e;
  background-color: #fff;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

#fw-konfigurator-root .fw-add-to-cart-btn {
  color: #fff !important;
}

/* Interactive elements */
.fw-brand-btn,
.fw-model-btn,
.fw-side-btn,
.fw-foil-card {
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.fw-brand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 125, 224, 0.12);
}

.fw-model-btn:hover {
  background: #eff5ff !important;
}

.fw-side-btn:hover {
  transform: translateY(-1px);
}

.fw-foil-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29, 125, 224, 0.10);
}

.fw-add-to-cart-btn {
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.fw-add-to-cart-btn:hover {
  transform: scale(1.02);
}

.fw-add-to-cart-btn:active {
  transform: scale(0.98);
}

/* Step number circle */
.fw-step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Foil card shimmer */
.fw-foil-card {
  position: relative;
  overflow: hidden;
}

@keyframes fw-foil-shimmer {
  0% { transform: translateX(-110%); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}

.fw-foil-shimmer-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  animation: fw-foil-shimmer 0.65s ease forwards;
  pointer-events: none;
}

/* Summary sticky */
@media (min-width: 1024px) {
  .fw-summary-sticky {
    position: sticky;
    top: 7rem;
  }
}

/* Responsive grids */
@media (max-width: 639px) {
  .fw-brand-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .fw-model-grid {
    grid-template-columns: 1fr !important;
  }
  .fw-side-grid {
    grid-template-columns: 1fr !important;
  }
  .fw-foil-flex {
    flex-direction: column !important;
  }
  .fw-foil-img {
    width: 100% !important;
    height: 8rem !important;
  }
}

/* Loading state */
.fw-loading {
  text-align: center;
  padding: 4rem 2rem;
  color: #677083;
  font-weight: 500;
}

.fw-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #dde4ee;
  border-top-color: #1d7de0;
  border-radius: 50%;
  animation: fw-spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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