/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 13 2025 | 11:12:10 */

/* ---------- Table Card Wrapper ---------- */
.cmw-table-wrapper {
  background: #fff;
  padding: 1em;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 1.5em;
  overflow-x: auto;
}

/* ---------- Table Styling ---------- */
.cmw-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75em;
  background: #fff;
}

.cmw-table th {
  background-color: #386641;
  color: #fff;
  font-weight: 600;
  padding: 0.75em;
  text-align: center;
  border: none;
}

.cmw-table td {
  border: 1px solid #ddd;
  padding: 0.5em;
  text-align: center;
}

/* ---------- "Lägg till rad"-knapp ---------- */
.cmw-add-row {
  display: inline-block;
  background-color: #386641;
  color: #fff;
  font-size: 0.9em;
  padding: 8px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1em;
}
.cmw-add-row:hover,
.cmw-add-row:active {
  background-color: #6A994E;
  color: #fff;
}

/* ---------- Papperkorgs-ikon ---------- */
.cmw-remove {
  background-color: #cc0000;
  color: #fff;
  border: none;
  padding: 4px 6px;
  font-size: 1.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.cmw-remove:hover {
  background-color: #e53935;
  color: #fff;
}

/* ---------- Mobilanpassning ---------- */
@media (max-width: 480px) {
  .cmw-table thead {
    display: none;
  }

  .cmw-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cmw-table tr {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
  }

  .cmw-table td {
    width: 48%;
    margin-bottom: 8px;
    position: relative;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    border: none;
    box-sizing: border-box;
  }

  .cmw-table td::before {
    content: attr(data-label);
    font-weight: bold;
    margin-bottom: 4px;
    color: #386641;
  }

  .cmw-table td[data-label="Täckbredd (m)"],
  .cmw-table td[data-label="Kvm"] {
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: transparent;
    padding: 0.5em 0;
  }

  .cmw-table td[data-label="Täckbredd (m)"] .cmw-tackbredd {
    border: none;
    background: none;
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    width: 100%;
    color: #000;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
  }

  .cmw-table td:last-child {
    width: auto;
    margin-left: auto;
    margin-top: -1.5em;
    align-self: flex-end;
    padding: 0;
  }

  .cmw-remove {
    padding: 4px;
    font-size: 1em;
    border-radius: 50%;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #cc0000;
    color: #fff;
    border: none;
  }

  .cmw-remove:hover {
    background-color: #e53935;
    color: #fff;
  }
}

/* Dropdown */
.mto-wrapper {
  margin-top: 20px;
}

/* Dropdownmeny – fyller hela bredden */
.mto-product-select {
  padding: 8px;
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Lägg till i varukorg-knappen – ljusgrön stil */
.mto-submit {
  background-color: #386641;  /* ljusgrön */
  color: white;
  border: none;
  padding: 12px 18px;          /* lite mindre */
  font-size: 15px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover & active – mörkare grön */
.mto-submit:hover,
.mto-submit:active {
  background-color: #558B2F;  /* mörkgrön */
  color: white;
}
