section.basket {
  padding: var(--section-padding) 0;
  background-color: var(--color-dark);
  color: var(--color-dark);
  font-family: var(--font-main);
}

section.basket .basket-wr {
  background-color: transparent;
}

section.basket .pagetitle-wr {
  margin-bottom: var(--section-padding);
  display: flex;
  justify-content: center;
}

section.basket .pagetitle-wr .pagetitle {
  width: fit-content;
  padding: 15px 35px;
  position: relative;
}

section.basket .pagetitle-wr .pagetitle:before {
  content: '';
  background: url(/include/images/title-paper.webp) no-repeat center;
  background-size: 100% 100%;
  position: absolute;
  left: -20px;
  bottom: 0;
  width: calc(100% + 40px);
  height: 100%;
  z-index: 0;
}

section.basket .pagetitle-wr .pagetitle h1 {
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  z-index: 1;
  position: relative;

}

.basket-panel {
  background-color: var(--color-beige);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.basket-empty-box,
.basket-error-box {
  padding: 50px 30px;
  text-align: center;
}

.basket-error-box {
  color: var(--color-red);
}

.bx-step-opacity {
  transition: opacity 0.3s ease;
}

.basket-items-list-container {
  position: relative;
  min-height: 150px;
}

.basket-items-list-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(27, 26, 26, 0.75);
  backdrop-filter: blur(2px);
  z-index: 10;
}

.basket-items-list-table {
  width: 100%;
  border-collapse: collapse;
}

.basket-items-list-table tr {
  border-bottom: 1px solid var(--color-gold);
  transition: background-color 0.2s;
}

.basket-items-list-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.basket-items-list-table tr:last-child {
  border-bottom: none;
}

.basket-items-list-table td {
  padding: 20px;
  vertical-align: middle;
}


.basket-items-list-item-descriptions-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.basket-item-block-image {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  border: 1px solid rgba(179, 145, 108, 0.3);
  background-color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.basket-item-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.basket-item-block-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.basket-item-info-name {
  margin: 0;
}

.basket-item-info-name-link {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.basket-item-info-name-link:hover {
  color: var(--color-gold);
}

.basket-item-block-properties {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: rgba(232, 221, 203, 0.6);
}

.basket-item-price-current-text,
.basket-item-price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gold);
}

.basket-item-price-old {
  font-size: 14px;
  text-decoration: line-through;
  opacity: .6;
}

.basket-item-price-title {
  font-size: 12px;
  line-height: 1;
}


.basket-item-block-amount {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-gold);
  background: var(--color-dark);
}
.basket-item-amount-field-description, .basket-coupon-block-total-price-difference, .basket-item-price-difference {
  display: none;
}
.basket-item-amount-btn-minus,
.basket-item-amount-btn-plus {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  color: var(--color-dark);
  background: #fff;
  border: none;
  font-size: 20px;
  transition: color 0.2s, background-color 0.2s;
}

.basket-item-amount-btn-minus:hover,
.basket-item-amount-btn-plus:hover {
  background: #fff;
  color: var(--color-gold);
}

.basket-item-amount-btn-minus::after { content: "−"; }
.basket-item-amount-btn-plus::after { content: "+"; }

.basket-item-amount-filed-block input {
  width: 44px;
  height: 38px;
  border: none;
  border-left: 1px solid var(--color-gold);
  border-right: 1px solid var(--color-gold);
  text-align: center;
  font-weight: 600;
 background: #fff;
  outline: none;
}

.basket-item-actions-remove svg {
  pointer-events: none;
  display: block;
}

.basket-item-price-difference-value {
  white-space: nowrap;
}
.basket-item-actions-remove {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-red);
  opacity: 0.6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, color 0.2s, transform 0.2s;
}

.basket-item-actions-remove:hover {
  opacity: 1;
  transform: scale(1.15);
}

.basket-total-block-wrap-top {
  margin-bottom: 24px;
}

.basket-total-block-wrap-bottom {
  margin-top: 24px;
}

.basket-checkout-container,
.basket-total-block {
  background: var(--color-beige);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.basket-coupon-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}

.basket-coupon-block-field-description {
  font-size: 14px;
  margin-bottom: 15px;
}

.basket-coupon-block-field .form-control {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: #fff;
box-shadow: 1px 1px 1px 0px #2F232380 inset;

  outline: none;
  transition: border-color 0.2s;
}

.basket-coupon-block-field .form-control:focus {
  border-color: var(--color-gold);
}

.basket-checkout-section-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.basket-checkout-block-total-price-inner {
  display: flex;
  gap: 15px;
  align-items: baseline;
}

.basket-checkout-block-total-title {
  font-size: 18px;

}

.basket-coupon-block-total-price-current,
.basket-checkout-block-total-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-red);
  line-height: 1;
}

.basket-coupon-block-total-price-old, .basket-item-price-old {
  font-weight: 300;
  line-height: 1;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0px 7px;
  color: var(--color-dark);
  font-size: 16px;
  display: flex;
  justify-content: center;
}
.basket-item-block-price .basket-item-price-old {
  padding: 0;
  text-align: left;
  justify-content: left;
}
.basket-coupon-block-total-price-old::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: var(--color-red);
  transform-origin: center center;
  transform: rotate(-30deg) translateY(-50%);
}
.btn-checkout,
.basket-checkout-btn,
.basket-btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: var(--color-white);
  border: none;
  border-radius: 0;
  padding: 15px 40px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.btn-checkout:hover,
.basket-checkout-btn:hover,
.basket-btn-checkout:hover {
box-shadow: inset 0 0 15px 5px rgba(255, 255, 255, 0.4);
  color: #fff;
}

.basket-hidden {
  display: none;
  opacity: 0;
}

.basket-warning-block {
  display: none;
  margin-bottom: 24px;
  padding: 15px 20px;
  background-color: var(--color-brown);
  border: 1px solid var(--color-gold);
  color: var(--color-beige);
}

.basket-warning-close {
  float: right;
  cursor: pointer;
  font-size: 22px;
  color: var(--color-beige);
}
.basket-coupon-alert-section .basket-coupon-text {
  color: var(--color-gold);
}
.basket-coupon-alert-section .close-link {
  color: var(--color-red);
  cursor: pointer;
  margin-left: 15px;
  border-bottom: 1px dotted var(--color-red);
}
.basket-coupon-block-coupon-btn {
  position: absolute;
  top: 0;
  right: 5px;
  display: flex;
  align-items: center;
  width: 27px;
  height: 100%;
  cursor: pointer;
}
.basket-coupon-block-coupon-btn::before {
  content: "";
  display: inline-block;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background-color: var(--color-red);
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='15' viewBox='0 0 16 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.8492 8.07112C15.2398 7.6806 15.2398 7.04743 14.8492 6.65691L8.48528 0.292946C8.09476 -0.0975785 7.46159 -0.0975785 7.07107 0.292946C6.68054 0.68347 6.68054 1.31664 7.07107 1.70716L12.7279 7.36401L7.07107 13.0209C6.68054 13.4114 6.68054 14.0446 7.07107 14.4351C7.46159 14.8256 8.09476 14.8256 8.48528 14.4351L14.8492 8.07112ZM0 7.36401L0 8.36401H14.1421V7.36401V6.36401L0 6.36401L0 7.36401Z' fill='white'/%3E%3C/svg%3E");
  background-size: 15px;
  background-repeat: no-repeat;
  background-position: center;
  transition: color .05s ease;
}

@media (max-width: 767px) {
  .basket-items-list-table,
  .basket-items-list-table tbody {
    display: block;
    width: 100%;
  }

  .basket-items-list-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10px;
    position: relative;
  }

  .basket-items-list-table td {
    display: block;
    padding: 0;
    border: none;
  }

  td.basket-items-list-item-descriptions {
    width: 100%;
    margin-bottom: 16px;
  }

  .basket-items-list-item-descriptions-inner {
    align-items: flex-start;
    padding-right: 36px;
  }

  .basket-item-block-image {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
  }

  .basket-item-info-name-link {
    font-size: 16px;
  }

  td.basket-items-list-item-amount {
    width: auto;
  }

  td.basket-items-list-item-price {
    width: auto;
    text-align: center;
  }

  .basket-checkout-container {
    padding: 20px;
  }

  .basket-checkout-section-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .basket-checkout-block-total-price-inner {
    justify-content: space-between;
    width: 100%;
  }

  .btn-checkout,
  .basket-btn-checkout {
    width: 100% !important;
  }
  .basket-item-amount-btn-minus, .basket-item-amount-btn-plus, .basket-item-amount-filed-block input {
  width: 30px;
  height: 30px;
}
.basket-items-list-item-price-for-one .basket-item-price-current-text, .basket-items-list-item-price-for-one .basket-item-price-old {
  font-size: 14px;
}
.basket-item-price-current {
  font-size: 18px;
  line-height: 1;
}
.basket-checkout-container {
  gap: 0;
}
}
