/* WCDM Frontend CSS */

.wcdm-modifiers-container {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.wcdm-group {
  margin-bottom: 25px;
}

.wcdm-group-header {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 5px;
}

.wcdm-group-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.required {
  color: #e74c3c;
  font-weight: bold;
}

.wcdm-option-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f9f9f9;
}

.wcdm-option-row:last-child {
  border-bottom: none;
}

.wcdm-qty-controls {
  display: flex;
  align-items: center;
  margin-right: 15px;
  min-width: 90px;
  justify-content: space-between;
}

/* Кнопки +/- как у Glovo */
.wcdm-qty-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;

  border-radius: 50% !important;
  border: 1.5px solid #e5e5e5 !important;
  background: #fff !important;

  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  cursor: pointer;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;

  transition: all .15s ease;
}

/* hover */
.wcdm-qty-btn:hover {
  background: #fafafa !important;
  border-color: #d0d0d0 !important;
}

/* active */
.wcdm-qty-btn:active {
  transform: scale(0.92);
}

/* минус */
.wcdm-qty-btn.minus {
  color: #ef4444 !important;
}

/* плюс */
.wcdm-qty-btn.plus {
  color: #22c55e !important;
}

.wcdm-qty-val {
  font-weight: 600;
  width: 20px;
  text-align: center;
}

.wcdm-check-col {
  margin-right: 15px;
}

.wcdm-option-input {
  transform: scale(1.2);
  cursor: pointer;
}

.wcdm-info-col {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.wcdm-icon {
  margin-right: 8px;
  font-size: 18px;
}

.wcdm-name {
  font-size: 15px;
  color: #333;
}

.wcdm-price-col {
  font-weight: 600;
  color: #555;
  font-size: 14px;
  margin-left: 10px;
}

/* Cart Controls */
.wcdm-cart-mods {
  margin-top: 5px;
  padding-left: 10px;
  border-left: 2px solid #eee;
  font-size: 0.9em;
}

.wcdm-cart-mod-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.wcdm-cart-mod-name {
  margin-right: 8px;
  font-weight: 500;
}

.wcdm-cart-qty-controls {
  display: inline-flex;
  align-items: center;
  margin: 0 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.wcdm-cart-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  text-decoration: none !important;
  color: #333;
  background: #f9f9f9;
  font-weight: bold;
  cursor: pointer;
}

.wcdm-cart-action:hover {
  background: #eee;
}

.wcdm-cart-qty-controls .val {
  padding: 0 5px;
  min-width: 15px;
  text-align: center;
  font-size: 0.9em;
}

.wcdm-cart-mod-price {
  margin-left: auto;
  color: #777;
}

.wcdm-cart-action.remove {
  color: #e74c3c;
  margin-left: 5px;
  border: 1px solid #eee;
  border-radius: 50%;
}

/* loading state */
.wcdm-cart-mod-row.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* =================================================
   WCDM MODIFIERS STYLE
   Круглые кнопки только для модификаторов
=================================================*/

.wcdm-wrapper {
  margin-top: 15px;
}

.wcdm-field {
  margin-bottom: 15px;
}

.wcdm-field-title {
  font-weight: 600;
  margin-bottom: 8px;
}

/* контейнер количества */
.wcdm-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* блок количества */
.wcdm-qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* число между кнопками */
.wcdm-qty-count {
  min-width: 30px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

/* цена модификатора */
.wcdm-price {
  margin-left: auto;
  font-weight: 500;
  color: #333;
}

/* строка модификатора */
.wcdm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

/* чекбоксы */
.wcdm-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* мобильная адаптация */
@media (max-width: 768px) {
  .wcdm-qty-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 18px !important;
  }

  .wcdm-qty-count {
    font-size: 15px;
  }
}