.cmw-table-wrapper {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    max-width: 100%;
    overflow-x: auto;
}

.cmw-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.cmw-table th,
.cmw-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

.cmw-table input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
}

.cmw-add-row {
    display: inline-block;
    background-color: #386641;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

.elementor-control-select2 .select2-container {
    min-height: 150px !important;
}
.elementor-control-select2 .select2-selection--multiple {
    min-height: 150px !important;
    overflow-y: auto;
}

.cmw-total {
    font-weight: bold;
    margin-top: 10px;
}

.mto-price-info {
    margin-top: 10px;
    font-size: 16px;
    min-height: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mto-price-info.price-changed {
    color: #386641;
    transform: scale(1.04);
}

.woocommerce-cart-form .cmw-cart-table-wrap table,
.woocommerce-checkout-review-order-table .cmw-cart-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5em 0;
}
.woocommerce-cart-form .cmw-cart-table-wrap th,
.woocommerce-cart-form .cmw-cart-table-wrap td,
.woocommerce-checkout-review-order-table .cmw-cart-table-wrap th,
.woocommerce-checkout-review-order-table .cmw-cart-table-wrap td {
  border: 1px solid #ddd;
  padding: 6px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .cmw-table {
    display: block;
    width: 100%;
  }

  .cmw-table thead {
    display: none;
  }

  .cmw-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cmw-table tr {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    background-color: #fff;
  }

  .cmw-table td {
    width: 48%;
    margin-bottom: 8px;
    position: relative;
    font-size: 14px;
    display: flex;
    flex-direction: column;
  }

  .cmw-table td::before {
    content: attr(data-label);
    font-weight: bold;
    margin-bottom: 4px;
    color: #386641;
  }

  .cmw-table td:last-child {
    width: 100%;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
  }
}

