/* Absolute Industrial Child */

/* ===== Шапка: иконки и кнопка «Связаться с нами» ===== */
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; max-width: none; width: auto; }
.header-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: #1f2d49; background: #f2f3f5; transition: background-color .2s, color .2s; }
.header-icon:hover { background: #1f2d49; color: #fff; }
.header-icon__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff7c02; color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.header-icon__count.is-empty { display: none; }
.header__contact-button { margin-left: 20px; flex: 0 0 auto; }
.header__contact-button .b-button { min-width: 200px; }

/* ===== Карточки товаров ===== */
.card-item--product .card-item__inner { position: relative; }
.card-item__price .b-button.is-added { background-color: #ff7c02; border-color: #ff7c02; }
.card-item__price .b-button.is-loading { opacity: .7; pointer-events: none; }
.product-single__button { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.product-single__button.text-center { justify-content: center; }
.product-single__button .b-button.is-added { background-color: #1f2d49; border-color: #1f2d49; }
.product-single__button .b-button.is-loading { opacity: .7; pointer-events: none; }

/* ===== Избранное: кнопка (YITH, React-режим) ===== */
.aic-wish .yith-wcwl-add-to-wishlist-button { display: inline-flex; align-items: center; gap: 8px; color: #1f2d49; text-decoration: none; font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; transition: color .2s; }
.aic-wish .yith-wcwl-add-to-wishlist-button:hover { color: #ff7c02; }
.aic-wish .yith-wcwl-add-to-wishlist-button-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.aic-wish .yith-wcwl-add-to-wishlist-button--added { color: #ff7c02; }
.aic-wish .yith-wcwl-add-to-wishlist-button--loading { opacity: .5; pointer-events: none; }
/* в списке — только сердечко в углу карточки */
.aic-wish--loop { position: absolute; top: 10px; right: 10px; z-index: 2; }
.aic-wish--loop .yith-wcwl-add-to-wishlist-button { width: 36px; height: 36px; justify-content: center; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(31,45,73,.18); }
.aic-wish--loop .yith-wcwl-add-to-wishlist-button__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* в карточке товара — иконка и текст */
.aic-wish--single { display: inline-flex; font-size: 15px; }

/* ===== Общие стили страниц магазина ===== */
.aic-shop-page .main .section__body { color: #1f2d49; }
.aic-shop-page .main .woocommerce a:not(.button):not(.b-button):not(.wc-block-components-button):not(.remove) { color: #1f2d49; }
.aic-shop-page .main h2, .aic-shop-page .main h3, .aic-shop-page .main .wc-block-components-title { font-family: Manrope, sans-serif; font-weight: 600; color: #1f2d49; }

/* кнопки */
.aic-shop-page .main .button,
.aic-shop-page .main button[type=submit],
.aic-shop-page .main input[type=submit],
.aic-shop-page .main .wc-block-components-button:not(.is-link),
.aic-shop-page .main .wp-element-button,
.aic-shop-page .main .woocommerce-Button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 28px; border: 2px solid #1f2d49; border-radius: 4px; background: #1f2d49; color: #fff !important; font-family: Manrope, sans-serif; font-weight: 600; font-size: 14px; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.aic-shop-page .main .button:hover,
.aic-shop-page .main button[type=submit]:hover,
.aic-shop-page .main input[type=submit]:hover,
.aic-shop-page .main .wc-block-components-button:not(.is-link):hover,
.aic-shop-page .main .wp-element-button:hover { background: #ff7c02; border-color: #ff7c02; color: #fff; }
.aic-shop-page .main .wc-block-cart__submit-button,
.aic-shop-page .main .wc-block-components-checkout-place-order-button,
.aic-shop-page .main .checkout-button { background: #ff7c02; border-color: #ff7c02; min-height: 52px; width: 100%; }
.aic-shop-page .main .wc-block-cart__submit-button:hover,
.aic-shop-page .main .wc-block-components-checkout-place-order-button:hover { background: #1f2d49; border-color: #1f2d49; }
.aic-shop-page .main .wc-block-components-button.is-link,
.aic-shop-page .main .wc-block-components-checkout-return-to-cart-button { color: #1f2d49; text-transform: none; }

/* поля */
.aic-shop-page .main input[type=text],
.aic-shop-page .main input[type=email],
.aic-shop-page .main input[type=tel],
.aic-shop-page .main input[type=password],
.aic-shop-page .main input[type=number],
.aic-shop-page .main select,
.aic-shop-page .main textarea,
.aic-shop-page .main .wc-block-components-text-input input,
.aic-shop-page .main .wc-block-components-textarea,
.aic-shop-page .main .wc-blocks-components-select__select { border: 1px solid #d5d9e0 !important; border-radius: 4px !important; background: #fff; color: #1f2d49; font-family: Manrope, sans-serif; font-size: 15px; box-shadow: none; }
.aic-shop-page .main input:focus, .aic-shop-page .main select:focus, .aic-shop-page .main textarea:focus { border-color: #1f2d49 !important; outline: 0; box-shadow: 0 0 0 3px rgba(31,45,73,.12) !important; }
.aic-shop-page .main input[type=text], .aic-shop-page .main input[type=email], .aic-shop-page .main input[type=tel], .aic-shop-page .main input[type=password], .aic-shop-page .main select { height: 46px; padding: 0 14px; width: 100%; }
.aic-shop-page .main label { font-size: 14px; color: #1f2d49; }
.aic-shop-page .main .required { color: #ff7c02; text-decoration: none; }
.aic-shop-page .main .woocommerce-form-row, .aic-shop-page .main .form-row { margin-bottom: 16px; }

/* уведомления */
.aic-shop-page .main .woocommerce-message, .aic-shop-page .main .woocommerce-info, .aic-shop-page .main .woocommerce-error { list-style: none; margin: 0 0 24px; padding: 16px 20px; border: 0; border-left: 4px solid #1f2d49; background: #f2f2f2; color: #1f2d49; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.aic-shop-page .main .woocommerce-error { border-left-color: #c0392b; background: #fbeeec; }
.aic-shop-page .main .woocommerce-message .button { margin-left: auto; min-height: 38px; }

/* таблицы (классические WC / избранное) */
.aic-shop-page .main table.shop_table, .aic-shop-page .main table.wishlist_table { width: 100%; border-collapse: collapse; border: 0; margin: 0 0 24px; }
.aic-shop-page .main table.shop_table th, .aic-shop-page .main table.wishlist_table th { padding: 14px 16px; background: #1f2d49; color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; text-align: left; border: 0; }
.aic-shop-page .main table.shop_table td, .aic-shop-page .main table.wishlist_table td { padding: 14px 16px; border: 0; border-bottom: 1px solid #e6e8ec; vertical-align: middle; color: #1f2d49; background: transparent; }
.aic-shop-page .main table.shop_table tr:nth-child(even) td { background: #f7f7f8; }

/* ===== Корзина и оформление (блоки WooCommerce) ===== */
.aic-shop-page .main .wp-block-woocommerce-cart,
.aic-shop-page .main .wp-block-woocommerce-checkout { font-family: Manrope, sans-serif; color: #1f2d49; }
.aic-shop-page .main .wc-block-cart-items { border: 0; }
.aic-shop-page .main .wc-block-cart-items th { padding: 0 0 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #1f2d49; border-bottom: 2px solid #1f2d49; }
.aic-shop-page .main .wc-block-cart-items td { padding: 20px 16px 20px 0; border-top: 1px solid #e6e8ec; }
.aic-shop-page .main .wc-block-cart-item__image img { width: 96px; height: 96px; object-fit: contain; background: #f2f2f2; padding: 6px; }
.aic-shop-page .main .wc-block-components-product-name { font-weight: 600; font-size: 16px; line-height: 22px; color: #1f2d49 !important; text-decoration: none; }
.aic-shop-page .main .wc-block-components-product-name:hover { color: #ff7c02 !important; }
.aic-shop-page .main .wc-block-components-product-metadata, .aic-shop-page .main .wc-block-components-product-metadata__description { display: none; }
.aic-shop-page .main .wc-block-components-product-price { font-size: 15px; font-weight: 600; color: #1f2d49; }
.aic-shop-page .main .wc-block-cart-item__total .wc-block-components-product-price { font-size: 17px; }
.aic-shop-page .main .wc-block-components-quantity-selector { border: 1px solid #d5d9e0; border-radius: 4px; background: #fff; width: 110px; }
.aic-shop-page .main .wc-block-components-quantity-selector:after { display: none; }
.aic-shop-page .main .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { border: 0 !important; height: 38px; padding: 0; box-shadow: none !important; min-width: 0; text-align: center; font-weight: 600; background: transparent; }
.aic-shop-page .main .wc-block-components-quantity-selector__button { color: #1f2d49; opacity: 1; min-width: 32px; text-transform: none; background: transparent !important; border: 0 !important; padding: 0; min-height: 0; }
.aic-shop-page .main .wc-block-cart-item__remove-link { color: #8a93a3; font-size: 13px; text-decoration: underline; text-transform: none; background: none; border: 0; padding: 0; min-height: 0; }
.aic-shop-page .main .wc-block-cart-item__remove-link:hover { color: #ff7c02; background: none; }
.aic-shop-page .main .wc-block-cart__sidebar { padding: 24px !important; background: #f2f2f2; border-radius: 4px; align-self: flex-start; }
.aic-shop-page .main .wc-block-checkout__sidebar { padding: 0 !important; background: none; align-self: flex-start; }
.aic-shop-page .main .wp-block-woocommerce-checkout-order-summary-block { background: #f2f2f2; border: 0 !important; border-radius: 4px; padding: 8px 24px; }
.aic-shop-page .main .wc-block-cart__totals-title,
.aic-shop-page .main .wc-block-components-order-summary__button-text,
.aic-shop-page .main .wc-block-components-checkout-order-summary__title-text { font-family: Manrope, sans-serif; font-size: 18px; font-weight: 600; text-transform: none; color: #1f2d49; padding: 0 0 12px; border: 0; text-align: left; }
.aic-shop-page .main .wc-block-components-totals-wrapper { border-color: #d5d9e0; }
.aic-shop-page .main .wc-block-components-totals-item__label { font-weight: 500; }
.aic-shop-page .main .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.aic-shop-page .main .wc-block-components-totals-footer-item-tax-value { font-size: 22px; font-weight: 700; color: #1f2d49; }
.aic-shop-page .main .wc-block-components-totals-coupon .wc-block-components-panel__button,
.aic-shop-page .main .wc-block-components-panel__button { font-family: Manrope, sans-serif; font-weight: 600; color: #1f2d49; text-transform: none; padding: 0; background: none; border: 0; min-height: 0; }
.aic-shop-page .main .wc-block-components-order-summary-item__image img { object-fit: contain; background: #fff; }
.aic-shop-page .main .wc-block-components-order-summary-item__quantity { background: #1f2d49; color: #fff; border: 0; box-shadow: none; }
.aic-shop-page .main .wc-block-components-product-metadata { display: none; }
.aic-shop-page .main .wc-block-components-checkout-step__title { font-size: 20px; font-weight: 600; }
.aic-shop-page .main .wc-block-components-checkout-step__heading { margin-bottom: 14px; }
.aic-shop-page .main .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border: 1px solid #1f2d49 !important; border-radius: 3px; width: 20px; height: 20px; min-width: 20px; padding: 0; }
.aic-shop-page .main .wc-block-components-notice-banner { border-radius: 4px; font-family: Manrope, sans-serif; }
.aic-shop-page .main .wc-block-components-text-input label,
.aic-shop-page .main .wc-blocks-components-select__label { color: #6b7488; }
.aic-shop-page .main .wc-block-components-address-form__address_2-toggle { color: #1f2d49; text-transform: none; background: none; border: 0; padding: 0; min-height: 0; text-decoration: underline; }
.aic-shop-page .main .wc-block-components-radio-control__option { border-radius: 4px; }
.aic-shop-page .main .wc-block-checkout__actions_row { align-items: center; gap: 16px; }
.aic-shop-page .main .wc-block-cart__empty-cart__title, .aic-shop-page .main .wp-block-woocommerce-empty-cart-block h2 { font-weight: 600; text-align: left; }

/* ===== Личный кабинет ===== */
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none !important; width: auto !important; margin: 0; }
.aic-shop-page .main .woocommerce:has(.woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.aic-shop-page .main .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.aic-shop-page .main .woocommerce:has(.woocommerce-MyAccount-navigation)::before, .aic-shop-page .main .woocommerce:has(.woocommerce-MyAccount-navigation)::after { display: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; background: #f2f2f2; border-radius: 4px; overflow: hidden; }
.woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border-bottom: 1px solid #e0e2e6; }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.woocommerce-MyAccount-navigation li:before, .woocommerce-MyAccount-navigation li::marker { content: none; display: none; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 14px 20px; color: #1f2d49 !important; font-weight: 600; text-decoration: none; border-left: 4px solid transparent; transition: background-color .2s, border-color .2s; }
.woocommerce-MyAccount-navigation li a:hover { background: #fff; border-left-color: #ff7c02; }
.woocommerce-MyAccount-navigation li.is-active a { background: #1f2d49; color: #fff !important; border-left-color: #ff7c02; }
.woocommerce-MyAccount-content { min-width: 0; line-height: 1.6; }
.woocommerce-MyAccount-content p { margin: 0 0 14px; }
.woocommerce-MyAccount-content a:not(.button) { color: #1f2d49; text-decoration: underline; text-decoration-color: #ff7c02; text-underline-offset: 3px; }
.woocommerce-MyAccount-content a:not(.button):hover { color: #ff7c02; }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { font-size: 24px; line-height: 1.2; margin: 0 0 20px; }
.woocommerce-MyAccount-content fieldset { border: 0; padding: 0; margin: 24px 0 0; }
.woocommerce-MyAccount-content legend { font-size: 20px; font-weight: 600; margin-bottom: 14px; padding: 0; }
.woocommerce-MyAccount-content .form-row-first, .woocommerce-MyAccount-content .form-row-last { width: calc(50% - 10px); float: left; }
.woocommerce-MyAccount-content .form-row-first { margin-right: 20px; }
.woocommerce-MyAccount-content .form-row-wide { clear: both; }
.woocommerce-MyAccount-content form:after { content: ""; display: table; clear: both; }
.woocommerce-MyAccount-content .woocommerce-Button { margin-top: 8px; }
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.woocommerce-Addresses .col-1, .woocommerce-Addresses .col-2 { width: auto; float: none; padding: 20px; background: #f2f2f2; border-radius: 4px; }
.woocommerce-Address-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { font-size: 20px; margin-bottom: 10px; }
.woocommerce-Address address { font-style: normal; }
.woocommerce-orders-table, .woocommerce-table--order-details { width: 100%; }
.woocommerce-orders-table .button, .woocommerce-MyAccount-content table .button { min-height: 36px; padding: 0 16px; font-size: 12px; margin: 2px 4px 2px 0; }
.woocommerce-MyAccount-content .woocommerce-pagination { display: flex; gap: 12px; margin-top: 16px; }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword, .woocommerce-form-lost-password { max-width: 520px; padding: 28px; border: 0 !important; border-radius: 4px; background: #f2f2f2; margin: 0 0 24px; }
.woocommerce-form-login .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin: 0 16px 0 0; }
.woocommerce-form-login .woocommerce-form-login__rememberme input { width: 18px; height: 18px; accent-color: #1f2d49; }
.woocommerce-LostPassword { margin-top: 14px; }
.show-password-input { background: none !important; border: 0 !important; min-height: 0 !important; padding: 0 !important; }
.u-columns.col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.u-columns .u-column1, .u-columns .u-column2 { width: auto; float: none; }

/* ===== Избранное (YITH) ===== */
.aic-wishlist-page .wishlist-title-container { display: none; }
.aic-wishlist-page .yith-wcwl-form { margin-top: 0; }
.aic-wishlist-page table.wishlist_table { margin-top: 0; }
.aic-wishlist-page table.wishlist_table td { padding: 16px; }
.aic-wishlist-page table.wishlist_table td.product-thumbnail img { width: 80px; height: 80px; object-fit: contain; background: #f2f2f2; padding: 4px; }
.aic-wishlist-page table.wishlist_table td.product-name a { font-weight: 600; text-decoration: none; }
.aic-wishlist-page table.wishlist_table td.product-name a:hover { color: #ff7c02 !important; }
.aic-wishlist-page table.wishlist_table .woocommerce-Price-amount { font-weight: 600; }
.aic-wishlist-page table.wishlist_table .wishlist-in-stock { color: #2e7d32; font-weight: 600; }
.aic-wishlist-page table.wishlist_table .wishlist-out-of-stock { color: #c0392b; font-weight: 600; }
.aic-wishlist-page table.wishlist_table td.product-remove a.remove_from_wishlist { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #1f2d49 !important; background: #f2f2f2; font-size: 18px; text-decoration: none; }
.aic-wishlist-page table.wishlist_table td.product-remove a.remove_from_wishlist:hover { background: #ff7c02; color: #fff !important; }
.aic-wishlist-page .wishlist_table td.product-add-to-cart a { display: inline-flex !important; width: auto !important; box-sizing: border-box; align-items: center; justify-content: center; min-height: 40px; padding: 0 20px; border-radius: 4px; background: #1f2d49; color: #fff !important; font-weight: 600; font-size: 13px; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.aic-wishlist-page .wishlist_table td.product-add-to-cart a:hover { background: #ff7c02; }
.aic-wishlist-page .wishlist_table td.wishlist-empty { text-align: center; padding: 40px 16px; color: #6b7488; }
.aic-wishlist-page .yith_wcwl_wishlist_footer { margin-top: 24px; }
.aic-wishlist-page .yith-wcwl-share, .aic-wishlist-page .dateadded { display: none; }
.yith-wcwl-feedback-messages-container { display: none !important; }

/* ===== Адаптив ===== */
@media (max-width: 991.98px) {
    .aic-shop-page .main .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; }
    .woocommerce-MyAccount-navigation li { flex: 1 1 50%; border-bottom: 1px solid #e0e2e6; }
    .woocommerce-Addresses, .u-columns.col2-set { grid-template-columns: minmax(0, 1fr); }
    .header-icon { width: 40px; height: 40px; }
    .header__actions { gap: 8px; }
    .aic-shop-page .main .wc-block-cart__sidebar, .aic-shop-page .main .wc-block-checkout__sidebar { align-self: stretch; }
}
@media (max-width: 575.98px) {
    .woocommerce-MyAccount-content .form-row-first, .woocommerce-MyAccount-content .form-row-last { width: 100%; float: none; margin-right: 0; }
    .woocommerce-MyAccount-navigation li { flex-basis: 100%; }
    .aic-shop-page .main table.shop_table_responsive td, .aic-shop-page .main table.wishlist_table td { padding: 10px 12px; }
}

/* ЛК: блок адресов */
.woocommerce-Addresses { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.woocommerce-Addresses > *, .woocommerce-Address { width: auto !important; float: none !important; max-width: none; }
.woocommerce-Address-title { display: flex !important; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { width: auto !important; float: none !important; margin: 0 0 10px; font-size: 20px; }
.woocommerce-Address-title a.edit { float: none !important; }
.woocommerce-Address address, .woocommerce-Address p { width: auto; }

@media (max-width: 575.98px) {
    .header__bottom .header__logo { flex: 0 1 140px; min-width: 0; }
    .header__bottom .header__logo img { width: 100%; height: auto; }
    .header__bottom .burger { margin-left: auto; flex: 0 0 auto; }
    .header__actions { margin-left: 8px; }
    .header-icon { width: 36px; height: 36px; }
}

/* ===== Правки ===== */
/* шапка поверх контента (выпадающее меню) */
@media (min-width: 1200px) { .header { position: relative; z-index: 1000; } }
/* «Просмотр корзины» после добавления не показываем */
.added_to_cart { display: none !important; }
/* классические уведомления без иконки-псевдоэлемента */
.aic-shop-page .main .woocommerce-info::before, .aic-shop-page .main .woocommerce-message::before, .aic-shop-page .main .woocommerce-error::before { display: none !important; content: none !important; }
.aic-shop-page .main .woocommerce-info, .aic-shop-page .main .woocommerce-message { padding-left: 20px; }

/* чекбоксы в магазине: видно, что отмечено */
.aic-shop-page .main input[type=checkbox]:not(.wc-block-components-checkbox__input) { -webkit-appearance: none; appearance: none; display: inline-block !important; position: relative; flex: 0 0 auto; width: 22px; height: 22px; min-width: 22px; margin: 0 10px 0 0; padding: 0; border: 1px solid #1f2d49 !important; border-radius: 3px; background: #fff; cursor: pointer; vertical-align: middle; }
.aic-shop-page .main input[type=checkbox]:not(.wc-block-components-checkbox__input):checked { background: #1f2d49; }
.aic-shop-page .main input[type=checkbox]:not(.wc-block-components-checkbox__input):checked::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.aic-shop-page .main input[type=checkbox]:focus-visible { outline: 2px solid #ff7c02; outline-offset: 2px; }
.aic-shop-page .main .woocommerce-form__label-for-checkbox, .aic-shop-page .main .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; cursor: pointer; }
.aic-consent { margin: 0 0 16px; }
.aic-consent__label { display: inline-flex !important; align-items: center; margin: 0; cursor: pointer; font-size: 14px; }
.aic-consent__label .checkbox__input { display: inline-block !important; }
.aic-consent__label .checkbox__text:before { display: none; }
.aic-consent__label .checkbox__text { font-size: 14px; line-height: 20px; color: #1f2d49; }
.aic-consent__label a { color: #1f2d49; text-decoration: underline; text-decoration-color: #ff7c02; text-underline-offset: 3px; }

/* ===== Оформление заказа (классическая форма) ===== */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 40px; align-items: start; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup, .woocommerce-checkout form.checkout > .woocommerce-error { grid-column: 1 / -1; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; width: auto; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { float: none; width: auto; max-width: none; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 16px; font-size: 22px; font-weight: 600; }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; padding: 24px; background: #f2f2f2; border-radius: 4px; }
.woocommerce-checkout h3 { font-size: 22px; font-weight: 600; margin: 0 0 18px; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper, .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper, .woocommerce-checkout .woocommerce-additional-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 0 20px; }
.woocommerce-checkout .form-row { width: 100%; margin: 0 0 16px; padding: 0; }
.woocommerce-checkout .form-row-first, .woocommerce-checkout .form-row-last { width: calc(50% - 10px); float: none; }
.woocommerce-checkout .form-row label { display: block; margin-bottom: 6px; }
.woocommerce-checkout .form-row textarea { width: 100%; min-height: 110px; padding: 12px 14px; }
.woocommerce-checkout .select2-container .select2-selection--single { height: 46px; border: 1px solid #d5d9e0; border-radius: 4px; }
.woocommerce-checkout .select2-container .select2-selection__rendered { line-height: 44px; padding-left: 14px; color: #1f2d49; }
.woocommerce-checkout .select2-container .select2-selection__arrow { height: 44px; }
.woocommerce-checkout #order_review table.shop_table { margin: 0 0 16px; background: transparent; }
.woocommerce-checkout #order_review table.shop_table th { background: transparent; color: #1f2d49; padding: 10px 0; text-transform: none; font-size: 14px; letter-spacing: 0; border-bottom: 2px solid #1f2d49; }
.woocommerce-checkout #order_review table.shop_table td { padding: 12px 0; background: transparent !important; }
.woocommerce-checkout #order_review table.shop_table tfoot th { border-bottom: 1px solid #e0e2e6; font-weight: 500; }
.woocommerce-checkout #order_review table.shop_table tfoot td { text-align: right; border-bottom: 1px solid #e0e2e6; }
.woocommerce-checkout #order_review table.shop_table .order-total .woocommerce-Price-amount { font-size: 22px; font-weight: 700; }
.woocommerce-checkout #order_review .product-name a { color: #1f2d49; font-weight: 600; text-decoration: underline; text-decoration-color: #ff7c02; text-underline-offset: 3px; }
.woocommerce-checkout #order_review .product-name a:hover { color: #ff7c02; }
.woocommerce-checkout .product-quantity { font-weight: 400; color: #6b7488; }
.woocommerce-checkout #payment { background: transparent; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; margin: 0 0 16px; padding: 0; }
.woocommerce-checkout #payment ul.payment_methods li { margin: 0 0 8px; padding: 0; }
.woocommerce-checkout #payment .payment_box { margin-top: 8px; padding: 12px 14px; background: #fff; border-radius: 4px; font-size: 14px; }
.woocommerce-checkout #place_order { width: 100%; min-height: 52px; background: #ff7c02; border-color: #ff7c02; }
.woocommerce-checkout #place_order:hover { background: #1f2d49; border-color: #1f2d49; }
.woocommerce-checkout .woocommerce-form-coupon-toggle, .woocommerce-checkout .woocommerce-form-login-toggle { grid-column: 1 / -1; }
@media (max-width: 991.98px) {
    .woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
    .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
    .woocommerce-checkout #order_review_heading { margin-top: 24px; }
}
@media (max-width: 575.98px) {
    .woocommerce-checkout .form-row-first, .woocommerce-checkout .form-row-last { width: 100%; }
}

/* «Связаться с нами» справа от меню; ширина .header__nav остаётся полной,
   иначе выпадающее меню «Каталог» (центрируется по ширине nav) уезжает за левый край */
.header__bottom.mobile_pad .header__container { position: relative; }
.header__bottom.mobile_pad .header__nav { width: 100%; }
#mega-menu-wrap-top #mega-menu-top { box-sizing: border-box !important; padding-right: 220px !important; }
.header__contact-button { z-index: 1100; position: absolute; right: calc(var(--bs-gutter-x, 40px) / 2); top: 50%; transform: translateY(-50%); margin: 0; }
@media (max-width: 1199.98px) { .header__contact-button { display: none; } }

/* оформление: итог не переносится, блок способа оплаты */
.woocommerce-checkout #order_review table.shop_table td { white-space: nowrap; }
.woocommerce-checkout #order_review table.shop_table td.product-name { white-space: normal; }
.woocommerce-checkout #payment div.form-row { padding: 0; }
.woocommerce-checkout #payment .payment_box { background: #fff !important; color: #1f2d49 !important; }
.woocommerce-checkout #payment .payment_box::before { display: none !important; }
.woocommerce-checkout .aic-consent__label { align-items: flex-start; }
.woocommerce-checkout .aic-consent__label input { margin-top: 1px; }
/* пустая правая часть строки меню не перехватывает клики по кнопке «Связаться с нами» */
@media (min-width: 1200px) {
    #mega-menu-wrap-top, #mega-menu-wrap-top #mega-menu-top { pointer-events: none; }
    #mega-menu-wrap-top #mega-menu-top > li { pointer-events: auto; }
}

/* согласие: звёздочка в конце предложения */
.aic-consent__label .checkbox__text { display: block; }
.aic-consent__label .checkbox__text abbr { text-decoration: none; margin-left: 2px; }

@media (max-width: 575.98px) {
    .woocommerce-checkout .form-row, .woocommerce-checkout .form-row-first, .woocommerce-checkout .form-row-last { width: 100% !important; float: none !important; margin-left: 0 !important; margin-right: 0 !important; }
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper { gap: 0; }
    .woocommerce-checkout #order_review { padding: 16px; }
    .woocommerce-checkout #order_review table.shop_table td.product-name { padding-right: 12px; }
    .woocommerce-checkout #order_review table.shop_table td.product-total { text-align: right; }
}

/* ===== Мобильные: ЛК и избранное ===== */
@media (max-width: 575.98px) {
    .woocommerce-MyAccount-content .form-row, .woocommerce-MyAccount-content .form-row-first, .woocommerce-MyAccount-content .form-row-last, .woocommerce-MyAccount-content .form-row-wide { width: 100% !important; float: none !important; margin-left: 0 !important; margin-right: 0 !important; clear: both; }
    .woocommerce-MyAccount-content input, .woocommerce-MyAccount-content select { max-width: 100%; box-sizing: border-box; }
}
@media (max-width: 767.98px) {
    .aic-wishlist-page .main table.wishlist_table, .aic-wishlist-page .main table.wishlist_table tbody, .aic-wishlist-page .main table.wishlist_table tr, .aic-wishlist-page .main table.wishlist_table td { display: block; width: 100%; box-sizing: border-box; }
    .aic-wishlist-page .main table.wishlist_table thead { display: none; }
    .aic-wishlist-page .main table.wishlist_table tr { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 14px; padding: 16px 40px 16px 0; border-bottom: 1px solid #e6e8ec; }
    .aic-wishlist-page .main table.wishlist_table tr:nth-child(even) td { background: transparent; }
    .aic-wishlist-page .main table.wishlist_table td { padding: 0 !important; border: 0 !important; background: transparent !important; text-align: left; }
    .aic-wishlist-page .main table.wishlist_table td.product-thumbnail { display: block !important; grid-column: 1; grid-row: 1 / span 4; }
    .aic-wishlist-page .main table.wishlist_table td.product-thumbnail img { width: 72px; height: 72px; }
    .aic-wishlist-page .main table.wishlist_table td.product-name, .aic-wishlist-page .main table.wishlist_table td.product-price, .aic-wishlist-page .main table.wishlist_table td.product-stock-status, .aic-wishlist-page .main table.wishlist_table td.product-add-to-cart { grid-column: 2; }
    .aic-wishlist-page .main table.wishlist_table td.product-remove { position: absolute; top: 16px; right: 0; width: auto; }
    .aic-wishlist-page .main table.wishlist_table td.product-add-to-cart { margin-top: 8px; }
    .aic-wishlist-page .main table.wishlist_table td::before { display: none !important; }
}

/* ===== Меню слева с отступами ===== */
@media (min-width: 1200px) {
    #mega-menu-wrap-top #mega-menu-top { justify-content: flex-start !important; }
    #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item { margin: 0 36px 0 0 !important; }
}

/* ===== Страница «Заказ принят»: без заливки в таблицах ===== */
.woocommerce-order-received .main table.shop_table tr:nth-child(even) td,
.woocommerce-order-received .main table.shop_table td,
.woocommerce-order-received .main table.shop_table tfoot th,
.woocommerce-order-received .main table.shop_table tfoot td { background: transparent !important; }
.woocommerce-order-received .main table.shop_table tfoot th { color: #1f2d49; text-transform: none; letter-spacing: 0; font-size: inherit; font-weight: 600; border-bottom: 1px solid #e6e8ec; }
.woocommerce-order-received .main table.shop_table tfoot td { border-bottom: 1px solid #e6e8ec; }

/* способ оплаты на оформлении не показываем (выбранный по умолчанию метод остаётся в форме) */
.woocommerce-checkout #payment ul.payment_methods { display: none; }
.woocommerce-order-overview__payment-method { display: none; }
