:root {
  --acd-accent: #2fc7a4;
  --acd-accent-dark: #1a1f2c;
  --acd-border: #e5e7eb;
  --acd-text: #1f2430;
  --acd-muted: #6b7280;
  --acd-bg: #ffffff;
  --acd-soft: #f6f7f9;
}

body.acd-cart-open {
  overflow: hidden;
}

.acd-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 9998;
}

.acd-cart-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.acd-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 430px);
  height: 100vh;
  background: var(--acd-bg);
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 9999;
  box-shadow: -12px 0 40px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
}

.acd-cart-drawer.is-active {
  transform: translateX(0);
}

.acd-cart-drawer__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.acd-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  border-bottom: 1px solid var(--acd-border);
}

.acd-cart-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--acd-text);
}

.acd-cart-close {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #6b7280;
  border-radius: 0;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.acd-cart-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100vh - 73px);
}

.acd-progress-card {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--acd-border);
}

.acd-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e4e7ec;
  position: relative;
  overflow: hidden;
}

.acd-track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--acd-accent);
  border-radius: inherit;
}

.acd-bulk-track .acd-track-fill {
  background: #151922;
}

.acd-free-shipping-text,
.acd-bulk-message {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--acd-muted);
  text-align: center;
}

.acd-free-shipping-text strong,
.acd-bulk-message strong {
  color: var(--acd-text);
}

.acd-free-shipping-text.is-unlocked,
.acd-bulk-message__active,
.acd-bulk-message strong:last-child {
  color: var(--acd-accent);
  font-weight: 700;
}

.acd-free-shipping-text.is-unlocked {
  font-weight: 700;
}

.acd-bulk-card {
  margin: 16px 18px 12px;
  padding: 16px 16px 14px;
  border: 1px solid #d5dae1;
  border-radius: 16px;
}

.acd-bulk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 13px;
  color: var(--acd-text);
}

.acd-bulk-head strong {
  font-size: 13px;
  font-weight: 700;
}

.acd-bulk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 2px;
  background: #eef1f4;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.acd-bulk-track {
  margin-bottom: 18px;
}

.acd-tier-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.acd-tier-item {
  text-align: center;
  color: var(--acd-muted);
  font-size: 12px;
}

.acd-tier-dot {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 2px solid #cfd5dc;
  background: #fff;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.acd-tier-item.is-active .acd-tier-dot {
  border-color: var(--acd-accent);
  background: var(--acd-accent);
}

.acd-tier-item.is-active .acd-tier-discount,
.acd-tier-item.is-active .acd-tier-qty {
  color: var(--acd-text);
}

.acd-tier-discount,
.acd-tier-qty {
  display: block;
}

.acd-tier-discount {
  font-size: 13px;
  font-weight: 700;
}

.acd-tier-qty {
  margin-top: 3px;
}

.acd-bulk-message {
  margin-top: 14px;
  font-size: 15px;
}

.acd-bulk-message__active {
  margin-right: 4px;
}

.acd-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 18px;
}

.acd-cart-item {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--acd-border);
}

.acd-cart-item__top {
  display: grid;
  grid-template-columns: 18px 1fr 56px;
  gap: 12px;
  align-items: start;
}

.acd-cart-item__details {
  min-width: 0;
}

.acd-cart-item__image {
  width: 56px;
  height: 56px;
  background: #f5f6f8;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.acd-cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.acd-cart-item__title {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.acd-cart-item__title a {
  color: var(--acd-text);
  text-decoration: none;
}

.acd-cart-item__price,
.acd-cart-item__content .variation {
  color: var(--acd-text);
  font-size: 14px;
  font-weight: 700;
}

.acd-cart-item__content .variation {
  margin: 6px 0 0;
}

.acd-cart-item__content .variation dd,
.acd-cart-item__content .variation dt {
  font-size: 12px;
}

.acd-remove-item {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #8a94a4;
  padding: 2px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.acd-remove-item:hover {
  color: var(--acd-text);
}

.acd-qty-wrap {
  margin-top: 14px;
  display: inline-grid;
  grid-template-columns: 48px 48px 48px;
  align-items: center;
}

.acd-qty-btn,
.acd-qty-input {
  height: 34px;
  border: 1px solid #cfd5dc;
  background: #fff;
  text-align: center;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.acd-qty-btn {
  cursor: pointer;
  color: #6b7280;
}

.acd-qty-btn[data-direction="plus"] {
  color: #1d4ed8;
  border-color: #2563eb;
}

.acd-qty-input {
  font-size: 18px;
  font-weight: 600;
  color: var(--acd-text);
  appearance: textfield;
  -moz-appearance: textfield;
}

.acd-qty-input::-webkit-outer-spin-button,
.acd-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.acd-cart-footer {
  padding: 22px 18px 18px;
  border-top: 1px solid var(--acd-border);
  background: #fff;
}

.acd-cart-subtotal,
.acd-cart-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.acd-cart-subtotal {
  font-size: 15px;
  color: var(--acd-text);
  margin-bottom: 18px;
}

.acd-cart-subtotal strong {
  font-size: 18px;
}

.acd-cart-fees {
  margin-bottom: 14px;
}

.acd-cart-fee-row {
  font-size: 13px;
  color: var(--acd-muted);
  margin-bottom: 6px;
}

.acd-checkout-btn.button,
.acd-checkout-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  border: 0;
  background: var(--acd-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}

.acd-checkout-btn::before {
  content: "\1F6CD";
  font-size: 16px;
  margin-right: 8px;
}

.acd-view-cart {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: var(--acd-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.acd-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--acd-muted);
  text-align: center;
}

.acd-floating-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9997;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--acd-accent-dark);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.acd-floating-cart__count {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--acd-accent-dark);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .acd-cart-drawer {
    width: 100%;
  }

  .acd-cart-header,
  .acd-progress-card,
  .acd-cart-footer,
  .acd-cart-items {
    padding-left: 14px;
    padding-right: 14px;
  }

  .acd-bulk-card {
    margin-left: 14px;
    margin-right: 14px;
  }
}


.acd-cart-toggle--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  line-height: 1;
}

.acd-cart-toggle--icon .elementor-button-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.acd-cart-toggle--icon .e-font-icon-svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.acd-cart-toggle--icon .elementor-button-icon-qty {
  position: absolute;
  top: -0.6em;
  right: -0.7em;
  min-width: 1.35em;
  height: 1.35em;
  padding: 0 0.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--acd-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.acd-cart-toggle--icon .elementor-screen-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
