.cart_header {
  font-weight: 500;
  font-size: 14px;
  width: auto;
  color: #000;
}

.cart_header_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cart_items {
  text-align: center;
  font-size: 16px;
}

.cart_item {
  border-bottom: 1px solid #d6d6d6;
}

.cart_items img {
  border-radius: 8px;
  transition: all 0.3s ease-in;
}

.cart_items img:hover {
  opacity: 0.8;
  transition: all 0.3s ease-in;
}

.cart_footer {
  float: left;
}

.cart-info {
  background: #fff;
  border-radius: 18px;
}

.cart_header_title {
  font-size: 18px !important;
  font-weight: 600;
  color: #1a1a1a;
}

.partner-link {
  color: #1a1a1a;
  text-decoration: none;
}
.partner-link:hover {
  color: #2651d1;
  text-decoration: underline;
}

.title-dot {
  color: #8e8e8e;
  margin: 0 4px;
}
.title-price {
  font-weight: 600;
}

.btn-delete-order {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: color 0.2s ease;
}
.btn-delete-order:hover {
  color: #dc3545;
}

.action-row {
  font-size: 13px;
  font-weight: 400;
  flex-wrap: wrap;
}

.checkbox-container {
  cursor: pointer;
  color: #1a1a1a;
  user-select: none;
}
.custom-cart-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.selected-count {
  color: #8e8e8e;
}

.btn-delete-selected {
  font-size: 13px;
  color: #1a1a1a;
  cursor: pointer;
  transition: color 0.2s ease;
}
.btn-delete-selected:hover {
  color: #dc3545;
}

.partner-order-badge {
  background-color: #e6e6e699;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 10px;
}

.partner-order-badge_bottom {
  display: flex;
  justify-content: space-between;
}

.order-badge-title {
  font-size: 16px;
}

.allcart_info p {
  font-size: 20px !important;
  font-weight: 600;
}

.total-summary-block_bottom {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: #8e8e8e;
}

.allcart_info {
  display: flex;
  justify-content: space-between;
}

.count-input {
  border: 1px solid #d6d6d6;
  display: inline-flex;
  border-radius: 16px;
}

.count-input .btn-number {
  background: none;
}

.count-input .btn-number .fa {
  color: #b9b9b9;
  font-size: 16px;
}

.cart-number {
  background: white;
  color: #b9b9b9;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: #006933;
}

.online {
  border: 1px solid #d6d6d6;
  font-size: 16px;
  margin-bottom: 7.5px;
  margin-top: 7.5px;
  padding: 10px 5px;
  cursor: pointer;
  border-radius: 8px;
  width: 300px;
}

.payment {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.online .title {
  font-weight: 500;
}

.footer_adress {
  margin-bottom: 0;
  font-size: 16px;
}
.card_footer p {
  font-size: 16px;
}

.footer_adress a {
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
}

.footer_delivery {
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

.partner_cart {
  background-color: #fff;
  border-radius: 20px;
  margin-bottom: 30px;
}

.delivery_wrapper,
.payment_methods {
  display: grid;
  grid: auto/repeat(auto-fill, minmax(24%, 1fr));
  gap: 20px 10px;
  margin-left: -10px;
}

.delivery_card,
.payment_wrap {
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 15px;
}

.delivery_card:hover {
  border: 1px solid var(--blue);
}

.payment_wrap:hover {
  border: 1px solid var(--blue);
}

.delivery,
.payment_methods {
  padding: 0px 10px 0px 20px;
}

.card_top,
.payment_wrap {
  display: flex;
}

.payment_descr {
  padding-top: 15px;
  margin-left: 5px;
}

.delivery .delivery_card hr {
  border-top: 1px solid #d0d0d0;
  margin-bottom: 15px;
  margin-top: 10px;
  margin-left: 0px;
}

.delivery hr {
  margin-left: -10px;
}

.card_top img {
  height: 55px;
}

.card_descr p,
.card_bottom p {
  margin-bottom: 0;
  font-size: 14px;
  color: #ff8205;
  line-height: 18px;
}

.card_bottom p,
.card_bottom a,
.payment_descr p {
  font-size: 14px;
  color: #ff8205;
  line-height: 18px;
  margin-top: -10px;
  margin-bottom: 5px;
}

.card_bottom a {
  text-decoration: underline;
}

.card_descr .bold,
.payment_descr .bold {
  font-weight: bold;
  color: black;
}

.payment_descr .bold {
  margin-bottom: 10px;
}

.payment_descr p {
  color: black;
}

.btn_buy {
  margin-top: 15px;
}

.cart-info a {
  color: #006933;
  text-decoration: underline;
}

.cart-info p {
  margin-bottom: 0;
  font-size: 16px;
}

.cart-info p:first-child {
  font-weight: bold;
}

.btn_confirm button {
  color: #6c7479;
}

.discount {
  font-weight: 400;
  color: rgba(0, 26, 52, 0.6);
}

.add-favorite,
.product_name {
  font-size: 16px;
}

.remove-cart-item {
  color: rgba(0, 26, 52, 0.6);
  font-weight: 400;
  font-size: 16px;
  background: none;
  padding: 0;
}

.remove-cart-item:hover {
  background: none;
}

.count input {
  width: 35px;
  height: 22px;
  border: none;
  background: inherit;
  text-align: center;
}
.count input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.cart-payment-block-select,
.cart-payment-block-select:hover {
  border: 2px solid var(--blue);
  border-radius: 10px;
}
.cart-payment-block {
  cursor: pointer;
}

.cart-delivery-block-select,
.cart-delivery-block-select:hover {
  border: 2px solid var(--blue);
}
.cart-delivery-block {
  cursor: pointer;
}

.cart_items.cart-items-disabled {
  opacity: 0.3;
}
.block-text-available {
  color: #ff8205;
  margin-bottom: 0;
  margin-left: 10px;
  font-size: 16px;
}

.cart-error {
  margin-top: 0.25rem;
  font-size: 80%;
  color: #ff8205;
  padding-bottom: 10px;
}

.toast-container {
  bottom: 15px;
  right: 20px;
  z-index: 100000000;
}
#liveToast {
  background-color: #ffffff;
  border-radius: 16px;
  color: black;
  margin-bottom: 10px;
}
.toast-container .btn-close {
  top: -10px;
  right: 0;
  background-color: unset;
}

#page {
  background: #f5f7fa;
}

.product-cart .price-block .price {
  font-size: 18px;
}
.product-cart .old-price {
  font-size: 14px;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.cart-tabs-list {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cart-tabs-list .nav-item {
  flex-shrink: 0;
}

.cart-tabs-list .nav-link {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  min-width: 94px;
}

.cart-tabs-list .nav-link .tab-label {
  color: #212121;
  font-size: 16px;
}

.cart-tabs-list .nav-link .partner-name {
  font-size: 14px;
  color: #8e8e8e;
  text-align: left;
}

.cart-tabs-list .nav-link.active .tab-label {
  color: #1e4796;
}

.cart-tabs-list .nav-link:hover:not(.active) {
  background: #e5e7eb;
}

.cart-tabs-list {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  margin: 0;
  list-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.cart-tabs-list:hover {
  overflow-x: auto;
}

.cart-tabs-list::-webkit-scrollbar {
  height: 4px;
}

.cart-tabs-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.cart-tabs-list::-webkit-scrollbar-thumb {
  background: #c1c7cd;
  border-radius: 10px;
}

.cart-tabs-list::-webkit-scrollbar-thumb:hover {
  background: #a0a7af;
}

.cart-tabs-list {
  scrollbar-width: thin;
  scrollbar-color: #c1c7cd #f1f1f1;
}

.cart-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.cart-item-main-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.cart-item-checkbox, .form-check-input-agree {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 10px;
}

.custom-cart-checkbox, .form-check-input-agree {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #8E8E8E; 
    border-radius: 5px;
    background-color: #FFFFFF;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-cart-checkbox:checked, .form-check-input-agree:checked {
    background-color: #1E4796;
    border-color: #1E4796;
}

.custom-cart-checkbox:checked::after, .form-check-input-agree::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cart-form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
  padding-right: 10px;
  text-align: left;
}

.cart-item-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-sku {
  font-size: 13px;
  color: #999;
}

.cart-item-delete {
  flex-shrink: 0;
}

.cart-item-delete a {
  display: inline-block;
  color: #999;
}

.cart-item-prices-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 15px;
}

.cart-item-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.cart-item-single-price {
  font-size: 14px;
  color: #222;
  white-space: nowrap;
}

.cart-item-total-price {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}
.cart-item-quantity-wrapper {
  background: #f1f1f1;
  border-radius: 20px;
  padding: 4px 12px;
  flex-shrink: 0;
}

.cart-item-quantity-wrapper .custom-quantity-input {
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
}

.cart-item-quantity-wrapper .count-button {
  cursor: pointer;
  padding: 0 8px;
  font-weight: bold;
  color: #333;
}

.cart-item-quantity-wrapper .quantity-field-container {
  margin: 0 10px;
}

.cart-item-quantity-wrapper .qty-field {
  width: 25px;
  text-align: center;
  border: 0;
  background: transparent;
  font-weight: 500;
  font-size: 14px;
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
}

.cart-item-quantity-wrapper .qty-field::-webkit-outer-spin-button,
.cart-item-quantity-wrapper .qty-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-item-promo-badge {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 13px;
}

.cart-item-promo-badge .promo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #24a11b;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.partner-total-badge {
  display: flex;
  justify-content: space-between;
  background-color: #e6e6e699;
  border-radius: 15px;
  padding: 21px 44px;
  font-size: 20px;
  font-weight: 600;
}

.user-type-toggle {
    display: flex;
    gap: 16px; 
}

.toggle-tab input[type="radio"] {
    display: none;
}

.toggle-tab .tab-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    border: 2px solid #E6E6E6;
    border-radius: 23px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.toggle-tab input[type="radio"]:checked + .tab-button {
    border-color: #1E4796;
}

.toggle-tab .tab-button:hover {
    border-color: #BDBDBD;
}

#userinfo input {
  border-radius: 23px;
  background-color: #E6E6E699;
  color: #212121;
}


@media (min-width: 768px) {
  .cart-item-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .cart-item-row .cart-mobile-delete {
    display: none;
  }

  .cart-item-row .cart-desktop-delete {
    display: flex;
    width: 24px;
    justify-content: center;
  }

  .cart-item-main-container {
    width: auto;
    flex-grow: 1;
  }

  .cart-item-prices-container {
    width: auto;
    margin-top: 0;
    margin-left: auto;
    justify-content: flex-end;
  }

  .cart-item-single-price,
  .cart-item-quantity-wrapper,
  .cart-item-total-price {
    margin-right: 15px;
  }
}

@media screen and (max-width: 600px) {
  .delivery_card,
  .payment_wrap {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .cart_header_title {
    font-size: 16px !important;
  }
  .partner-total-badge {
    font-size: 16px;
  }
  .cart-item-info-wrapper {
    width: 100%;
  }
  .cart-item-row .cart-desktop-delete {
    display: none;
  }

  .cart-item-row .cart-mobile-delete {
    display: flex;
    margin-left: auto;
  }

  .cart-item-prices-container,
  .cart-item-promo-badge {
    justify-content: center;
    gap: 15px;
  }
}
