.wpf-cart-drawer {
  --wpf-cart-bg: #fff;
  --wpf-cart-text: #222;
  --wpf-cart-muted: #6d6d6d;
  --wpf-cart-border: #e4e4e4;
  --wpf-cart-overlay: rgba(0, 0, 0, 0.48);
  --wpf-cart-accent: #ce126e;
  --wpf-cart-success: #116a14;
  --wpf-cart-button-bg: #222;
  --wpf-cart-button-text: #fff;
  --wpf-cart-button-hover: #ce126e;
  --wpf-cart-button-radius: 8px;
  --wpf-cart-image-radius: 10px;
  --wpf-cart-duration: 0.4s;
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  color: var(--wpf-cart-text);
  font-family: Nunito, Arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--wpf-cart-duration) ease, visibility var(--wpf-cart-duration) ease;
}

.wpf-cart-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wpf-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--wpf-cart-overlay);
  cursor: default;
}

.wpf-cart-drawer__panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100vw, 490px);
  height: 100%;
  max-height: 100dvh;
  margin-left: auto;
  flex-direction: column;
  overflow: hidden;
  color: var(--wpf-cart-text);
  background: var(--wpf-cart-bg);
  box-shadow: -20px 20px 30px rgba(0, 0, 0, 0.1);
  transform: translate3d(100%, 0, 0);
  transition: transform var(--wpf-cart-duration) cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wpf-cart-drawer.is-open .wpf-cart-drawer__panel {
  transform: translate3d(0, 0, 0);
}

.wpf-cart-drawer__header {
  display: flex;
  min-height: 78px;
  padding: 20px 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--wpf-cart-border);
}

.wpf-cart-drawer__header h2 {
  margin: 0;
  color: inherit;
  font: 700 26px/1.3 Nunito, Arial, sans-serif;
  letter-spacing: -0.5px;
}

.wpf-cart-drawer button.wpf-cart-drawer__close {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  flex: 0 0 38px;
  border: 0;
  border-radius: 6px;
  color: var(--wpf-cart-text) !important;
  background: transparent !important;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.wpf-cart-drawer__close span::before,
.wpf-cart-drawer__close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  content: "";
  background: currentColor;
}

.wpf-cart-drawer__close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.wpf-cart-drawer__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.wpf-cart-drawer button.wpf-cart-drawer__close:hover,
.wpf-cart-drawer button.wpf-cart-drawer__close:focus-visible {
  color: var(--wpf-cart-bg) !important;
  background: var(--wpf-cart-text) !important;
}

.wpf-cart-drawer__content {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.wpf-cart-drawer__empty {
  display: flex;
  min-height: 100%;
  padding: 58px 28px;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wpf-cart-drawer__empty[hidden],
.wpf-cart-drawer__filled[hidden],
.wpf-cart-drawer__footer[hidden],
.wpf-cart-drawer__shipping[hidden] {
  display: none !important;
}

.wpf-cart-drawer__empty-icon {
  display: block;
  width: 66px;
  height: 66px;
  margin-bottom: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wpf-cart-drawer .wpf-cart-drawer__continue,
.wpf-cart-drawer .wpf-cart-drawer__checkout {
  display: flex;
  min-height: 56px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wpf-cart-button-bg);
  border-radius: var(--wpf-cart-button-radius);
  color: var(--wpf-cart-button-text);
  background: var(--wpf-cart-button-bg);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.wpf-cart-drawer__continue {
  max-width: 295px;
  margin-bottom: 37px;
}

.wpf-cart-drawer .wpf-cart-drawer__continue:hover,
.wpf-cart-drawer .wpf-cart-drawer__continue:focus-visible,
.wpf-cart-drawer .wpf-cart-drawer__checkout:hover,
.wpf-cart-drawer .wpf-cart-drawer__checkout:focus-visible {
  border-color: var(--wpf-cart-button-hover);
  color: var(--wpf-cart-button-text);
  background: var(--wpf-cart-button-hover);
}

.wpf-cart-drawer__account-title {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
}

.wpf-cart-drawer__account-copy {
  margin: 0;
  color: var(--wpf-cart-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.wpf-cart-drawer__account-copy a,
.wpf-cart-drawer .wpf-cart-drawer__view-cart {
  color: var(--wpf-cart-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wpf-cart-drawer__shipping {
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--wpf-cart-border);
  color: var(--wpf-cart-muted);
  font-size: 14px;
  line-height: 1.45;
}

.wpf-cart-drawer__progress {
  position: relative;
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--wpf-cart-border);
}

.wpf-cart-drawer__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 0;
  border-radius: inherit;
  background: var(--wpf-cart-success);
  transition: width 0.3s ease;
}

.wpf-cart-drawer__items {
  display: block;
}

.wpf-cart-drawer__item {
  position: relative;
  display: grid;
  grid-template-columns: 93px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 26px 24px;
  color: var(--wpf-cart-text);
  border-bottom: 1px solid var(--wpf-cart-border);
}

.wpf-cart-drawer__media {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--wpf-cart-border);
  border-radius: var(--wpf-cart-image-radius);
  background: #f8f8f8;
  aspect-ratio: 1 / 1;
}

.wpf-cart-drawer__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.wpf-cart-drawer__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wpf-cart-drawer__item-body {
  min-width: 0;
}

.wpf-cart-drawer__item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wpf-cart-drawer__item-title {
  min-width: 0;
  margin: 0;
  color: inherit;
  font: 700 16px/1.3 Nunito, Arial, sans-serif;
}

.wpf-cart-drawer__item-title a {
  color: inherit;
  text-decoration: none;
}

.wpf-cart-drawer__item-title a:hover,
.wpf-cart-drawer__item-title a:focus-visible {
  color: var(--wpf-cart-accent);
}

.wpf-cart-drawer__item-price {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}

.wpf-cart-drawer__variation {
  margin-top: 7px;
  color: var(--wpf-cart-muted);
  font-size: 12px;
  line-height: 1.4;
}

.wpf-cart-drawer__variation dl,
.wpf-cart-drawer__variation p {
  margin: 0;
}

.wpf-cart-drawer__variation dt,
.wpf-cart-drawer__variation dd {
  display: inline;
  margin: 0 4px 0 0;
}

.wpf-cart-drawer__item-actions {
  display: flex;
  margin-top: 17px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wpf-cart-drawer__quantity {
  display: grid;
  width: 132px;
  height: 42px;
  grid-template-columns: 40px minmax(42px, 1fr) 40px;
  overflow: hidden;
  border: 1px solid var(--wpf-cart-border);
  border-radius: var(--wpf-cart-button-radius);
}

.wpf-cart-drawer__quantity button,
.wpf-cart-drawer__quantity input {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--wpf-cart-text);
  background: transparent;
  text-align: center;
}

.wpf-cart-drawer__quantity button {
  font-size: 19px;
  cursor: pointer;
}

.wpf-cart-drawer__quantity button:hover:not(:disabled),
.wpf-cart-drawer__quantity button:focus-visible {
  color: var(--wpf-cart-bg);
  background: var(--wpf-cart-text);
}

.wpf-cart-drawer__quantity button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wpf-cart-drawer__quantity input {
  -moz-appearance: textfield;
  appearance: textfield;
  font-size: 14px;
  font-weight: 700;
  border-right: 1px solid var(--wpf-cart-border);
  border-left: 1px solid var(--wpf-cart-border);
  border-radius: 0;
}

.wpf-cart-drawer__quantity input::-webkit-outer-spin-button,
.wpf-cart-drawer__quantity input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.wpf-cart-drawer button.wpf-cart-drawer__remove {
  padding: 6px 0;
  border: 0;
  color: #b42318 !important;
  background: transparent !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.wpf-cart-drawer__remove:hover,
.wpf-cart-drawer__remove:focus-visible {
  transform: scale(1.04);
}

.wpf-cart-drawer__footer {
  padding: 18px;
  flex: 0 0 auto;
  border-top: 1px solid var(--wpf-cart-border);
  background: var(--wpf-cart-bg);
}

.wpf-cart-drawer__total {
  display: flex;
  margin-bottom: 6px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 20px;
  line-height: 1.35;
}

.wpf-cart-drawer__total span {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wpf-cart-drawer__total strong {
  font-weight: 800;
}

.wpf-cart-drawer__footer > p {
  margin: 0 0 14px;
  color: var(--wpf-cart-muted);
  font-size: 12px;
  line-height: 1.5;
}

.wpf-cart-drawer__view-cart {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.wpf-cart-drawer[aria-busy="true"] .wpf-cart-drawer__content,
.wpf-cart-drawer[aria-busy="true"] .wpf-cart-drawer__footer {
  opacity: 0.58;
  pointer-events: none;
}

.wpf-cart-drawer :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wpf-cart-accent) 65%, white);
  outline-offset: 3px;
}

.wpf-cart-drawer-lock {
  overflow: hidden !important;
}

body.wpf-cart-drawer-enabled .wpf-featured .added_to_cart.wc-forward {
  display: none !important;
}

.wpf-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 575px) {
  .wpf-cart-drawer__header {
    min-height: 68px;
    padding: 15px 18px;
  }

  .wpf-cart-drawer__header h2 {
    font-size: 23px;
  }

  .wpf-cart-drawer__shipping {
    padding-right: 18px;
    padding-left: 18px;
  }

  .wpf-cart-drawer__item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
    padding: 20px 18px;
  }

  .wpf-cart-drawer__item-top {
    display: block;
  }

  .wpf-cart-drawer__item-price {
    display: block;
    margin-top: 5px;
  }

  .wpf-cart-drawer__quantity {
    width: 122px;
    grid-template-columns: 36px minmax(42px, 1fr) 36px;
  }

  .wpf-cart-drawer__footer {
    padding: 15px;
  }

  .wpf-cart-drawer__total {
    font-size: 17px;
  }
}

@media (max-height: 499px) {
  .wpf-cart-drawer__header {
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .wpf-cart-drawer__empty {
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wpf-cart-drawer,
  .wpf-cart-drawer__panel,
  .wpf-cart-drawer__progress span,
  .wpf-cart-drawer__close,
  .wpf-cart-drawer__continue,
  .wpf-cart-drawer__checkout,
  .wpf-cart-drawer__remove {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
