/* cart */

#cart {
  padding: 34px 0 89px 0;
  letter-spacing: 0.5px;
  font-family: "Calibre";
}

#cart header {
  text-align: center;
  padding-bottom: 55px;
}

#cart header h4 {
  margin-bottom: 21px;
}

#cart a {
  color: #000;
}

#cart .title {
  border-bottom: 1px solid #ccc;
  padding: 0 0 8px 0;
  margin: 0 0 34px 0;
  display: flex;
  align-items: flex-end;
}

#cart .title h4 {
  font-weight: 300;
  display: inline-block;
  font-size: 1.25rem;
  margin: 0;
}

#cart .title span {
  font-family: "Calibre";
  font-size: 0.875rem;
  display: inline-block;
  margin-left: auto;
}

#cart .title span.cart-item-count {
  padding: 0 2px;
  font-weight: bold;
}

#cart #cart-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 250px;
  gap: 34px;
}

#cart #cart-wrap .right-side {
  position: sticky;
  top: 68px;
  align-self: start;
}

#cart .flex-item.bottom .bg {
  background: #ccc;
  height: 1px;
}

#cart #cart-wrap a {
  color: #000;
}

#cart .item {
  width: auto;
  margin: 0 0 34px 0;
  display: grid;
  grid-template-columns: 190px auto;
  gap: 17px;
}

#cart .item p {
  margin-bottom: 7px;
}

#cart .item:last-child {
  margin-bottom: 0;
}

#cart .item .image img {
  display: block;
  width: 100%;
  height: auto;
}

#cart .item span.on-sale {
  text-decoration: line-through;
}

#cart .item span.sale-price {
  color: #9b4439;
  padding-left: 0.5rem;
  font-weight: 550;
}

#cart .item span.sale-percentage {
  padding-left: 0.5rem;
  text-transform: uppercase;
  display: none;
}

#cart .item .select-sizing {
  display: flex;
  margin-bottom: 16px;
}

#cart .item .select-sizing h6 {
  font-size: 1rem;
}

#cart .item .select-sizing p.price {
  margin: 0;
}

#cart .item .select-sizing .price:before {
  content: "-";
  padding: 0 8px;
}

#cart .item .prod-title {
  max-width: 350px;
  font-size: var(--font-size-21);
}

#cart .item .description .links a {
  text-transform: uppercase;
  font-size: 13px;
}

#cart .item .item-coupon-msg {
  padding: 0 0 16px 0;
  display: block;
}

#cart .item .item-coupon-msg .na {
  color: #9f1f00;
  text-transform: uppercase;
  font-weight: bold;
}

#cart .totals {
  margin: 0 0 34px 0;
}

#cart .totals p {
  margin: 0 0 8px 0;
  display: flex;
  justify-content: space-between;
}

#cart .totals p.total {
  font-size: 1.125rem;
  margin-top: 26px;
  text-transform: uppercase;
}

#cart .totals label {
  padding: 0 6px 0 0;
}

.cart .checkout-button a {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  color: #fff !important;
  text-transform: uppercase;
  text-align: center;
  font-size: 1rem;
  height: 45px;
  border-radius: 6px;
}

.cart .checkout-button a:hover {
  background: #555;
}

#cart .help {
  margin: 0;
  font-size: 1rem;
  text-align: center;
  margin: 0 0 48px 0;
}

#cart .help h5 {
  font-size: var(--font-size-21);
  font-weight: 300;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  text-wrap: balance;
}

#cart .help p {
  margin: 0 0 16px 0;
  font-size: var(--font-size-17);
}

#cart .help .policy a {
  font-weight: 550;
  border-bottom: 1px solid #000;
}

#cart .updater p.errormsg {
  background: #a24b3c;
  padding: 0.5rem 16px;
  color: #fff;
}

#cart form p {
  position: relative;
  margin: 0 0 16px 0;
}

#cart form #update {
  display: inline-block;
  background: #000;
  color: #fff !important;
  padding: 8px 34px;
  text-transform: uppercase;
  border-radius: 6px;
}

#cart form #update .icon-loading {
  --icon-color: #fff;
  display: block;
  animation: spin 1s linear infinite;
}

#cart form #update:hover {
  background: #555;
}

#cart .empty-cart {
  padding: 0;
}

#cart .empty-cart h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  font-family: "Calibre";
}

#cart #discounts {
  margin: 0 0 21px 0;
  position: relative;
}

#cart .totals p:has(#cart-discount[price="0.00"]) {
  display: none;
}

#cart #discounts .coupon-msg {
  padding: 8px 0;
  clear: both;
  font-size: 0.875rem;
}

#discounts .coupon-msg.not-found {
  color: red;
}

#cart #discounts p {
  margin: 0;
}

#cart #discounts input[type="text"] {
  border: 1px solid #ddd;
  padding: 0.25rem 0.5rem;
  width: 100%;
  background: rgb(242, 238, 232);
  background: var(--content-bg);
  height: 45px;
}

#cart #discounts input[type="button"] {
  position: absolute;
  right: 8px;
  top: 7px;
  border: 0;
  font-size: 13px;
  height: 30px;
  background: var(--content-bg);
  cursor: pointer;
  width: auto;
}

#cart #discounts input[type="button"]:hover {
  text-decoration: underline;
}

#cart-wrap .removed-items {
  background: rgb(239, 237, 233);
  padding: 16px;
  border-radius: 6px;
}

#cart-wrap .removed-items h4 {
  font-size: var(--font-size-21);
  margin-bottom: 16px;
}

#cart-wrap .removed-items .item {
  overflow: hidden;
  transform-origin: top center;
}

#cart-wrap .removed-items .item.is-removing {
  opacity: 0;
  transform: scale(0.95);
  height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#cart-sidebar-container {
  background: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  z-index: 5;

  display: none;
  justify-content: flex-end;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#cart-sidebar-container.visible {
  display: flex;
}

body.admin-bar #cart-sidebar-container {
  top: 40px;
  height: calc(100vh - 40px);
}

#cart-sidebar-container .cart-content {
  width: 50%;
  max-width: 900px;
  background: #fff;
  padding: 32px;

  display: grid;
  grid-template-rows: 50px auto;
}

#cart-sidebar-container .cart-content #cart-wrap {
  display: grid;
  grid-template-rows: auto 200px;
  margin-top: 16px;
}

#cart-sidebar-container .title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#cart-sidebar-container .title svg {
  display: block;
}

#cart-sidebar-container .title h4 {
  text-transform: uppercase;
  font-size: 16px;
  padding-left: 8px;
}

#cart-sidebar-container .title h4 span {
  letter-spacing: 3px;
  padding-left: 6px;
}

#cart-sidebar-container .title .close-cart-icon {
  margin-left: auto;
  height: 20px !important;
  cursor: pointer;
}

#cart-sidebar-container.visible .cart-content {
  animation: cartSlideInFromRight 0.4s cubic-bezier(0.4, 0, 0.22, 1);
}

#cart-sidebar-container.removing .cart-content {
  animation: cartSlideOutToRight 0.4s cubic-bezier(0.4, 0, 0.22, 1) forwards;
}

@keyframes cartSlideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0.2;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes cartSlideOutToRight {
  from {
    transform: translateX(0%);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0.5;
  }
}

#cart-sidebar-container .item {
  display: grid;
  grid-template-columns: 100px auto 50px;
  gap: 16px;
  margin: 0 0 16px 0;
}

#cart-sidebar-container .image {
  width: 100px;
}

#cart-sidebar-container .image img {
  width: 100px;
}

#cart-sidebar-container .actions {
  display: flex;
  gap: 8px;
  justify-content: right;
}

#cart-sidebar-container .cart-content .cart-footer {
  align-self: flex-end;
}

#cart-sidebar-container .totals {
  border-top: 1px solid #ccc;
  padding: 16px 0 32px 0;

  display: flex;
  justify-content: space-between;

  font-family: "Calibre";
  font-size: 20px;
}

#cart-sidebar-container .totals label {
  text-transform: uppercase;
}

@media only screen and (min-width: 320px) and (max-width: 900px) {
  #cart .item .link {
    display: block;
    margin: 0 0 0.5rem 0;
  }
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  #cart #cart-wrap {
    grid-template-columns: 1fr;
  }

  #cart #cart-wrap .right-side {
    position: static;
    top: auto;
  }

  #cart #discounts {
    grid-template-columns: 1fr;
  }
}

@media only screen and (min-width: 320px) and (max-width: 743px) {
  #cart .item {
    grid-template-columns: 1fr;
  }

  #cart .item .qty {
    padding: 0 0 0 18%;
  }

  #cart.checkout #go-checkout {
    width: 100%;
  }
}

@media print {
  #cart-wrap #discounts,
  #cart-wrap .checkout-button {
    display: none;
  }

  #cart-items .item .links {
    display: none;
  }
}
