/*=================================================
  *  BREAKPOINTS
  =================================================== */
/*=======================================
* MEDIA MAX
*=======================================*/
/*=======================================
* MEDIA MIN
*=======================================*/
/*=======================================
* MEDIA ONLY
*=======================================*/
/*=======================================
* MEDIA RANGE
*=======================================*/
.rt-mini-cart-slidepanel .rt-mini-cart-panel-count {
  font-size: 0.8em;
  font-weight: 400;
  color: var(--wp--preset--color--meta);
}
.rt-mini-cart-slidepanel .rt-slidepanel__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rt-mini-cart-slidepanel .widget_shopping_cart_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rt-mini-cart-slidepanel .woocommerce-mini-cart__empty-content {
  padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--40);
  margin: 0 !important;
  text-align: center;
  flex: 1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--20);
}
.rt-mini-cart-slidepanel .woocommerce-mini-cart__empty-message {
  margin: 0;
}
.rt-mini-cart-slidepanel .woocommerce-error,
.rt-mini-cart-slidepanel .woocommerce-message,
.rt-mini-cart-slidepanel .woocommerce-info {
  margin: var(--wp--preset--spacing--20) !important;
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30) !important;
  font-size: var(--wp--preset--font-size--small);
}
.rt-mini-cart-slidepanel .woocommerce-error::before,
.rt-mini-cart-slidepanel .woocommerce-message::before,
.rt-mini-cart-slidepanel .woocommerce-info::before {
  display: none !important;
}
.rt-mini-cart-slidepanel .woocommerce-error li,
.rt-mini-cart-slidepanel .woocommerce-message li,
.rt-mini-cart-slidepanel .woocommerce-info li {
  padding: 0 !important;
  margin: 0 !important;
}
.rt-mini-cart-slidepanel .woocommerce-error li::before,
.rt-mini-cart-slidepanel .woocommerce-message li::before,
.rt-mini-cart-slidepanel .woocommerce-info li::before {
  display: none !important;
}

.rt-mini-cart-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  margin: 0;
  list-style: none;
}
.rt-mini-cart-list::-webkit-scrollbar {
  width: 4px;
}
.rt-mini-cart-list::-webkit-scrollbar-thumb {
  background-color: var(--wp--preset--color--outline);
  border-radius: 4px;
}

.rt-mini-cart-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: var(--wp--preset--spacing--30);
  align-items: start;
  padding: var(--wp--preset--spacing--30) 0 !important;
  border-bottom: 1px dashed var(--wp--preset--color--outline);
}
.rt-mini-cart-item:last-child {
  border-bottom: none;
}

.rt-mini-cart-item__thumbnail {
  width: 70px;
  height: 70px;
  border-radius: var(--wp--custom--border-radius--medium, 8px);
  overflow: hidden;
  background-color: var(--wp--preset--color--outline);
}
.rt-mini-cart-item__thumbnail a,
.rt-mini-cart-item__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  text-decoration: none;
}
.rt-mini-cart-item__thumbnail img {
  float: none !important;
  margin: 0 !important;
  position: static !important;
  box-shadow: none !important;
}

.rt-mini-cart-item__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rt-mini-cart-item__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.rt-mini-cart-item__title {
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: var(--wp--custom--font-weight--medium);
  color: var(--wp--preset--color--heading);
  line-height: 1.4;
}
.rt-mini-cart-item__title a {
  color: inherit;
  text-decoration: none;
}
.rt-mini-cart-item__title a:hover {
  color: var(--wp--preset--color--text-link-active);
}

.rt-mini-cart-item__subtotal {
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: var(--wp--custom--font-weight--medium);
  color: var(--wp--preset--color--heading);
  text-align: right;
  white-space: nowrap;
}

.rt-mini-cart-item__price {
  font-size: var(--wp--preset--font-size--x-small);
  color: var(--wp--preset--color--meta);
}
.rt-mini-cart-item__price del {
  opacity: 0.65;
  font-size: var(--wp--preset--font-size--xx-small);
}
.rt-mini-cart-item__price ins {
  text-decoration: none;
  color: var(--wp--preset--color--body);
}

.rt-mini-cart-item__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.rt-mini-cart-item__remove a.remove {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 32px !important;
  color: var(--wp--preset--color--meta) !important;
  text-decoration: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  position: static !important;
  line-height: 1 !important;
  font-size: 0 !important;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}
.rt-mini-cart-item__remove a.remove:hover {
  transform: scale(1.15) !important;
  color: currentColor !important;
  background-color: transparent !important;
}
.rt-mini-cart-item__remove a.remove:active {
  transform: scale(0.95);
  color: currentColor !important;
}
.rt-mini-cart-item__remove a.remove svg {
  pointer-events: none;
}

.woocommerce-mini-cart__footer {
  flex-shrink: 0;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  margin-top: auto;
  border-top: 1px solid var(--wp--preset--color--outline);
}

.woocommerce-mini-cart__total.total {
  font-size: var(--wp--preset--font-size--small);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0 !important;
  margin-bottom: var(--wp--preset--spacing--30) !important;
  border: none !important;
  padding: 0 !important;
}
.woocommerce-mini-cart__total.total strong {
  font-weight: var(--wp--custom--font-weight--medium);
  color: var(--wp--preset--color--heading);
}
.woocommerce-mini-cart__total.total .woocommerce-Price-amount {
  font-weight: var(--wp--custom--font-weight--bold);
  color: var(--wp--preset--color--heading);
}

.woocommerce-mini-cart__buttons.buttons {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
  margin: 0;
}
.woocommerce-mini-cart__buttons.buttons::before, .woocommerce-mini-cart__buttons.buttons::after {
  display: none;
}
.woocommerce-mini-cart__buttons.buttons a {
  text-align: center;
  padding: 15px;
}
.woocommerce-mini-cart__buttons.buttons a:not(.checkout) {
  background-color: transparent !important;
  color: var(--wp--preset--color--body) !important;
  border: 1px solid var(--wp--preset--color--outline) !important;
}
.woocommerce-mini-cart__buttons.buttons a.checkout {
  background-color: var(--wp--custom--button-action--background) !important;
  color: var(--wp--custom--button-action--color) !important;
  border: none !important;
}

.rt-widget .rt-mini-cart-list {
  padding: 0;
}
.rt-widget .woocommerce-mini-cart__footer {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}