/* Исправление отображения текста кнопок WooCommerce */
.woocommerce button,
.woocommerce .button,
.woocommerce input.button {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.3;
    padding: 12px 20px;
    white-space: normal;
    height: auto;
}

/* Основные кнопки */
.woocommerce .button {
    background-color: #FFDCDC !important; /* цвет фона */
    color: #000000 !important; /* цвет текста */
    border-radius: 8px;
}

/* При наведении */
.woocommerce .button:hover {
    background-color: #f19cbb !important;
    color: #000000 !important;
}


/* === FINAL REAL FIX: parent must expand, no overlap === */

/* Родительский контейнер корзины (HARU / Woo) */
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .container,
body.woocommerce-cart .site-content,
body.woocommerce-cart .content-area {
  overflow: auto !important;   /* КЛЮЧЕВОЕ */
}

/* Блок товаров + кнопки */
body.woocommerce-cart .woocommerce-cart-form {
  float: none !important;
  width: 100% !important;
}

/* Блок итогов / доставки / оформить */
body.woocommerce-cart .cart-totals-wrap {
  float: none !important;
  width: 100% !important;
  margin-top: 120px !important;
}

a.lumise-edit-design {
    display: none !important;
}

.wc-block-components-button.wp-element-button {
    font-size: 16px !important;
    padding: 10px 20px !important;
    text-align: center;
    line-height: normal;
    white-space: normal;
    display: inline-block;
}

.wc-block-components-button__text {
    font-size: 16px !important;
}

.wc-block-components-checkout-place-order-button__text {
    font-size: 16px !important;
    text-transform: none !important;
}
.wc-block-components-product-name {
    font-size: 18px !important;  /* Уменьшаем размер шрифта */
    line-height: 1.4 !important;  /* Устанавливаем межстрочный интервал */
    word-wrap: break-word !important; /* Обрезка длинных слов на несколько строк */
    white-space: normal !important; /* Разрешаем перенос текста на новую строку */
    margin: 0 !important; /* Убираем лишние отступы */
}
.cart-actions-custom .haru-button,
.cart-actions-custom .empty-cart-button {
    display: none !important;
}
.product-thumbnail img.attachment-woocommerce_thumbnail {
    display: none !important;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding-top: 50px;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Закрытие модального окна */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}
.close:hover,
.close:focus {
    color: #f00;
    text-decoration: none;
    cursor: pointer;
}

/* Скрыть блок с кнопками в корзине */
.cart-actions {
    display: none !important;
}
/* Скрыть кнопку "Вернуться в магазин" */
a.button.wc-backward {
    display: none !important;
}
/* Скрыть блок с изображением товара в процессе оформления заказа */
.wp-block-woocommerce-checkout-order-summary-block {
    display: none !important;
}
a[href="https://dillastudio.com/?page_id=9"] {
    display: none !important;
}