.header .cart {
  display: inline-block;
  margin-right: 12px;
}
.header .cart-link {
  background-color: var(--color-header);
  cursor: pointer;
  height: 24px;
  margin-top: -2px;
  width: 24px;
}
.cart-product-count {
  background-color: var(--color-red);
  border-radius: 100%;
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  height: 20px;
  line-height: 20px;
  position: absolute;
  right: -10px;
  text-align: center;
  top: -6px;
  width: 20px;
}
.cart-box {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 2.5rem;
  overflow: hidden;
}
.modal-window:has(.cart-modal-form) {
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: 32rem;
  overflow: visible;
  padding: 0;
}
.modal-window:has(.cart-modal-form) > .modal-header {
  display: none;
}
.modal-window:has(.cart-modal-form) > .modal-content {
  background-color: #fff;
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}
.cart-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.cart-modal-form > .cart-modal-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.cart-modal-form .cart-modal-products {
  flex: 1 1 auto;
  min-height: 60px;
}
.cart-modal-form .cart-modal-footer-area {
  flex: 0 0 auto;
}
.cart-modal-form .cart-modal-checkout-btn {
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-main, #fdc612) 30%, transparent);
}
.cart-modal-form .cart-modal-checkout-btn:hover {
  color: #000;
}
.cart-modal-form #cart-products::-webkit-scrollbar,
.cart-modal-form .custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.cart-modal-form #cart-products::-webkit-scrollbar-track,
.cart-modal-form .custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.cart-modal-form #cart-products::-webkit-scrollbar-thumb,
.cart-modal-form .custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e2e2;
  border-radius: 10px;
}
.cart-modal-form #cart-products::-webkit-scrollbar-thumb:hover,
.cart-modal-form .custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #d1d1d1;
}
.cart-modal-form .cart-modal-heart.product-wish-icon-filled {
  background-color: oklch(97.1% 0.013 17.38);
  color: oklch(63.7% 0.237 25.331);
  transform: scale(1.1);
}
.cart-modal-form .cart-modal-heart.product-wish-icon-filled svg {
  fill: currentColor;
}
@media (max-width: 480px) {
  .modal-window:has(.cart-modal-form) > .modal-content {
    border-radius: 24px;
  }
  .cart-modal-form .px-8 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
/* Laptop+ — wider modal with 2-column body, tighter spacing */
@media (min-width: 1024px) {
  .modal-window:has(.cart-modal-form) {
    max-width: min(94vw, 1100px);
  }
  .modal-window:has(.cart-modal-form) > .modal-content {
    border-radius: 24px;
    max-height: calc(100vh - 3rem);
  }
  /* Tighter header */
  .cart-modal-form > .border-b {
    padding: 0.875rem 1.5rem;
  }
  .cart-modal-form > .border-b h2 {
    font-size: 1.25rem;
  }
  /* 2-column body: products | totals/checkout sidebar */
  .cart-modal-form > .cart-modal-body {
    column-gap: 1.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    padding: 1rem 1.5rem;
  }
  .cart-modal-form .cart-modal-products {
    margin-bottom: 0;
    max-height: 100%;
    padding-right: 0.75rem;
  }
  /* Sidebar: totals + checkout button + phone + info + continue */
  .cart-modal-form .cart-modal-footer-area {
    border-top: 0;
    max-height: 100%;
    overflow-y: auto;
    padding-top: 0;
  }
  .cart-modal-form .cart-modal-footer-area > .flex.items-center.justify-between {
    margin-bottom: 0.75rem;
  }
  .cart-modal-form .cart-modal-footer-area .text-3xl {
    font-size: 1.5rem;
  }
  .cart-modal-form .cart-modal-checkout-btn {
    padding-bottom: 0.875rem;
    padding-top: 0.875rem;
    font-size: 0.8125rem;
  }
  .cart-modal-form .cart-modal-footer-area > .mb-6 {
    margin-bottom: 1rem;
  }
  /* Tighter product cards so more fit vertically */
  .cart-modal-form .cart-modal-products > .space-y-6 > * + *,
  .cart-modal-form #cart-products > * + * {
    margin-top: 1rem;
  }
  .cart-modal-form #cart-products .flex.gap-6 {
    gap: 1rem;
    padding-bottom: 1rem;
  }
  /* Tighter hotline footer */
  .cart-modal-form > .bg-gray-50\/50 {
    padding: 0.625rem 1.5rem;
  }
}
@media (min-width: 1280px) {
  .modal-window:has(.cart-modal-form) {
    max-width: min(92vw, 1200px);
  }
}
.cart-product {
  align-items: center;
  border-bottom: 1px solid var(--color-main);
  display: flex;
  flex-direction: row;
  padding: 5px 0;
  position: relative;
}
.cart-product-section-remove {
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
}
.cart-product-section-title {
  padding: 5px 0;
  text-decoration: underline;
  width: 100%;
}
.cart-product-section-price {
  display: inline-block;
  line-height: 40px;
  white-space: nowrap;
}
.cart-product-section-image {
  height: 100px;
  max-width: 100px;
  object-fit: contain;
}
.cart-product-section-block1 {
  align-items: end;
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-left: 10px;
}
.cart-product-section-block2 {
  align-items: center;
  display: flex;
  gap: 2px;
  text-align: right;
  white-space: nowrap;
}
.cart-product-section-quantity {
  border: 0;
  border-bottom: 1px solid var(--color-main);
  box-sizing: border-box;
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  padding: 4px 10px;
  text-align: center;
}
.fa-cart-quantity-btn {
  cursor: pointer;
  height: 8px;
  line-height: 40px;
  text-align: center;
  width: 8px;
}
.cart-products-total {
  margin: 12px 0 6px 0;
  text-align: right;
}
.cart-products-checkout {
  background-color: var(--color-main);
  border-radius: 4px;
  color: var(--color-btn);
  cursor: pointer;
  font-weight: 500;
  min-width: 225px;
  padding: 5px 10px;
  text-align: center;
}
.cart-products-checkout-not-valid {
  background-color: #dddddd;
  color: #222222;
}
.cart-btns .cart-products-checkout-black {
  background-color: #cccccc;
  color: #222222;
}
.cart-btns .cart-products-checkout-black2 {
  background-color: #222222;
  color: #ffffff;
}
.cart-total {
  display: flex;
  font-size: 25px !important;
  font-weight: 900;
  line-height: 1;
  margin: 8px 0;
  white-space: nowrap;
}
.cart-total2 {
  display: flex;
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}
.cart-1click-notice {
  color: #d12f14;
  font-size: 13px;
  line-height: 1.3;
  margin: 15px 0;
  text-align: left;
}
.cart-1click-notice-hidden {
  color: #ffffff;
}
.cart-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.cart-telephone-box {
  white-space: nowrap;
}
.cart-telephone {
  border: 0;
  border-bottom: 1px solid var(--color-main);
  box-shadow: none;
  box-sizing: border-box;
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  min-width: 220px;
  outline: none;
  padding: 4px 10px;
  width: 100%;
}
.cart-success-box {
  max-width: 360px;
}
.cart-success-icon-box {
  padding-top: 12px;
  text-align: center;
}
@keyframes bounce {
  0%,
  100% {
  transform: translateY(-25%);
  animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
  transform: none;
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}
.cart-success-icon {
  animation: bounce 1s infinite;
  fill: none;
  height: 48px;
  stroke: var(--color-main);
  width: 48px;
}
.cart-success-icon-check {
  height: 15px;
  width: 15px;
}
.cart-success-icon-check-inner {
  fill: var(--color-main);
}
.cart-success-title1 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}
.cart-success-title2 {
  margin: 14px 0;
  text-align: center;
}
.cart-success-title2 .fa {
  background-color: var(--color-main);
}
.cart-success-title2 span {
  background-color: var(--color-main-transparent);
  border: 1px solid var(--color-main);
  border-radius: 24px;
  font-weight: 700;
  padding: 8px 12px;
}
.cart-success-text {
  font-size: 15px;
  margin-bottom: 32px;
  text-align: center;
}
.cart-success-cashback {
  background-color: var(--color-main-transparent);
  border: 1px solid var(--color-main);
  border-radius: 4px;
  font-size: 0.8em;
  margin: 8px 8px 32px 8px;
  padding: 8px;
  text-align: center;
}
.input:focus {
  border-color: var(--color-main);
}
.input:focus-visible {
  outline: none;
}
.input:invalid {
  border-color: #d12f14;
  border-style: dashed;
}
.fa-shipping-free-icon {
  background-color: #d12f14;
  height: 20px;
  left: 0px;
  opacity: 0.3;
  position: absolute;
  top: 0px;
  width: 20px;
}
.checkout-cart-agree {
  color: #d12f14;
  font-size: 14px;
  text-align: justify;
}
.checkout-cart-agree a {
  font-weight: 700;
}
.checkout-cart-agree .fa-external-link {
  background-color: #d12f14;
}
.checkout-cart-agree-cart {
  font-size: 13px;
  margin-bottom: 8px;
}
.checkout-cart-agree-cart a {
  color: var(--color-main);
  font-weight: 500;
}
.checkout-cart-red {
  color: #d12f14;
}
.card-brand {
  object-position: left;
}
@media (max-width: 560px) {
  .cart-product-section-image {
  height: 60px;
  max-width: 60px;
  }
}
/* ===== New checkout design styles ===== */
.input-field {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-sizing: border-box;
  display: block;
  font-family: inherit;
  font-size: 0.875rem;
  height: 2.75rem;
  outline: none;
  padding: 0.5rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.input-field:focus {
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(253, 198, 18, 0.15);
}
.input-field:invalid {
  border-color: #d12f14;
}
textarea.input-field {
  height: auto;
  resize: vertical;
}
select.input-field {
  appearance: auto;
  cursor: pointer;
}
.shadow-soft {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.shadow-floating {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}
.radio-circle {
  border: 2px solid #d1d5db;
  border-radius: 50%;
  height: 1.25rem;
  transition: all 0.2s;
  width: 1.25rem;
}
.peer:checked ~ div .radio-circle,
.peer:checked ~ * .radio-circle {
  background-color: var(--color-main);
  border-color: var(--color-main);
  box-shadow: inset 0 0 0 3px #fff;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.wfp-input {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  padding: 0.625rem 0.75rem;
  transition: border-color 0.2s;
  width: 100%;
}
.wfp-input:focus {
  border-color: #3b82f6;
}
.wfp-loader {
  animation: spin 0.8s linear infinite;
  border-radius: 50%;
  border-style: solid;
  border-width: 2px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.wfp-modal-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}
/* Autocomplete styling for new design */
.autocomplete .autocomplete-items {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 20;
}
.autocomplete .autocomplete-items > div {
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
}
.autocomplete .autocomplete-items > div:hover,
.autocomplete .autocomplete-items .autocomplete-active {
  background-color: #f9fafb;
}
.autocomplete .autocomplete-empty {
  color: #9ca3af;
}
.autocomplete .fa-times-circle-o {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}
/* Cart products in new design context */
#cart-totals-box .cart-product {
  border-bottom-color: #f3f4f6;
  padding: 0.5rem 0;
}
#cart-totals-box .cart-product-section-image {
  border-radius: 0.5rem;
  height: 64px;
  max-width: 64px;
}
#cart-totals-box .cart-product-section-title {
  font-size: 0.875rem;
  text-decoration: none;
}
#cart-totals-box .cart-product-section-title:hover {
  color: var(--color-main);
}
/* Override checkout.css conflicts */
body .antialiased h1,
body .antialiased h2,
body .antialiased h3 {
  text-align: left;
}
/* Cart empty state in new design */
#cart-totals-box.cart-empty .cart-totals {
  display: none;
}

body .modal:has(.cashback-modal-card) {
  align-items: flex-start;
  overflow-y: auto;
  padding: 2rem 1rem;
}
.modal-window:has(.cashback-modal-card) {
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
  margin: auto;
  max-height: none;
  max-width: 42rem;
  overflow: visible;
  padding: 0;
}
.modal-window:has(.cashback-modal-card) > .modal-header {
  display: none;
}
.modal-window:has(.cashback-modal-card) > .modal-content {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  height: auto;
  max-height: none;
  overflow: hidden;
}
.cashback-modal-card h2,
.cashback-modal-card h3,
.cashback-modal-card h4 {
  text-align: left;
}
.cashback-modal-card p {
  margin: 0;
}
.cashback-modal-card table th,
.cashback-modal-card table td {
  border: 0;
}
@media (max-width: 480px) {
  .modal-window:has(.cashback-modal-card) {
    max-width: 100%;
  }
  .modal-window:has(.cashback-modal-card) > .modal-content {
    border-radius: 1.25rem;
  }
  .cashback-modal-card .p-8 {
    padding: 1.25rem;
  }
}
