/* Полное скрытие любых купонных UI-элементов */
.woocommerce-form-coupon-toggle,
.woocommerce-info .showcoupon,
a.showcoupon,
form.checkout_coupon,
.checkout_coupon,
.woocommerce-checkout .coupon,
.woocommerce-message .showcoupon,
.woocommerce-error .showcoupon,
.woocommerce-info .showcoupon {
    display: none !important;
}

/* === САМЫЙ ВАЖНЫЙ СЛОЙ ПРОТИВ УЕЗДАНИЯ КОНТЕНТА === */
.woocommerce-checkout * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

/* Общие стили страницы оформления заказа */
.woocommerce-checkout {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 0px;
    margin: 0 auto;
    max-width: 1900px;
    box-sizing: border-box;
}

/* Стили заголовков */
.woocommerce-checkout h1,
.woocommerce-checkout h2,
.woocommerce-checkout h3,
.woocommerce-checkout h4 {
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase;
}

.woocommerce-checkout h1 { font-size: 24px !important; }
.woocommerce-checkout h2 { font-size: 20px !important; }
.woocommerce-checkout h3 { font-size: 18px !important; }
.woocommerce-checkout h4 { font-size: 14px !important; font-weight: 400 !important; }

/* Поля ввода */
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea {
    width: 100% !important;
    padding: 18px !important;
    margin-bottom: 20px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    font-size: 14px !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus {
    border-color: #ff007a !important;
    box-shadow: 0 0 5px rgba(255,0,122,0.5) !important;
}

/* Чекбоксы */
.woocommerce-checkout input[type="checkbox"],
.woocommerce-checkout input[type="radio"] {
    accent-color: #ff007a !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 5px !important;
}

/* Кнопка */
.woocommerce #place_order {
    background: linear-gradient(45deg,#ff007a,#ff8c00) !important;
    color: #fff !important;
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    width: 100% !important;
}

.woocommerce #place_order:hover {
    background: linear-gradient(45deg,#ff8c00,#ff007a) !important;
}

/* Уведомления */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    border-left: 5px solid #ff007a !important;
    background-color: #fff !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 16px !important;
}

/* Таблица */
.woocommerce-checkout-review-order table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 20px !important;
    font-size: 14px !important;
}

.woocommerce-checkout-review-order table td,
.woocommerce-checkout-review-order table th {
    padding: 15px !important;
    border-bottom: 1px solid #ddd !important;
    text-align: left !important;
}

/* Итоговая сумма */
.woocommerce-checkout-review-order .order-total td,
.woocommerce-checkout-review-order .order-total th {
    font-size: 18px !important;
    font-weight: bold !important;
}

/* Блок заказа */
.woocommerce-checkout-review-order {
    border: 1px solid #ddd !important;
    padding: 20px !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    margin-bottom: 40px !important;
}