/**
 * Codafweb - WooCommerce custom mål
 * Frontend-styling for custom-mål produkttyper (græskant, plantekasse, ...).
 *
 * Indlæses kun på produktsider for disse produkttyper.
 */

/* --------------------------------------------------------------------------
 * Enhedsvælger (mm/cm) - delt af alle custom-mål produkttyper.
 * -------------------------------------------------------------------------- */

.cw-unit-toggle {
  display: flex;
  gap: 5px;
}

.cw-unit-toggle .unit-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 41px;
  padding: 0 20px;
  font-family: 'Manrope';
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  color: #333333;
  background-color: #ffffff;
  border-radius: 6px;
  border: 2px solid #ebebeb;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.cw-unit-toggle .unit-btn:hover {
  color: #448fd0;
}

.cw-unit-toggle .unit-btn.active {
  color: #ffffff;
  background-color: #444c5a;
  border-color: #444c5a;
}

/* --------------------------------------------------------------------------
 * Felt-layout pr. produkttype.
 * -------------------------------------------------------------------------- */

.grass-edge-options,
.plantekasse-options {
  width: 100%;
}

.grass-edge-options table.variations,
.plantekasse-options table.variations {
  width: 100%;
}

.grass-edge-options table.variations tr,
.plantekasse-options table.variations tr {
  margin-bottom: 1em;
}

.grass-edge-options table.variations td.value,
.plantekasse-options table.variations td.value {
  padding: 10px 0;
}

/* --------------------------------------------------------------------------
 * Debug-panel (?cw_debug=1, kun shop-admin) - viser hele prisberegningen.
 * -------------------------------------------------------------------------- */

.cw-debug {
  padding: 10px 12px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
}

.cw-debug-table {
  width: 100%;
  border-collapse: collapse;
}

.cw-debug-table td {
  padding: 3px 0;
  border: none;
}

.cw-debug-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.cw-debug-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #888;
}

/* Bemærkningsfelt o.l. - temaet sætter kun input/select i fuld bredde. */
.grass-edge-options textarea,
.plantekasse-options textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
