.cs-flycart[hidden] {
  display: none !important;
}

.cs-flycart.is-open {
  display: block;
}

.cs-flycart {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.cs-flycart__backdrop {
  position: absolute;
  inset: 0;
  background: #00000033;
}

.cs-flycart__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  overflow: auto;
  background: var(--white);
  padding: 6px 24px 24px 24px;
  width: 500px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.cs-flycart__close {
  background: transparent;
  padding: 0 !important;
  margin-top: 16px;
  font-size: 20px;
  display: flex;
  justify-content: flex-end;
}

.cs-flycart__close:hover {
  background-color: unset !important;
}

.cs-flycart__items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-flycart__item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: solid 1px var(--black--03);
  justify-content: space-between;
  align-items: center;
}

.cs-flycart__meta {
  width: 72%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-flycart__remove {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  color: transparent;
}
.cs-flycart__remove::before {
  content: "" !important;
  width: 20px;
  height: 20px;
  display: block;
  background: var(--cs-cart-icon) center / contain no-repeat;
  opacity: 0.75;
}

.cs-flycart__remove:hover {
  background-color: unset !important;
  color: transparent !important;
  opacity: 1;
}

.cs-flycart {
  --cs-cart-icon: url("/wp-content/uploads/trash.svg");
}

.cs-flycart__totals {
  text-align: center;
}

.cs-flycart__footer {
  display: flex;
  gap: 16px;
}

.cs-flycart__empty,
.cs-cart-empty {
  display: flex;
  flex-direction: column;
  max-width: 450px;
  margin: auto;
  height: 90vh;
  align-items: center;
  justify-content: center;
}

.cs-flycart__empty-title,
.cs-cart-empty__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  color: var(--main--03);
  text-align: center;
}

.cs-flycart__empty-subtitle,
.cs-cart-empty__subtitle {
  font-size: var(--font-size-20);
  line-height: var(--line-height-20);
  text-align: center;
  max-width: 300px;
  padding-top: 16px !important;
  padding-bottom: 48px !important;
}

.cs-flycart__thumb img {
  width: 80px !important;
  height: 80px !important;
  border: solid 1px var(--black--02);
  border-radius: var(--b--xsm);
  object-fit: cover;
  object-fit: contain;
  padding: 8px;
}

a.cs-flycart__name {
  font-size: var(--font-size-14);
  line-height: var(--line-height-14);
  font-weight: var(--font-weight-400);
}

.cs-flycart__cats {
  font-size: var(--font-size-13);
  line-height: var(--line-height-13);
  font-weight: var(--font-weight-300);
  color: var(--black--05);
}

.cs-flycart__line {
  font-size: var(--font-size-13);
  line-height: var(--line-height-13);
  font-weight: var(--font-weight-300);
  height: 24px;
  display: flex;
  gap: 4px;
  align-items: flex-end;
}

span.cs-flycart__qty {
  color: var(--black);
}

.cs-flycart__footer-wrap:empty {
  display: none;
}
.cs-flycart__totals-wrap:empty {
  display: none;
}
.cs-flycart__upsell-wrap:empty {
  display: none;
}

/* ==========================================================
   MOBILE 
   ========================================================== */

@media (max-width: 768px) {
  .cs-flycart__panel {
    width: min(420px, 90vw);
    background: var(--white);
  }

  .cs-flycart__footer {
    flex-direction: column;
  }
}
