/* File: astrachildtheme/meterware/css/mware-konfigurator.css
   Version 1.0.7

   ==========================================================================
   Max Plank Konfigurator – CSS
   Saubere Struktur mit Klassen + IDs, aria-ready HTML
   ==========================================================================
*/

/* === Container ======================================================== */
#meter-container {
  max-width: 420px;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* === Bildvorschau ===================================================== */
#preview {
  text-align: center;
  margin-bottom: 20px;
}

#variantImg {
  max-width: 100%;
  max-height: 300px;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  margin: 0 auto 10px;
  display: block;
  cursor: pointer;
}

/* === Block 1: Eingaben ================================================ */
.form-table {
  display: table;
  width: 100%;
  border-spacing: 0.3rem 0.4rem;
  margin-bottom: 1.5rem;
}

.form-row { display: table-row; }

.form-label {
  display: table-cell;
  text-align: right;
  vertical-align: middle;
  padding-right: 0.6rem;
  font-weight: 600;
  color: #767676;
  font-size: 0.95em;
  white-space: nowrap;
  width: 40%;
}

.form-field {
  display: table-cell;
  vertical-align: middle;
  width: 60%;
  font-size: 0.95em;
}

.form-field select,
.form-field input[type="number"] {
  width: 100%;
  min-height: 2.5em;
  font-size: 0.97em;

  border: 1px solid #ddd;
  border-radius: 0.4rem;
  box-sizing: border-box;
  background: #fff;
}
#lengthInp {
  text-align: center;
}

/* === Block 2: Preisangaben ============================================ */
.price-table {
  display: table;
  width: 100%;
  border-spacing: 0.3rem 0.2rem;
  margin-bottom: 1rem;
}

.price-row { display: table-row; }

.price-label {
  display: table-cell;
  text-align: right;
  vertical-align: middle;
  padding-right: 0.4rem;
  font-weight: 600;
  color: #767676;
  font-size: 0.96em;
  white-space: nowrap;
  width: 50%;
}

.price-value {
  display: table-cell;
  text-align: left;
  vertical-align: middle;
  padding-left: 0.1rem;
  font-size: 0.96em;
  color: #464646;
  width: 50%;
}

#discountNextValue {
  color: #3a8205;
  font-weight: 500;
}

#totalPriceValue {
  font-weight: 600;
  color: #575757;

}

/* === Hinweise & Button =============================================== */

/* Base styles: Hide by default, apply common padding */
.message-error,
.message-hint {
  display: none; /* Hide both message types by default */
  padding: 0.0em;
  text-align: center;
}
/* Visibility: Show when the 'visible' class is present */
.message-error.visible,
.message-hint.visible {
  display: block; /* Or inline-block, flex, etc., based on how you want them to flow */
}
.message-error {border: 1px solid rgb(219, 2, 2);}
.message-hint {border: 1px solid rgb(13, 120, 1);}



.notes {
  font-size: 0.85em;
  color: #555;
  margin: 0.4rem 0 0.8rem;
  line-height: 1.4;
  text-align: center;
}
#noteRabatt {
    font-size: 0.9em;
}


#addBtn {
  display: block;
  margin: 1rem auto 0;
}

/* === Lightbox ======================================================== */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  z-index: 20000;
  padding: 20px;
  box-sizing: border-box;
}

#lightbox-overlay.active {
  display: flex !important;
}

#lightbox-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}
