.cart-wrapper.hide,
.cart-button span.hide,
.cart-wrapper .cart .hide {
  display: none !important;
}

.cart-button-anchor {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cart-button-anchor-mobile {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.cart-button {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cart-button:hover {
  transition: all 0.2s;
  background-color: #fcfcfc;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
}

.cart-button img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  position: relative;
}
.cart-button span {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #202633;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.cart-wrapper {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1002;
}

.cart-wrapper .cart-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgba(32, 38, 51, 0.2);
  cursor: pointer;
}

.cart-wrapper .cart {
  background-color: #fcfcfc;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 500px;
  min-width: 285px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-wrapper .cart .cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin: 0 20px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.cart-wrapper .cart .cart-header h2 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  margin: 0px;
}

.cart-wrapper .cart .cart-header button {
  padding: 8px;
  right: -8px;
  position: relative;
}

.cart-wrapper .cart .cart-header button img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.cart-wrapper .cart .cart-list {
  flex-grow: 1;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart .cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 120px;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
}
.cart .cart-item > img {
  width: 84px;
  max-width: 25%;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.cart .cart-item .cart-item-details {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: flex-start;
  gap: 8px;
  position: relative;
}
.cart .cart-item .cart-item-details-title {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: calc(100% - 32px);
}

.cart .cart-item .cart-item-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart .cart-item .cart-item-subtitle {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart .cart-item .cart-item-discounts {
  display: flex;
  flex-direction: column;
}
.cart .cart-item .cart-item-discount {
  font-size: 12px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  opacity: 0.5;
}
.cart .cart-item .cart-item-discount img {
  width: 13px;
  position: relative;
  top: 2px;
}

.cart .cart-item .remove-item {
  position: absolute;
  top: 0;
  right: 0;
}

.cart .cart-item .remove-item img {
  width: 15px;
  object-fit: contain;
  margin: 2px;
}

.cart .cart-item .cart-item-controls {
  width: 100px;
  height: 35px;
  border-radius: 18px;
  border: 1px solid #767676;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart .cart-item .cart-item-controls .cart-item-control {
  color: #767676;
  font-size: 23px;
  width: 35px;
  border-radius: 50%;
  text-align: center;
  vertical-align: middle;
}
.cart .cart-item .cart-item-controls .cart-item-quantity {
  font-size: 14px;
  text-align: center;
  color: #202633;
}
.cart .cart-item .cart-item-price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0px 8px;
  font-weight: 500;
  font-size: 14px;
  position: absolute;
  bottom: 0;
  right: 0;
}

.cart .cart-item .cart-item-price .discounted-price {
  color: #e77e2b;
}
.cart .cart-item .cart-item-price .original-price {
  color: #202633;
}
.cart .cart-item .cart-item-price .original-price.line-through {
  opacity: 50%;
  text-decoration: line-through;
}

.cart .cart-item-link:hover .cart-item .cart-item-title {
  text-decoration: underline;
  cursor: pointer;
}

.cart .cart-empty-message {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  padding: 30px 20px;
}

.cart .cart-empty-suggestions h3 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #1f4e96;
}
.cart .cart-empty-suggestions .cart-suggestions-list {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 24px;
}
.cart .cart-empty-suggestions .cart-suggestions-list .cart-suggestion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-basis: calc(50% - 20px);
}

.cart .cart-empty-suggestions .cart-suggestions-list .cart-suggestion-item div {
  display: flex;
  gap: 8px;
}
.cart .cart-empty-suggestions .cart-suggestions-list .cart-suggestion-item div span {
  font-size: 14px;
  font-weight: 700;
}

.cart .cart-empty-suggestions .cart-suggestions-list .cart-suggestion-item div img {
  width: 23px;
}

.cart .cart-upsell-container {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.cart .cart-upsell-container .cart-upsell-title {
  font-size: 14px;
  font-weight: 700;
}

.cart .cart-upsell-container .cart-upsell-list {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 0;
}

.cart .cart-upsell-container .cart-upsell-list .cart-upsell {
  background-color: #fff;
  border-radius: 12px;
  padding: 18px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow: auto;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  flex-shrink: 0;
}

.cart .cart-upsell-container .cart-upsell-list .cart-upsell > img {
  width: 84px;
  max-width: 25%;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  aspect-ratio: 1;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.cart .cart-upsell-container .cart-upsell-list .cart-upsell .cart-upsell-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  text-align: left;
  align-self: flex-start;
}

.cart .cart-upsell-container .cart-upsell-list .cart-upsell .cart-upsell-details .cart-upsell-title {
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #202633;
}

.cart .cart-upsell-container .cart-upsell-list .cart-upsell .cart-upsell-details .cart-upsell-price {
  font-size: 14px;
  font-weight: 400;
}

.cart .cart-upsell-container .cart-upsell-list .cart-upsell .cart-upsell-add {
  height: 30px;
  border: 1px solid #1f4e96;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-end;
}

.cart .cart-upsell-container .cart-upsell-list .cart-upsell .cart-upsell-add:hover {
  background-color: #1f4e96;
  color: #fff;
}
.cart .cart-upsell-container .cart-upsell-list .cart-upsell-link {
  flex-shrink: 0;
  width: 100%;
}

.cart .cart-upsell-link:hover .cart-upsell .cart-upsell-title {
  text-decoration: underline;
  cursor: pointer;
}

.cart .cart-upsell-container .cart-upsell-list .cart-upsell .cart-upsell-promo {
  font-size: 12px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  opacity: 0.5;
}

.cart .cart-upsell-container .cart-upsell-list .cart-upsell .cart-upsell-promo img {
  width: 13px;
  position: relative;
  top: 2px;
}

.cart .cart-footer {
  flex-shrink: 0;
  padding: 20px;
  background-color: #fcfcfc;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart .cart-footer .cart-promo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart .cart-footer .cart-promo .cart-promo-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart .cart-footer .cart-promo input {
  flex-grow: 1;
  flex-shrink: 1;
  max-width: calc(100% - 80px);
  height: 40px;
  border-radius: 20px;
  border: 1px solid #767676;
  padding: 0 20px;
  color: #202633;
}

.cart .cart-footer .cart-promo .cart-promo-input button {
  width: 86px;
  min-width: 72px;
  height: 40px;
  border-radius: 20px;
  background-color: #1f4e96;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
}

.cart .cart-discounts {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.cart .cart-discounts .cart-discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 4px 0 10px;
  gap: 2px;
  border-radius: 15px;
  background-color: #e5e5e5;
  font-size: 12px;
}
.cart .cart-discounts .cart-discount.invalid {
  opacity: 0.5;
}

.cart .cart-discounts .cart-discount > img {
  width: 13px;
  margin-right: 3px;
}

.cart .cart-discounts .cart-discount button {
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 50%;
}
.cart .cart-discounts .cart-discount button img {
  width: 8px;
}

.cart .cart-footer .cart-totals {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart .cart-footer .cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart .cart-footer .cart-total > span:first-child {
  font-size: 14px;
  font-weight: 700;
}

.cart .cart-footer .cart-total .cart-total-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.cart .cart-footer .cart-total .cart-total-price .discounted-price,
.cart .cart-footer .cart-total.saved .cart-total-price {
  color: #e77e2b;
}
.cart .cart-footer .cart-total .cart-total-price .original-price {
  color: #202633;
}
.cart .cart-footer .cart-total .cart-total-price .original-price.line-through {
  opacity: 50%;
  text-decoration: line-through;
}

.cart .cart-footer .cart-checkout,
.cart .cart-footer .cart-empty-button {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  background-color: #1f4e96;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart .cart-footer .bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cart .cart-footer .bottom .item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart .cart-footer .bottom .item img {
  width: 10px;
}
.cart .cart-footer .bottom .item span {
  font-size: 12px;
  font-weight: 500;
}

.cart .cart-banner {
  padding: 8px 10px;
  background: #fff;
  text-align: center;
  line-height: 20px;
}
.cart .cart-banner p {
  margin-bottom: 0;
}
.cart .cart-banner a {
  text-decoration: underline;
}
.cart .cart-banner span.italic {
  font-style: italic;
}
.cart .cart-banner span.bold {
  font-weight: 900;
}

@media screen and (max-width: 500px) {
  .cart .cart-empty-message {
    padding: 30px 0;
  }
  .cart .cart-empty-suggestions .cart-suggestions-list .cart-suggestion-item {
    flex-basis: 85%;
    max-width: 230px;
  }
  .cart .cart-footer .bottom {
    gap: 8px;
  }

  .cart .cart-item .cart-item-controls {
    width: 70px;
  }
  .cart .cart-item .cart-item-price {
    flex-wrap: wrap;
    max-width: calc(100% - 80px);
  }

  .cart .cart-footer .bottom .item span {
    font-size: 10px;
    line-height: 13px;
  }
}

.search-modal-form_input-group input[type='text'] {
  background-color: white;
}
