/* стиль для страницы корзины cart */
.shopstor-cart-page {
  flex-direction: column;
  width: 100%;
  max-width: 1540px;
  margin-left: auto;
  margin-right: auto;
}
.shopstor-cart-page .entry-content {
  flex-direction: column;
  width: 100%;
  max-width: 1540px;
  margin-left: auto;
  margin-right: auto;
}
.wc-block-components-sidebar-layout {
  gap: 24px;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}
.shopstor-cart-page .entry-content .wc-block-components-main {
  padding-right: 24px;
  width: calc(100% - 495px - 24px);
}
.shopstor-cart-page .entry-content .wc-block-components-sidebar,
.wp-block-woocommerce-checkout-totals-block {
  margin: 0;
  width: 495px;
  padding-left: 24px;
}
/* Cart empty-state heading styles. */
.wc-block-cart__empty-cart__title.with-empty-cart-icon {
  font-size: 24px;
}
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  display: none;
}
.wp-block-woocommerce-empty-cart-block h2.wp-block-heading.has-text-align-center:not(.wc-block-cart__empty-cart__title) {
  font-size: 36px;
  font-weight: 600;
}
.wc-block-grid__product-link .wc-block-grid__product-onsale {
  display: none;
}
.wc-block-grid__product-image {
  width: 300px;
  height: 300px;
  overflow: hidden;
}
.wc-block-grid__product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wp-block-woocommerce-checkout-totals-block {
  border: 0;
}
.is-large.wc-block-cart .wc-block-cart-items td {
  border: 0;
  padding: 0;
  padding-bottom: 24px;
}
.wc-block-cart-item__image a {
  width: 243px;
  height: 340px;
  /*display: block;*/
}
.wc-block-cart-item__image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
.wc-block-cart-item__wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 24px;
  align-items: flex-start;
}
.wc-block-cart-item__quantity {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wc-block-components-product-name {
  color: var(--text-primary, #0E0D0F);
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  text-decoration: none;
}

.wc-block-components-sidebar-layout > div {
  border-radius: 16px;
  border: 1px solid var(--divider-main, rgba(14, 13, 15, 0.08));
  background: var(--background-2, rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(4px);
  padding: 24px;
}
.wc-block-cart-items thead {
  display: none;
}
.wc-block-components-quantity-selector {
  margin-bottom: 0!important;
  min-height: 48px!important;
}
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  color: var(--text-secondary, rgba(14, 13, 15, 0.70));
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}

.wp-block-woocommerce-cart-order-summary-block {
  border-radius: 16px;
  border: 1px solid var(--divider-main, rgba(14, 13, 15, 0.08));
  background: var(--background-2, rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(4px);
  padding: 24px;
}
.wc-block-cart__submit-container {
  border-radius: 16px;
  border: 1px solid var(--divider-main, rgba(14, 13, 15, 0.08));
  background: var(--background-2, rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(4px);
  padding: 24px;
}

.hero-button,
.woocommerce-MyAccount-navigation a,
.woocommerce-orders-table__cell-order-actions a,
.wp-element-button, .wp-block-button__link,
input[type="submit"],
.wc-block-cart__submit-button,
.wc-block-components-button {
  border: 0 !important;
  outline: 0;
  border-radius: 5px !important;
  display: inline-flex;
    font-size: 22px;
  box-sizing: border-box;
  font-family: Ubuntu, sans-serif;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #FFF !important;
  background: var(--accent-gradient, linear-gradient(90deg, #b4845c 0%, #462313 100%)) !important;
  transition: all 300ms ease-in-out; 
  cursor: pointer;
  width: 100%; /* Растягивает кнопку на всю ширину контейнера корзины, как в оригинале WooCommerce */

  /* Тень (так как на кнопке WooCommerce изначально нет класса .shadow, 
     мы применяем её принудительно, объединив селекторы) */
  &.shadow,
  &.wc-block-cart__submit-button, &.wc-block-components-button {
    box-shadow: 0px 16px 24px 0px rgba(159, 133, 67, 0.48) !important;
  }

  &:hover {
    background: linear-gradient(90deg, #b4845c 0%, #462313 100%) !important;
    transition: all 300ms ease-in-out; 

    &.shadow,
    &.wc-block-cart__submit-button, &.wc-block-components-button {
      box-shadow: 0px 8px 12px -6px rgba(159, 133, 67, 0.48) !important;
    }
  }
}
/* стиль для страницы личный кабинет my-account */
.woocommerce-account .wp-block-post-content .wp-block-group,
.woocommerce-MyAccount .wp-block-post-content .wp-block-group {
  margin: 0 !important;
  display: block !important;
  width: 100% !important;
}
.woocommerce-checkout main.wp-block-group,
.woocommerce-checkout main.wp-block-group .wp-block-group {
  display: block !important;
}
.woocommerce-checkout .wp-block-woocommerce-checkout.wc-block-checkout {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  margin-top: -100px;
}
.woocommerce-checkout .wc-block-checkout__main {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}
.woocommerce-checkout .wc-block-checkout__sidebar {
  flex: 0 0 495px;
  box-sizing: border-box;
  width: 495px;
}

/*.wc-block-components-form .wc-block-components-text-input.is-active label {
  display: none;
}
.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill, .wc-block-components-form .wc-block-components-text-input.is-active input[type=email], .wc-block-components-form .wc-block-components-text-input.is-active input[type=number], .wc-block-components-form .wc-block-components-text-input.is-active input[type=password], .wc-block-components-form .wc-block-components-text-input.is-active input[type=tel], .wc-block-components-form .wc-block-components-text-input.is-active input[type=text], .wc-block-components-form .wc-block-components-text-input.is-active input[type=url], .wc-block-components-text-input input:-webkit-autofill, .wc-block-components-text-input.is-active input[type=email], .wc-block-components-text-input.is-active input[type=number], .wc-block-components-text-input.is-active input[type=password], .wc-block-components-text-input.is-active input[type=tel], .wc-block-components-text-input.is-active input[type=text], .wc-block-components-text-input.is-active input[type=url] {
  padding: 1em 0.5em;
  background: transparent;
}*/

.wc-blocks-components-select {
  padding-top: 9px;
}

.wc-blocks-components-select .wc-blocks-components-select__label {
  display: none;
}
.wc-blocks-components-select .wc-blocks-components-select__container {
  background: transparent;
  height: 48px;
}
.wc-blocks-components-select .wc-blocks-components-select__select {
  padding-top: 0;
  border-radius: 5px;
  border: 1px solid var(--divider-input, rgba(14, 13, 15, 0.24));
  color: var(--text-secondary, rgba(14, 13, 15, 0.70));
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.wc-blocks-components-select .wc-blocks-components-select__select option {
  color: #000;
}
.wc-block-components-form .wc-block-components-text-input input[type=email], .wc-block-components-form .wc-block-components-text-input input[type=number], .wc-block-components-form .wc-block-components-text-input input[type=password], .wc-block-components-form .wc-block-components-text-input input[type=tel], .wc-block-components-form .wc-block-components-text-input input[type=text], .wc-block-components-form .wc-block-components-text-input input[type=url], .wc-block-components-text-input input[type=email], .wc-block-components-text-input input[type=number], .wc-block-components-text-input input[type=password], .wc-block-components-text-input input[type=tel], .wc-block-components-text-input input[type=text], .wc-block-components-text-input input[type=url] {
  border-radius: 5px;
  border: 1px solid var(--divider-input, rgba(14, 13, 15, 0.24));
  background: transparent;
  color: var(--text-secondary, rgba(14, 13, 15, 0.70));
  font-size: 16px;
  font-style: normal;
  height: 48px;
}
.wc-block-components-form .wc-block-components-text-input label, .wc-block-components-text-input label {
  color: var(--text-secondary, rgba(14, 13, 15, 0.70));
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  top: 50%;
}

/* My Account стилизуем */
.woocommerce-account .wp-block-post-content {
  margin-top: 100px;
  max-width: none;
  width: auto;
}

.woocommerce-MyAccount-content {
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-left: 20px;
}

.woocommerce-MyAccount-navigation a {
  display: inline-flex;
  box-sizing: border-box;
  width: 240px;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  text-decoration: none;
  border-radius: 5px;
  color: #fff;
  background: var(--accent-gradient);
}
.order-actions-button + .order-actions-button {
  margin-top: 10px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  list-style: none;
  padding: 0.25em 0;
}

.woocommerce-orders-table__cell-order-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: auto;
}

.woocommerce-orders-table__cell-order-actions a,
.woocommerce-orders-table__cell-order-actions .woocommerce-button {
  margin: 0 !important;
}

.woocommerce-orders-table__cell-order-actions a {
  box-sizing: border-box;
  width: 154px;
  padding: 12px 16px !important;
  white-space: nowrap;
}

.woocommerce-Address-title title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.woocommerce-Address-title h2 {
  font-size: 24px !important;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px;
}
.woocommerce-Addresses .u-column2.woocommerce-Address {
  border-left: 2px solid var(--divider-main, rgba(14, 13, 15, 0.08));
  padding-left: 16px;
}
.woocommerce .col2-set,
.woocommerce-page .col2-set {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.woocommerce .col2-set .u-column1.col-1,
.woocommerce-page .col2-set .u-column1.col-1,
.woocommerce .col2-set .u-column2.col-2,
.woocommerce-page .col2-set .u-column2.col-2 {
  float: none;
  width: 500px;
  max-width: 100%;
}
.woocommerce .col2-set .u-column1.col-1 form.login,
.woocommerce-page .col2-set .u-column1.col-1 form.login {
  margin: 2em 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.woocommerce form.login {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--divider-main, rgba(14, 13, 15, 0.08));
  border-radius: 5px;
}
.wp-block-post-content {
  max-width: 400px;
  margin: 100px 0 0 20px;
}
.woocommerce-cart .wp-block-post-content,
.shopstor-cart-page .wp-block-post-content {
  margin-top: 0;
}
.woocommerce form .form-row {
  box-sizing: border-box;
  width: 400px;
  margin-bottom: 15px;
}

.woocommerce-lost-password .wp-block-post-content {
  max-width: 800px;
}

.woocommerce form.woocommerce-ResetPassword.lost_reset_password {
  box-sizing: border-box;
  width: 800px;
  max-width: 100%;
  margin-top: 100px;
}

.woocommerce form.woocommerce-ResetPassword.lost_reset_password .form-row {
  width: 400px;
  max-width: 100%;
}

.woocommerce form.woocommerce-ResetPassword.lost_reset_password .woocommerce-Button {
  box-sizing: border-box;
  width: 400px !important;
  max-width: 100%;
}

.woocommerce-account .wp-block-post-content {
  width: 100%;
  max-width: none;
}

.woocommerce-account .woocommerce-MyAccount {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  flex: 0 0 240px;
}

.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0;
}

@media (min-width: 601px) and (max-width: 1024px) {
  .woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
    flex: 1 0 50%;
    max-width: 50%;
  }

  .woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image {
    box-sizing: border-box;
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1;
  }

  .shopstor-cart-page .wc-block-components-sidebar-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .shopstor-cart-page .entry-content .wc-block-components-main,
  .shopstor-cart-page .entry-content .wc-block-components-sidebar {
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 24px;
  }

  .woocommerce-checkout .wp-block-woocommerce-checkout.wc-block-checkout {
    box-sizing: border-box;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }

  .woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
    box-sizing: border-box;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 24px;
    width: 100%;
    max-width: 100%;
  }

  .woocommerce-checkout .wc-block-checkout__main,
  .woocommerce-checkout .wc-block-checkout__sidebar {
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .woocommerce-checkout .wp-block-woocommerce-checkout-totals-block {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
  }
}

@media (min-width: 360px) and (max-width: 600px) {
  .shopstor-cart-page .wc-block-components-product-metadata__description {
    display: none;
  }

  .shopstor-cart-page .wc-block-components-sale-badge {
    display: none;
  }

  .shopstor-cart-page,
  .shopstor-cart-page .entry-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .shopstor-cart-page .entry-content {
    padding: 0;
  }

  .shopstor-cart-page .wc-block-components-sidebar-layout {
    flex-direction: column;
    gap: 16px;
  }

  .shopstor-cart-page .entry-content .wc-block-components-main,
  .shopstor-cart-page .entry-content .wc-block-components-sidebar {
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  .shopstor-cart-page .wc-block-components-sidebar-layout > div,
  .shopstor-cart-page .wp-block-woocommerce-cart-order-summary-block,
  .shopstor-cart-page .wc-block-cart__submit-container {
    box-sizing: border-box;
    padding: 16px;
  }

  .shopstor-cart-page .wc-block-cart-items {
    box-sizing: border-box;
    width: 100%;
  }

  .shopstor-cart-page .wc-block-components-sidebar-layout .wc-block-cart-items .wc-block-cart-items__row {
    box-sizing: border-box;
    width: 100%;
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 12px;
  }

  .shopstor-cart-page .wc-block-components-sidebar-layout .wc-block-cart-items .wc-block-cart-item__image {
    box-sizing: border-box;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 80px;
    padding: 0 !important;
  }

  .shopstor-cart-page .wc-block-components-sidebar-layout .wc-block-cart-items .wc-block-cart-item__image a {
    display: block;
    width: 100%;
    height: auto;
  }

  .shopstor-cart-page .wc-block-components-sidebar-layout .wc-block-cart-items .wc-block-cart-item__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .shopstor-cart-page .wc-block-components-sidebar-layout .wc-block-cart-items .wc-block-cart-item__product {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0;
  }

  .shopstor-cart-page .wc-block-components-sidebar-layout .wc-block-cart-items .wc-block-cart-item__total {
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-width: 0;
    justify-content: flex-start;
    text-align: left;
  }

  .shopstor-cart-page .wc-block-cart-item__wrap {
    min-width: 0;
    margin-left: 0;
  }

  .shopstor-cart-page .wc-block-components-product-name {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .shopstor-cart-page .wc-block-cart-item__total-price-and-sale-badge-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .shopstor-cart-page .wc-block-cart__submit-button,
  .shopstor-cart-page .wc-block-components-button {
    padding: 16px 18px !important;
  }

  .shopstor-cart-page .wc-block-cart__empty-cart__title.with-empty-cart-icon {
    font-size: 22px;
  }

  .shopstor-cart-page .wp-block-woocommerce-empty-cart-block h2.wp-block-heading.has-text-align-center:not(.wc-block-cart__empty-cart__title) {
    font-size: 26px;
  }

  .woocommerce-checkout .wp-block-woocommerce-checkout.wc-block-checkout {
    box-sizing: border-box;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin-top: 0;
  }

  .woocommerce-checkout .wc-block-checkout__main,
  .woocommerce-checkout .wc-block-checkout__sidebar {
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .woocommerce-checkout .wp-block-woocommerce-checkout-totals-block {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
  }

  .woocommerce-checkout .wc-block-checkout__sidebar {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title {
    margin: 0;
    padding: 10px 16px;
  }

  .woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-text {
    margin: 0;
  }

  .woocommerce-checkout .wc-block-checkout__actions .wp-block-woocommerce-checkout-order-summary-block {
    display: none;
  }

  .woocommerce-checkout .wc-block-components-button {
    padding: 16px 18px !important;
  }

  .woocommerce-account .wp-block-post-content {
    box-sizing: border-box;
    margin-top: 24px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .woocommerce-account .woocommerce-MyAccount {
    flex-direction: column;
    gap: 24px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 auto;
    width: 100%;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li {
    box-sizing: border-box;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 0;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation a {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 8px !important;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: normal;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    box-sizing: border-box;
    align-items: stretch;
    width: 100%;
    overflow-x: auto;
  }

  .woocommerce-account .woocommerce .col2-set,
  .woocommerce-account .woocommerce-page .col2-set {
    flex-direction: column;
    gap: 24px;
  }

  .woocommerce-account .woocommerce .col2-set .u-column1.col-1,
  .woocommerce-account .woocommerce-page .col2-set .u-column1.col-1,
  .woocommerce-account .woocommerce .col2-set .u-column2.col-2,
  .woocommerce-account .woocommerce-page .col2-set .u-column2.col-2 {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .woocommerce-account .woocommerce-Addresses .u-column2.woocommerce-Address {
    border-top: 2px solid var(--divider-main, rgba(14, 13, 15, 0.08));
    border-left: 0;
    padding: 16px 0 0;
  }

  .woocommerce-account .woocommerce form .form-row {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
}

