/* Стили для фронтенда */
.wc-additional-services-frontend {
    margin: 20px 0;
    /* border: 1px solid #e5e5e5; */
    /* padding: 15px; */
    /* border-radius: 5px; */
    /* background-color: #f9f9f9; */
}

.wc-additional-services-frontend h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 500;
    color: #c2c2c2;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    flex-direction: column;
}

.service-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.service-name {
    flex: 1;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
}

.service-price {
    margin-right: 10px;
    text-align: right;
    font-weight: 500;
    font-size: 14px;
}

.service-separator {
    height: 1px;
    background-color: #EAEAEA;
    width: 100%;
}

/* Toggle Switch стиль iOS */
.switch {
    position: relative;
    display: inline-block;
    width: 43px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E9E9EB;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #34C85A;
}

input:focus + .slider {
    box-shadow: 0 0 1px #34C85A;
}

input:checked + .slider:before {
    transform: translateX(19px);
}

/* Круглый слайдер */
.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Стили для бесплатных товаров в корзине и checkout */
.wc-free-gift-quantity {
    position: relative;
    display: inline-block;
}

.free-gift-qty-disabled {
    color: #999 !important;
    border-color: #ddd !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.free-gift-qty-disabled:focus {
    box-shadow: none !important;
    outline: none !important;
}

.free-gift-label {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.wc-free-gift-checkout-qty {
    color: #999 !important;
    font-weight: normal !important;
    opacity: 0.7;
}

/* Стили для индикатора бесплатного товара под названием */
.free-gift-indicator {
    display: block;
    font-size: 12px;
    color: #4CAF50;
    font-weight: normal;
    margin-top: 4px;
    line-height: 1.2;
}

.woocommerce-cart .product-name .free-gift-indicator,
.woocommerce-checkout .product-name .free-gift-indicator {
    font-style: normal;
    opacity: 0.9;
}

/* Дополнительные стили для лучшей интеграции с WooCommerce */
.woocommerce .wc-free-gift-quantity input[type="number"] {
    background-color: #f5f5f5 !important;
    color: #999 !important;
}

.woocommerce-cart .wc-free-gift-quantity,
.woocommerce-checkout .wc-free-gift-quantity {
    text-align: center;
}

/* Скрытие кнопок увеличения/уменьшения для заблокированных полей */
.free-gift-qty-disabled::-webkit-outer-spin-button,
.free-gift-qty-disabled::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.free-gift-qty-disabled[type=number] {
    -moz-appearance: textfield;
}

/* Блокировка кнопок +/- для бесплатных товаров */
.quantity .quantity-plus.disabled,
.quantity .quantity-minus.disabled,
.quantity .plus.disabled,
.quantity .minus.disabled {
    color: #ccc !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.5 !important;
}
