@font-face {
  font-family: "Dienstag";
  src: url("../fonts/Dienstag-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dienstag";
  src: url("../fonts/Dienstag-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #2f2e2e;
  --color-secondary: #fff2d6;
  --color-secondary-dark: #ebce93;
  --color-white: #ffffff;
  --color-gray: #818181;

  --container-width: 1360px;
  --container-padding: 40px;

  --border-width-t: 0.4px;
  --border-width-l: 0.5px;
  --border-width-m: 1px;
  --border-width-l: 1.5px;

  --radius-sm: 4px;
  --radius-m: 12px;
  --radius-l: 20px;
  --radius-xl: 24px;
  --radius-xxl: 40px;
  --radius-full: 50%;

  --font-main: "Dienstag", sans-serif;
  --transition-base: 0.3s ease;
}

@media (max-width: 768px) {
  :root {
    --container-padding: 15px;
  }
}

td{
  font-family: "Switzer", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-dark);
  font-size: 14px;
  background-color: #f8f8f8;
  line-height: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1;
}

h1 {
  font-size: 32px;
  font-weight: 400;
}
h2 {
  font-size: 24px;
  font-weight: 500;
}
h3 {
  font-size: 20px;
  font-weight: 500;
}
h4 {
  font-size: 18px;
  font-weight: 500;
}

a {
  color: #000;
  text-decoration: none;
}

section:last-of-type {
  margin-bottom: 35px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 20px;
  }
  h4 {
    font-size: 18px;
  }

  section:last-of-type {
    margin-bottom: 25px;
  }
}

.container {
  max-width: calc(var(--container-width) + (var(--container-padding) * 2));
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
  background-color: var(--color-primary);
  color: var(--color-white);
  align-items: center;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 400;
  border-radius: var(--radius-l);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
  background-color: var(--color-secondary-dark);
  color: #000;
  align-items: center;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 400;
  border-radius: var(--radius-l);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn-primary:hover {
  background-color: var(--color-secondary-dark);
  color: #000;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}



.legal-content {
  max-width: 1440px;
  margin: 40px auto;
  padding: 0 40px;
  font-size: 15px;
  line-height: 1.6;
}

/* Стили заголовков внутри текстовой страницы */
.legal-content h1,
.legal-content h2,
.legal-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-content h1 { font-size: 28px; }
.legal-content h2 { font-size: 22px; }
.legal-content h3 { font-size: 18px; }

/* Отступы для абзацев */
.legal-content p {
  margin-bottom: 16px;
}

/* Стили для списков, если они будут использоваться */
.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  text-decoration: underline;
}

.legal-content a:hover {
  text-decoration: none;
}




.wp-block-woocommerce-cart {
  container-type: inline-size;
  width: 100%;
  max-width: 1440px;
  margin: 40px auto;
  padding: 0 40px;
}

.wc-block-formatted-money-amount{
  font-family: "Switzer", sans-serif;
}

.wc-block-components-product-details__value{
  font-family: "Switzer", sans-serif;
}

.wc-block-cart-item__prices{
  font-family: "Switzer", sans-serif;
}

.wc-block-cart__submit-button, 
.wc-block-components-checkout-place-order-button {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100%;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 400;
  border-radius: var(--radius-l);
  cursor: pointer;
  border: none;
  background-color: var(--color-secondary-dark);
  color: #000;
  text-decoration: none;
  transition: all var(--transition-base) !important;
}

.wc-block-cart__submit-button:hover, 
.wc-block-components-checkout-place-order-button:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.wc-block-components-totals-coupon__button{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100%;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 400;
  border-radius: var(--radius-l); /* Твій радіус */
  cursor: pointer;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  transition: all var(--transition-base) !important;
}

.wc-block-components-totals-coupon__button:hover {
  background-color: var(--color-secondary-dark);
  color: #000;
}



.wp-block-woocommerce-checkout {
  container-type: inline-size;
  width: 100%;
  max-width: 1440px;
  margin: 40px auto;
  padding: 0 40px;
}

@container (min-width: 700px) {
  .wc-block-checkout__billing-fields .wc-block-components-address-form, .wc-block-checkout__shipping-fields .wc-block-components-address-form {
    gap: 12px;
  }
}











.woocommerce #customer_login {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1440px;
  margin: 40px auto;
  padding: 0 40px;
}

/* Колонки входа и регистрации */
.woocommerce #customer_login .u-column1,
.woocommerce #customer_login .u-column2 {
  flex: 1;
  min-width: 280px;
  background-color: var(--color-white, #fff);
  padding: 30px;
  border-radius: var(--radius-l, 12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.woocommerce #customer_login h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #000;
}

/* Поля ввода */
.woocommerce #customer_login .woocommerce-form-row {
  margin-bottom: 20px;
}

.woocommerce #customer_login label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #000;
}

.woocommerce #customer_login .woocommerce-Input,
.woocommerce #customer_login .input-text {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-m, 8px);
  background-color: #fafafa;
  transition: all var(--transition-base, 0.3s ease);
  box-sizing: border-box;
}

.woocommerce #customer_login .woocommerce-Input:focus,
.woocommerce #customer_login .input-text:focus {
  border-color: var(--color-primary, #007bff);
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Обертка поля пароля с кнопкой глаза */
.woocommerce #customer_login .password-input {
  position: relative;
  display: block;
  width: 100%;
}

.woocommerce #customer_login .password-input .input-text {
  padding-right: 45px;
}

.woocommerce #customer_login .show-password-input {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.woocommerce #customer_login .show-password-input:hover {
  opacity: 1;
}

/* Чекбокс "Запам'ятати мене" */
.woocommerce #customer_login .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 400;
}

.woocommerce #customer_login .woocommerce-form__input-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary, #007bff);
  cursor: pointer;
}

/* Кнопки отправки (Увійти / Реєстрація) */
.woocommerce #customer_login button.woocommerce-button,
.woocommerce #customer_login button.woocommerce-Button {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100%;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-l, 8px);
  cursor: pointer;
  border: none;
  background-color: var(--color-secondary-dark, #222);
  color: #fff;
  text-decoration: none;
  transition: all var(--transition-base, 0.3s ease) !important;
  margin-top: 20px;
}

.woocommerce #customer_login button.woocommerce-button:hover,
.woocommerce #customer_login button.woocommerce-Button:hover {
  background-color: var(--color-primary, #007bff);
  color: var(--color-white, #fff);
}

/* Ссылка восстановления пароля и подсказки */
.woocommerce #customer_login .lost_password {
  margin-top: 16px;
  text-align: right;
  font-size: 14px;
}

.woocommerce #customer_login .lost_password a,
.woocommerce #customer_login .woocommerce-privacy-policy-link {
  color: var(--color-primary);
  text-decoration: none;
}

.woocommerce #customer_login .lost_password a:hover,
.woocommerce #customer_login .woocommerce-privacy-policy-link:hover {
  text-decoration: underline;
}

.woocommerce #customer_login p:not(.form-row) {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.woocommerce-privacy-policy-text {
  font-size: 13px;
  color: #777;
  margin-top: 15px;
}


@media(max-width: 767px){
  .legal-content, .wp-block-woocommerce-cart, .woocommerce #customer_login, .wp-block-woocommerce-checkout {
    padding: 0 15px;
  }
}

.woocommerce-notices-wrapper{
  display: none;
}







/* =================================================_
   СТИЛИ СТРАНИЦЫ УСПЕШНОГО ЗАКАЗА (THANK YOU PAGE / ЧЕК)
   ================================================= */

/* Общий контейнер успешного заказа */


.woocommerce-account .woocommerce-order,
.woocommerce-order {
  margin: 40px auto;
  background-color: var(--color-white, #fff);
  padding: 40px;
  border-radius: var(--radius-l, 12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
  background-color: #eefcf4;
  color: #155724;
  padding: 16px 20px;
  border-radius: var(--radius-m, 8px);
  border-left: 4px solid #28a745;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 30px;
}

ul.woocommerce-order-overview.woocommerce-thankyou-order-details {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background-color: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: var(--radius-m, 8px);
  padding: 20px;
}

ul.woocommerce-order-overview.woocommerce-thankyou-order-details li {
  font-family: "Switzer", sans-serif;
  flex: 1 1 200px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

ul.woocommerce-order-overview.woocommerce-thankyou-order-details li strong {
  font-size: 15px;
}

/* Заголовки секций (Информация о заказе, Платежный адрес) */
.woocommerce-order-details__title,
.woocommerce-column__title {
  font-size: 20px !important;
  font-weight: 600 !important;
  margin-top: 30px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Таблица товаров в заказе */
.woocommerce-table.woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 14px;
}

.woocommerce-table.woocommerce-table--order-details th,
.woocommerce-table.woocommerce-table--order-details td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
}

.woocommerce-table.woocommerce-table--order-details th {
  font-weight: 600;
  background-color: #fafafa;
}

.woocommerce-table.woocommerce-table--order-details tfoot th {
  background-color: transparent;
  font-weight: 500;
}

.woocommerce-table.woocommerce-table--order-details td {
  color: #444;
}

/* Блок адреса покупателя */
.woocommerce-customer-details address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  background-color: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: var(--radius-m, 8px);
  padding: 20px;
}

.woocommerce-customer-details--email {
  margin-top: 10px;
  color: var(--color-primary, #007bff);
}




@media (max-width: 450px) {
  .wc-block-cart-items__row,
  .wp-block-woocommerce-cart-line-items-block {
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    padding-right: 0 !important;
  }

  .wc-block-cart {
    padding: 0 10px !important;
    box-sizing: border-box;
  }

  table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img{
    width: 100%;
    max-width: 200px;
    height: 100%;
  }
}

@media (max-width: 980px) {
  .wc-block-components-order-summary .wc-block-components-order-summary-item{
   flex-direction: column;
  }

  .wc-block-components-order-summary .wc-block-components-order-summary-item__description{
    padding: 10px 0;
  }
}

@media (max-width: 768px){
  .wc-block-checkout__billing-fields .wc-block-components-address-form, .wc-block-checkout__shipping-fields .wc-block-components-address-form{
    gap: 12px !important;
  }
}