.radiator-selector-container {
  margin-bottom: 30px;
}

.step-section {
  margin-bottom: 24px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.step-section.active {
  border-color: #a8bf7f;
}

.step-section.completed {
  border-color: #a8bf7f;
}

.step-section.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.step-header {
  padding: 16px 20px;
  background: #f8f9fa;
  font-weight: 600;
  font-size: 16px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.step-section.completed .step-header:hover {
  background: #f3f6ee;
}

.step-section.active .step-header {
  background: #f3f6ee;
  color: #a8bf7f;
}

.step-section.completed .step-header {
  background: #e8f5e9;
  color: #a8bf7f;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ddd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 14px;
  font-weight: bold;
}

.step-section.active .step-number {
  background: #a8bf7f;
}

.step-section.completed .step-number {
  background: #a8bf7f;
}

.step-content {
  padding: 20px;
  display: none;
}

.step-section.active .step-content {
  display: block;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.size-btn {
  padding: 12px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-align: center;
}

.size-btn:hover {
  border-color: #a8bf7f;
  transform: translateY(-1px);
}

.size-btn.selected {
  background: #f3f6ee;
  color: A8BF7F;
  border-color: #a8bf7f;
}

.custom-size {
  margin-top: 16px;
}

.custom-size-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #555;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-label {
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
}

.ui-input-number {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.ui-input-number:focus {
  outline: none;
  outline-style: none !important;
  border-color: #a8bf7f;
}

.finish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.finish-btn {
  padding: 14px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  font-weight: 500;
  color: #555;
}

.finish-btn:hover {
  border-color: #a8bf7f;
}

.finish-btn.selected {
  background: #f3f6ee;
  color: #a8bf7f;
  border-color: #a8bf7f;
}

.radiator-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.radiator-type-btn {
  padding: 14px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  font-weight: 500;
  color: #555;
}

.radiator-type-btn:hover {
  border-color: #a8bf7f;
}

.radiator-type-btn.selected {
  background: #f3f6ee;
  color: #a8bf7f;
  border-color: #a8bf7f;
}

.color-section {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  animation: fadeIn 0.3s ease-in;
}

.color-section.visible {
  display: block !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
}

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

.color-option {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.color-option:hover {
  border-color: #a8bf7f;
}

.color-option.selected {
  border-color: #a8bf7f;
  background: #f3f6ee;
}

.color-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 10px;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.color-name {
  font-size: 13px;
  color: #555;
}

.toppers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.topper-option {
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.topper-option:hover {
  border-color: #a8bf7f;
}

.topper-option.selected {
  border-color: #a8bf7f;
  border-width: 3px;
}

.topper-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: #f8f8f8;
}

.topper-name {
  padding: 10px;
  text-align: center;
  font-weight: 500;
  color: #555;
  font-size: 13px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.ui-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.outline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.outline-option {
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  padding: 20px;
}

.outline-option:hover {
  border-color: #a8bf7f;
}

.outline-option.selected {
  border-color: #a8bf7f;
  background: #f3f6ee;
}

.outline-icon {
  width: 60px;
  height: 60px;
  background: #f0f0f0;
  margin: 0 auto 8px;
  border-radius: 8px;
}

.outline-name {
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

.next-btn {
  width: 100%;
  padding: 14px;
  background: #a8bf7f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.2s;
}

.next-btn:hover {
  background: #f3f6ee;
  color: #a8bf7f;
}

.next-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.skirting-details {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.skirting-details.visible {
  display: block;
}

.btn {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.btn.selected {
  background: #111827;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.woocommerce-notices-wrapper .woocommerce-message {
  display: initial !important;
}

.woocommerce-message.woocommerce-error {
  background-color: var(--bricks-bg-danger) !important;
  color: var(--bricks-text-danger) !important;
  line-height: 1.7;
  list-style-type: none;
  margin: 0;
  overflow: hidden !important;
  padding: 15px !important;
}

/*** Hide Current Calculation ***/
.wapf {
  display: none;
}

ul.woocommerce-mini-cart.cart_list.product_list_widget
  li.woocommerce-mini-cart-item.mini_cart_item
  dl.variation {
  display: none;
}

.ui-input-number[readonly] {
  background-color: #f7f7f7;
  cursor: not-allowed;
  opacity: 0.85;
}

div#cabinet-size-row {
  padding-top: 10px;
}

.radiator-selector-container div#step-1 .ui-input-number[readonly] {
  background-color: #ffffff;
  cursor: not-allowed;
  opacity: 0.75;
  border: 0px;
  padding: 4px !important;
}

.topper-image {
  position: relative;
  cursor: pointer;
}

/* Zoom button */
.topper-zoom-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.topper-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* SVG icon */
.topper-zoom-icon {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* Lightbox base */
.topper-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

/* Visible state */
.topper-lightbox.is-open {
  display: block;
}

/* Background overlay */
.topper-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

/* Centered content */
.topper-lightbox-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none; /* prevent blocking backdrop clicks except content */
}

.topper-lightbox-content img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  background: #fff;
  pointer-events: auto;
}

/* Close button */
.topper-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 30px;
  line-height: 1;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

/* Detailing ----------------------------- */

.detailing-option {
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.detailing-option:hover {
  border-color: #a8bf7f;
}

.detailing-option.selected {
  border-color: #a8bf7f;
  border-width: 3px;
}

.detailing-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: #f8f8f8;
}

.detailing-name {
  padding: 10px;
  text-align: center;
  font-weight: 500;
  color: #555;
  font-size: 13px;
}

.detailing-image {
  position: relative;
  cursor: pointer;
}

/* Zoom button */
.detailing-zoom-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.detailing-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* SVG icon */
.detailing-zoom-icon {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* Lightbox base */
.detailing-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

/* Visible state */
.detailing-lightbox.is-open {
  display: block;
}

/* Background overlay */
.detailing-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

/* Centered content */
.detailing-lightbox-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none; /* prevent blocking backdrop clicks except content */
}

.detailing-lightbox-content img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  background: #fff;
  pointer-events: auto;
}

/* Close button */
.detailing-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 30px;
  line-height: 1;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}
