/* ═══════════════════════════════════════════════════════════════
   Dialectica — WooCommerce Custom Styles
   Цвета: brand-teal #86A7A8 | brand-dark #222B32 | brand-gold #E6B971
          brand-light #F4F6F6 | brand-card-dark #32444D
   ═══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ─────────────────────────────────────────────── */
.woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0;
}
.woocommerce-breadcrumb a {
  color: #86A7A8;
  text-decoration: none;
}
.woocommerce-breadcrumb a:hover { text-decoration: underline; }

/* ── Notices ─────────────────────────────────────────────────── */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border: none !important;
  border-radius: 1rem !important;
  padding: 1rem 1.5rem !important;
  font-size: 0.95rem;
  margin-bottom: 1.5rem !important;
  list-style: none !important;
}
.woocommerce-info    { background: #e0f0f0; color: #32444D; border-left: 4px solid #86A7A8 !important; }
.woocommerce-message { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981 !important; }
.woocommerce-error   { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444 !important; }
.woocommerce-info::before,
.woocommerce-message::before { display: none !important; }

/* ── Кнопки ──────────────────────────────────────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #payment #place_order {
  background-color: #86A7A8 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.85rem 2rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #payment #place_order:hover {
  background-color: #4A6D70 !important;
  color: #fff !important;
}
.woocommerce a.button.disabled,
.woocommerce button.button.disabled {
  background-color: #d1d5db !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
}

/* ── Страница магазина — сетка товаров ───────────────────────── */
.woocommerce-products-header__title,
.woocommerce-page h1.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222B32;
  margin-bottom: 2rem;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  margin: 0 !important;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  border-color: #86A7A8;
}

.woocommerce ul.products li.product img {
  border-radius: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #222B32 !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.4 !important;
  flex-grow: 1;
}

.woocommerce ul.products li.product .price {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #86A7A8 !important;
  margin-bottom: 1rem !important;
}
.woocommerce ul.products li.product .price del {
  color: #9ca3af !important;
  font-size: 1rem !important;
}

.woocommerce ul.products li.product a.button {
  width: 100% !important;
  justify-content: center !important;
  margin-top: auto !important;
}

/* Убираем лишние элементы на карточках */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.woocommerce .woocommerce-ordering select {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #374151;
}

/* ── Страница одного товара ───────────────────────────────────── */
.woocommerce div.product {
  background: #fff;
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .woocommerce div.product { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
}

.woocommerce div.product .woocommerce-product-gallery {
  grid-column: 1;
}
.woocommerce div.product .woocommerce-product-gallery img {
  border-radius: 1.25rem;
  width: 100%;
}
.woocommerce div.product .summary {
  grid-column: 2;
}
@media (max-width: 768px) {
  .woocommerce div.product .woocommerce-product-gallery,
  .woocommerce div.product .summary { grid-column: 1; }
}

.woocommerce div.product .product_title {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #222B32 !important;
  margin-bottom: 1rem !important;
  line-height: 1.3 !important;
}
.woocommerce div.product .price {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #86A7A8 !important;
  margin-bottom: 1.5rem !important;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.woocommerce div.product form.cart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.woocommerce div.product form.cart .qty {
  width: 80px;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
  width: 100% !important;
  justify-content: center !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
}

/* Табы на странице товара */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 2px solid #F4F6F6;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
  display: flex;
  gap: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  display: block;
  transition: color 0.2s, border-color 0.2s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #86A7A8 !important;
  border-bottom-color: #86A7A8 !important;
}
.woocommerce div.product .woocommerce-tabs .panel {
  padding: 1.5rem 0;
  color: #4b5563;
  line-height: 1.75;
  border: none !important;
  background: transparent !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }

/* ── Корзина ─────────────────────────────────────────────────── */
.woocommerce-cart h1.page-title,
.woocommerce-checkout h1.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222B32;
  margin-bottom: 2rem;
}

.woocommerce table.shop_table {
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  width: 100% !important;
}
.woocommerce table.shop_table thead th {
  background: #F4F6F6 !important;
  color: #6b7280 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 1rem 1.5rem !important;
  border: none !important;
}
.woocommerce table.shop_table tbody td {
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  border-top: 1px solid #f3f4f6 !important;
  vertical-align: middle !important;
  color: #374151;
}
.woocommerce table.shop_table tbody tr:first-child td { border-top: none !important; }

.woocommerce table.shop_table .product-name a {
  color: #222B32;
  font-weight: 600;
  text-decoration: none;
}
.woocommerce table.shop_table .product-name a:hover { color: #86A7A8; }

.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal { color: #86A7A8; font-weight: 700; }

.woocommerce table.shop_table td.product-remove a {
  color: #d1d5db !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}
.woocommerce table.shop_table td.product-remove a:hover { color: #ef4444 !important; }

/* Итог корзины */
.woocommerce .cart-collaterals {
  margin-top: 2rem;
}
.woocommerce .cart_totals {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  float: right;
  width: 40%;
}
@media (max-width: 768px) { .woocommerce .cart_totals { float: none; width: 100%; } }

.woocommerce .cart_totals h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222B32;
  margin-bottom: 1.25rem;
}
.woocommerce .cart_totals table {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce .cart_totals table th {
  text-align: left;
  color: #6b7280;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  font-weight: 500;
}
.woocommerce .cart_totals table td {
  text-align: right;
  color: #222B32;
  font-weight: 600;
  padding: 0.5rem 0;
}
.woocommerce .cart_totals table .order-total th,
.woocommerce .cart_totals table .order-total td {
  font-size: 1.25rem;
  font-weight: 700;
  padding-top: 1rem;
  border-top: 2px solid #F4F6F6;
}
.woocommerce .cart_totals table .order-total td { color: #86A7A8; }

.woocommerce .cart_totals .wc-proceed-to-checkout {
  margin-top: 1.5rem;
}
.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button {
  width: 100% !important;
  justify-content: center !important;
  padding: 1rem !important;
  font-size: 1rem !important;
}

/* Кнопка обновить корзину */
.woocommerce table.cart td.actions {
  padding: 1rem 1.5rem !important;
  background: #F4F6F6;
}
.woocommerce table.cart td.actions .coupon input[type="text"] {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
}
.woocommerce table.cart td.actions .coupon .button { border-radius: 0.5rem !important; padding: 0.6rem 1.25rem !important; }

/* ── Вход при оплате ─────────────────────────────────────────── */
.woocommerce .dialectica-checkout-account {
  grid-column: 1 / -1;
  min-width: 0;
  margin-bottom: 1.5rem;
}
.dialectica-checkout-account > a {
  display: inline-block;
  margin: 0.5rem 0 0;
  color: #32444d;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.woocommerce .dialectica-checkout-login {
  border-radius: 1rem;
  border-left: 4px solid #86a7a8;
  background: #e0f0f0;
  color: #32444d;
}
.dialectica-checkout-login summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
}
.dialectica-checkout-login summary:focus-visible {
  outline: 2px solid #4a6d70;
  outline-offset: -3px;
  border-radius: 1rem;
}
.woocommerce .dialectica-checkout-login .woocommerce-form-login {
  display: block;
  max-width: 32rem;
  margin: 0;
  padding: 0 1rem 1.25rem;
}
.dialectica-checkout-login .woocommerce-form-login .form-row {
  float: none;
  width: auto;
  margin-bottom: 0.75rem;
}
.dialectica-checkout-login .woocommerce-form-login__rememberme {
  margin: 0 0 0.75rem;
}
.dialectica-checkout-login .lost_password {
  margin-bottom: 0;
}
.dialectica-checkout-login .lost_password a {
  color: inherit;
  text-decoration: underline;
}

.woocommerce-account #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.woocommerce-account #customer_login > div {
  min-width: 0;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #fff;
}
.woocommerce-account #customer_login h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.woocommerce-account #customer_login .form-row,
.woocommerce-account #customer_login .woocommerce-privacy-policy-text {
  margin-bottom: 0.75rem;
}
.woocommerce-account #customer_login .woocommerce-privacy-policy-text a {
  text-decoration: underline;
}
.woocommerce-account #reg_email {
  scroll-margin-top: 6rem;
}
@media (max-width: 768px) {
  .woocommerce-account #customer_login { grid-template-columns: minmax(0, 1fr); }
}

/* ── Чекаут (классический shortcode) ─────────────────────────── */

/* Внешняя обёртка — светлый фон */
.woocommerce-checkout .woocommerce {
  background: transparent;
}

/* Форма чекаута — двухколоночная сетка */
form.woocommerce-checkout {
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  form.woocommerce-checkout {
    grid-template-columns: 1fr;
  }
  form.woocommerce-checkout #order_review_heading,
  form.woocommerce-checkout #order_review {
    grid-column: 1;
  }
}

/* Данные покупателя — левая колонка, занимает обе строки */
form.woocommerce-checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / 3;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

/* col-1 (billing) и col-2 (shipping/notes) — полная ширина без float */
form.woocommerce-checkout .col2-set {
  display: block !important;
}
form.woocommerce-checkout .col2-set .col-1,
form.woocommerce-checkout .col2-set .col-2 {
  float: none !important;
  width: 100% !important;
}

/* Заголовок "Ваш заказ" — правая колонка строка 1 */
form.woocommerce-checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 -1rem;
}
@media (max-width: 900px) {
  form.woocommerce-checkout #order_review_heading { display: none; }
}

/* Итог заказа + оплата — правая колонка строка 2 */
form.woocommerce-checkout #order_review {
  grid-column: 2;
  grid-row: 2;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
@media (max-width: 900px) {
  form.woocommerce-checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }
}

.woocommerce form .form-row label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
  display: block;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1.5px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  color: #222B32 !important;
  width: 100% !important;
  background: #fff !important;
  transition: border-color 0.2s ease !important;
  outline: none !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: #86A7A8 !important;
  box-shadow: 0 0 0 3px rgba(134,167,168,.15) !important;
}
.woocommerce form .form-row.woocommerce-invalid input.input-text {
  border-color: #ef4444 !important;
}

.woocommerce-checkout h3#order_review_heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222B32;
  margin-bottom: 1.25rem;
}

/* Таблица заказа в чекауте */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.woocommerce-checkout-review-order-table thead th {
  text-align: left;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  font-weight: 600;
  border-bottom: 1px solid #f3f4f6;
}
.woocommerce-checkout-review-order-table tbody td,
.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout-review-order-table tfoot th {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem;
  color: #374151;
}
.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
  font-size: 1.1rem;
  font-weight: 700;
  color: #86A7A8;
  border-bottom: none;
  padding-top: 1rem;
}

/* Секция оплаты */
.woocommerce #payment {
  background: transparent !important;
  border-radius: 0 !important;
}
.woocommerce #payment ul.payment_methods {
  border: 1px solid #e5e7eb !important;
  border-radius: 1rem !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
  overflow: hidden;
  list-style: none;
}
.woocommerce #payment ul.payment_methods li {
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid #f3f4f6 !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.woocommerce #payment ul.payment_methods li:last-child { border-bottom: none !important; }
.woocommerce #payment ul.payment_methods li label {
  font-weight: 600;
  color: #222B32;
  cursor: pointer;
}
.woocommerce #payment div.payment_box {
  background: #F4F6F6 !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
  border: none !important;
}
.woocommerce #payment div.payment_box::before { display: none !important; }

.woocommerce #payment #place_order {
  width: 100% !important;
  justify-content: center !important;
  padding: 1.1rem !important;
  font-size: 1.05rem !important;
}

/* ── Аккаунт ─────────────────────────────────────────────────── */
.woocommerce-MyAccount-navigation {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  margin-bottom: 1.5rem;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: #F4F6F6;
  color: #86A7A8;
}

/* ── Страница благодарности ──────────────────────────────────── */
.woocommerce-order-received h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222B32;
  margin-bottom: 1rem;
}
.woocommerce-thankyou-order-details {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.woocommerce-thankyou-order-details li {
  font-size: 0.9rem;
  color: #6b7280;
}
.woocommerce-thankyou-order-details strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222B32;
  margin-bottom: 0.25rem;
}

/* Скрыть строку Terms & Conditions и блок payment options */
.wc-block-checkout__terms,
.wc-block-checkout__policies,
.wc-block-components-checkout-policies,
.wp-block-woocommerce-checkout-terms-block {
  display: none !important;
}
/* Скрыть ссылку "Add apartment..." в блочном чекауте */
.wc-block-components-address-form__address_2-toggle,
a.wc-block-components-address-form__address_2-toggle {
  display: none !important;
}

/* ── Misc fixes ──────────────────────────────────────────────── */
.woocommerce .quantity input[type="number"] { max-width: 80px; }
.woocommerce-privacy-policy-text { font-size: 0.8rem; color: #9ca3af; margin-top: 0.75rem; }
.woocommerce-privacy-policy-text a { color: #86A7A8; }
.select2-container .select2-selection--single {
  border: 1.5px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  height: 46px !important;
  padding: 0.55rem 1rem !important;
  font-family: inherit !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 10px !important; }

/* ══════════════════════════════════════════════════════════════
   BLOCK-BASED CART & CHECKOUT (WooCommerce Gutenberg Blocks)
   ══════════════════════════════════════════════════════════════ */

/* Layout wrapper — не трогаем сетку блока, только отступы */
.wc-block-cart.wc-block-components-sidebar-layout {
  gap: 2rem;
}

/* Items table */
.wc-block-cart-items {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  overflow: hidden;
}
.wc-block-cart-items table {
  width: 100%;
  border-collapse: collapse;
}
.wc-block-cart-items thead th {
  background: #F4F6F6;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1rem 1.25rem;
  border: none;
}
.wc-block-cart-items__row td {
  padding: 1.25rem 1.25rem !important;
  border-top: 1px solid #f3f4f6 !important;
  vertical-align: middle !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

/* Item image */
.wc-block-cart-item__image img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 0.75rem !important;
}

/* Item name */
.wc-block-cart-item__product a {
  font-weight: 600;
  color: #222B32;
  text-decoration: none;
  font-size: 0.95rem;
}
.wc-block-cart-item__product a:hover { color: #86A7A8; }

/* Item price */
.wc-block-cart-item__prices .price,
.wc-block-cart-item__total .price {
  font-weight: 700;
  color: #86A7A8;
  font-size: 1rem;
}

/* Remove button */
.wc-block-cart-item__remove-link,
.wc-block-components-product-remove-button {
  color: #d1d5db !important;
  font-size: 0.8rem !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}
.wc-block-cart-item__remove-link:hover,
.wc-block-components-product-remove-button:hover { color: #ef4444 !important; }

/* Sidebar / Totals */
.wc-block-cart__sidebar {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
}

.wc-block-components-totals-wrapper,
.wc-block-components-order-summary {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.wc-block-components-totals-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-top: 1px solid #f3f4f6;
  font-size: 0.95rem;
  color: #374151;
}
.wc-block-components-totals-item:first-child { border-top: none; }
.wc-block-components-totals-item__label { color: #6b7280; font-weight: 500; }
.wc-block-components-totals-item__value { font-weight: 700; color: #222B32; }

/* Total row */
.wc-block-components-totals-item.wc-block-components-totals-total {
  border-top: 2px solid #F4F6F6;
  margin-top: 0.5rem;
  padding-top: 1rem;
}
.wc-block-components-totals-total .wc-block-components-totals-item__label { color: #222B32; font-size: 1rem; font-weight: 700; }
.wc-block-components-totals-total .wc-block-components-totals-item__value { color: #86A7A8; font-size: 1.25rem; font-weight: 700; }

/* Proceed to Checkout button */
.wc-block-cart__submit-container,
.wc-block-cart__submit {
  margin-top: 1.5rem;
}
.wc-block-cart__submit-button,
a.wc-block-cart__submit-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background-color: #86A7A8 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
  text-decoration: none !important;
}
.wc-block-cart__submit-button:hover,
a.wc-block-cart__submit-button:hover {
  background-color: #4A6D70 !important;
  color: #fff !important;
}

/* Coupon block — скрыт */
.wc-block-components-totals-coupon,
.wc-block-components-totals-coupon__form,
.wc-block-components-coupon,
.wc-block-components-totals-coupon details {
  display: none !important;
}

/* Промежуточный итог — скрыт (дублирует Сумму когда нет скидок) */
.wc-block-components-totals-item:not(.wc-block-components-totals-footer-item) {
  display: none !important;
}

/* Цена за единицу под названием товара — скрыта (дублирует итог) */
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-order-summary-item__individual-price {
  display: none !important;
}

/* Order summary toggle in sidebar */
.wc-block-components-order-summary__toggle {
  font-weight: 600;
  color: #222B32;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ── Block Checkout ──────────────────────────────────────────── */

/* Расширяем внешний блок чтобы is-large сработал (>700px) */
.wp-block-woocommerce-checkout.alignwide {
  max-width: 100% !important;
}

/* Внутренний sidebar-layout — задаём двухколоночную сетку явно */
.wc-block-checkout.wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  gap: 2rem !important;
  align-items: start !important;
  width: 100% !important;
}
@media (max-width: 768px) {
  .wc-block-checkout.wc-block-components-sidebar-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Форма (левая колонка) */
.wc-block-checkout__main {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  min-width: 0;
}
@media (max-width: 768px) {
  .wc-block-checkout__main { padding: 1.25rem; }
}

/* Итог заказа (правая колонка) */
.wc-block-checkout__sidebar,
.wc-block-components-sidebar.wc-block-checkout__sidebar {
  background: #fff !important;
  border-radius: 1.5rem !important;
  padding: 1.75rem !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.06) !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  position: relative !important;
}
@media (max-width: 768px) {
  .wc-block-checkout__sidebar,
  .wc-block-components-sidebar.wc-block-checkout__sidebar {
    padding: 1.25rem !important;
    order: -1;
    position: static !important;
  }
}

/* Плавающие метки — дать пространство */
.wc-block-components-text-input,
.wc-block-components-country-input,
.wc-block-components-select {
  position: relative;
}
.wc-block-components-text-input input,
.wc-block-components-country-input input,
.wc-block-components-select select {
  padding-top: 1.4rem !important;
  padding-bottom: 0.5rem !important;
}
.wc-block-components-text-input label,
.wc-block-components-country-input label,
.wc-block-components-select label {
  font-size: 0.72rem !important;
  top: 0.45rem !important;
  color: #9ca3af !important;
  font-weight: 500 !important;
}

/* Кнопки внизу чекаута — ряд в одну строку */
.wc-block-checkout__actions_row,
.wc-block-components-checkout-return-to-cart-button + .wc-block-components-checkout-place-order-button {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: nowrap !important;
}

/* Кнопка "В корзину" — красивая pill-кнопка */
.wc-block-components-checkout-return-to-cart-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border: 2px solid #86A7A8 !important;
  border-radius: 9999px !important;
  padding: 0.9rem 1.75rem !important;
  color: #86A7A8 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: background-color 0.2s, color 0.2s !important;
  flex-shrink: 0 !important;
}
.wc-block-components-checkout-return-to-cart-button:hover {
  background-color: #86A7A8 !important;
  color: #fff !important;
}
.wc-block-components-checkout-return-to-cart-button svg { display: none !important; }

/* Checkout form fields */
.wc-block-components-text-input input,
.wc-block-components-country-input input,
.wc-block-components-select select,
.wc-block-components-textarea textarea {
  border: 1.5px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  color: #222B32 !important;
  transition: border-color 0.2s !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-country-input input:focus,
.wc-block-components-select select:focus,
.wc-block-components-textarea textarea:focus {
  border-color: #86A7A8 !important;
  box-shadow: 0 0 0 3px rgba(134,167,168,.15) !important;
  outline: none !important;
}
.wc-block-components-text-input label,
.wc-block-components-country-input label,
.wc-block-components-select label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

/* Place order button */
.wc-block-components-checkout-place-order-button {
  background-color: #86A7A8 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.95rem 2rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  flex: 1 !important;
  width: auto !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
  white-space: nowrap !important;
}
.wc-block-components-checkout-place-order-button:hover {
  background-color: #4A6D70 !important;
}

/* Payment methods */
.wc-block-components-payment-method-label {
  font-weight: 600;
  color: #222B32;
}
.wc-block-components-radio-control-accordion-option {
  border: 1px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  margin-bottom: 0.5rem !important;
  padding: 0.75rem 1rem !important;
}
.wc-block-components-radio-control-accordion-option:has(input:checked) {
  border-color: #86A7A8 !important;
  background: rgba(134,167,168,.05) !important;
}

/* ── Чекаут: финальные правки ────────────────────────────────── */

/* Скрываем "Промежуточный итог" (дублирует Сумму без скидок) */
.woocommerce-checkout-review-order-table tfoot .cart-subtotal {
  display: none !important;
}

/* Скрываем текст про персональные данные */
.woocommerce-checkout .woocommerce-privacy-policy-text,
#privacy_policy_text { display: none !important; }

/* "Billing details" / "Your order" — стиль заголовков внутри карточек */
.woocommerce-checkout h3 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #374151 !important;
  margin: 0 0 1.5rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

/* Убираем лишний отступ у полей формы внутри col-1 */
form.woocommerce-checkout .col2-set .col-1 {
  padding: 0;
}

/* "Телефон (optional)" — метка полностью в русском */
form.woocommerce-checkout .form-row label .optional {
  color: #9ca3af;
  font-weight: 400;
  font-size: 0.8em;
}

/* Кнопка "В корзину" (back) */
form.woocommerce-checkout .wc-backward {
  display: inline-flex;
  align-items: center;
  color: #86A7A8;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
form.woocommerce-checkout .wc-backward:hover { color: #4A6D70; }
