.ddv-shop-ui {
  --ddv-primary: #1d1d1d;
  --ddv-text: #202020;
  --ddv-muted: #6d6d6d;
  --ddv-border: #e7e5e2;
  --ddv-background: #fff;
  --ddv-overlay: rgb(0 0 0 / 46%);
  --ddv-radius: 8px;
  --ddv-drawer-width: 860px;
  color: var(--ddv-text);
  font: inherit;
  font-size: .875rem;
  line-height: 1.4;
}
.ddv-shop-ui [hidden] { display: none !important; }
.ddv-shop-ui, .ddv-shop-ui * { box-sizing: border-box; }
.ddv-shop-ui-enabled .kadence-header-cart .sub-menu { display: none !important; }
.ddv-shop-ui-enabled:not(.ddv-cart-ready) .kadence-header-cart .header-cart-total { visibility: hidden; }
body.ddv-cart-open { overflow: hidden !important; }
.ddv-shop-ui button, .ddv-shop-ui input { font: inherit; }
.ddv-shop-ui button { cursor: pointer; }
.ddv-shop-ui a { color: inherit; }
.ddv-shop-ui img { display: block; max-width: 100%; }
.ddv-cart-overlay { position: fixed; inset: 0; z-index: 99998; background: var(--ddv-overlay); animation: ddv-fade-in 180ms ease-out; }
.ddv-cart-drawer {
  position: fixed; z-index: 99999; inset: 0 0 0 auto; width: min(100vw, var(--ddv-drawer-width));
  max-width: 100vw; max-height: 100dvh; display: flex; flex-direction: column;
  background: var(--ddv-background); box-shadow: -8px 0 36px rgb(0 0 0 / 12%);
  animation: ddv-slide-in 220ms ease-out; outline: 0;
}
.ddv-cart-header { display: flex; justify-content: space-between; align-items: center; flex: none; gap: 12px; border-bottom: 1px solid var(--ddv-border); padding: 18px 22px; }
.ddv-is-loading .ddv-cart-header::after { content: ''; width: 15px; height: 15px; flex: none; border: 2px solid var(--ddv-border); border-top-color: var(--ddv-primary); border-radius: 50%; animation: ddv-spin 700ms linear infinite; }
.ddv-cart-header h2 { margin: 0; font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }
.ddv-cart-header-count { color: var(--ddv-muted); font-size: .8125rem; font-weight: 400; margin-left: 5px; }
.ddv-cart-close { border: 0; background: transparent; color: var(--ddv-text); min-width: 44px; min-height: 44px; font-size: 2rem !important; line-height: 1; }
.ddv-cart-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; min-height: 0; padding: 14px 20px; }
.ddv-cart-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 290px); gap: 18px; align-items: start; }
.ddv-cart-content.ddv-no-upsells { grid-template-columns: minmax(0, 1fr); }
.ddv-cart-primary { min-width: 0; }
.ddv-cart-notices { flex: none; margin: 10px 22px 0; padding: 10px 12px; border-radius: var(--ddv-radius); background: #f3f3f3; font-size: .9rem; }
.ddv-notice-error { background: #fff0ef; color: #9e3025; }
.ddv-cart-loading, .ddv-cart-empty { color: var(--ddv-muted); text-align: center; padding: 45px 10px; }
.ddv-cart-empty p { margin: 0 0 20px; font-size: 1.05rem; }
.ddv-cart-shop, .ddv-checkout-button { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; text-decoration: none !important; border-radius: var(--ddv-radius); background: var(--ddv-primary); color: white !important; font-size: .875rem; font-weight: 600; text-align: center; }
.ddv-cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--ddv-border); padding: 12px 0; min-width: 0; }
.ddv-cart-item--no-image { grid-template-columns: minmax(0, 1fr); }
.ddv-cart-item--no-image .ddv-cart-item-main { grid-column: 1 / -1; }
.ddv-cart-item.ddv-just-added { animation: ddv-item-added 850ms ease-out; }
.ddv-cart-item-image-link { display: block; width: 72px; height: 84px; overflow: hidden; border-radius: var(--ddv-radius); background: #f6f6f6; }
.ddv-cart-item-image { width: 100%; height: 100%; object-fit: cover; }
.ddv-cart-item-main { min-width: 0; }
.ddv-cart-item-name { display: block; font-family: var(--global-heading-font-family, inherit); font-size: .8125rem; font-weight: 600; text-decoration: none !important; line-height: 1.3; overflow-wrap: anywhere; }
.ddv-cart-item-meta { display: flex; flex-direction: column; gap: 2px; color: var(--ddv-muted); font-size: .75rem; margin-top: 3px; overflow-wrap: anywhere; }
.ddv-cart-item-price { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-top: 4px; font-size: .8125rem; }
.ddv-cart-item-price del, .ddv-cart-item-price small { color: var(--ddv-muted); }
.ddv-cart-item-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 7px; }
.ddv-quantity { display: inline-flex; align-items: center; border: 1px solid var(--ddv-border); border-radius: var(--ddv-radius); }
.ddv-quantity button { background: transparent; border: 0; min-width: 44px; min-height: 44px; color: var(--ddv-text); }
.ddv-quantity span { min-width: 28px; text-align: center; }
.ddv-quantity button:disabled { opacity: .35; cursor: not-allowed; }
.ddv-cart-remove { background: transparent; border: 0; color: var(--ddv-muted); text-decoration: underline; min-height: 44px; font-size: .75rem !important; }
.ddv-free-shipping { flex: none; max-height: 30dvh; overflow-y: auto; margin: 12px 20px 0; padding: 14px; background: #f8f7f4; border-radius: var(--ddv-radius); }
.ddv-free-shipping-title { display: block; margin-bottom: 5px; font-size: .875rem; }
.ddv-free-shipping p { margin: 0 0 10px; font-size: .8125rem; }
.ddv-free-shipping-track { height: 6px; border-radius: 99px; background: #e5e2dc; overflow: hidden; }
.ddv-free-shipping-track span { display: block; height: 100%; width: 0; background: var(--ddv-primary); transition: width 220ms ease; }
.ddv-cart-upsells { min-width: 0; position: sticky; top: 0; margin: 0; padding: 0 7px 0 18px; border-left: 1px solid var(--ddv-border); max-height: min(620px, 62dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ddv-cart-upsells h3 { margin: 0 0 8px; font-size: .875rem; }
.ddv-cart-upsell-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.ddv-upsell-item { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: start; gap: 8px 10px; min-width: 0; padding: 9px 0; border-top: 1px solid var(--ddv-border); }
.ddv-upsell-image-link { display: block; grid-column: 1; grid-row: 1; width: 68px; height: 76px; overflow: hidden; border-radius: 4px; background: #f7f7f7; }
.ddv-shop-ui .ddv-upsell-image-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ddv-upsell-info { display: flex; grid-column: 2; grid-row: 1; flex-direction: column; gap: 3px; min-width: 0; font-size: .78125rem; }
.ddv-upsell-info a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-family: var(--global-heading-font-family, inherit); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.ddv-upsell-info span, .ddv-upsell-info del { color: var(--ddv-muted); }
.ddv-upsell-action { display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; width: 100%; border: 1px solid var(--ddv-border); border-radius: 4px; background: transparent; color: var(--ddv-text); min-height: 44px; padding: 8px 9px; font-size: .82rem; text-align: center; text-decoration: none !important; }
.ddv-upsell-action:disabled { cursor: progress; opacity: .65; }
.ddv-cart-footer { flex: none; max-height: 55dvh; overflow-y: auto; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ddv-border); background: var(--ddv-background); }
.ddv-cart-total-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: .875rem; line-height: 1.3; }
.ddv-cart-tax-included, .ddv-cart-shipping-pending { color: var(--ddv-muted); font-size: .75rem; }
.ddv-cart-tax-included strong, .ddv-cart-shipping-pending strong { font-weight: 400; }
.ddv-cart-coupons { margin: 8px 0 12px; }
.ddv-coupon-chip { display: inline-flex; align-items: center; gap: 8px; background: #f4f3f1; border-radius: 4px; padding: 3px 7px; font-size: .8rem; margin: 0 5px 6px 0; }
.ddv-coupon-chip button { border: 0; background: transparent; min-width: 44px; min-height: 44px; }
.ddv-coupon-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ddv-coupon-form label { grid-column: 1 / -1; font-size: .75rem; }
.ddv-coupon-form input { min-width: 0; min-height: 44px; border: 1px solid var(--ddv-border); border-radius: 4px; padding: 8px 10px; }
.ddv-coupon-form button { min-height: 44px; padding: 8px 12px; background: transparent; border: 1px solid var(--ddv-border); border-radius: 4px; color: var(--ddv-text); }
.ddv-view-cart { display: block; text-align: center; margin-top: 12px; font-size: .86rem; }
.ddv-is-loading [data-ddv-step], .ddv-is-loading [data-ddv-remove], .ddv-is-loading [data-ddv-upsell-add], .ddv-is-loading [data-ddv-coupon-remove], .ddv-is-loading .ddv-coupon-form button { pointer-events: none; opacity: .5; }
.ddv-cart-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; }
.ddv-product-error { color: #9e3025; font-size: .9rem; margin: 8px 0; }
.ddv-variation-error { display: block; width: 100%; margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid #9e3025; background: #fff0ef; }
.ddv-variation-error:focus { outline: 2px solid #9e3025; outline-offset: 2px; }
.ddv-adding-to-cart { cursor: progress !important; }
.ddv-cart-count { min-width: 1.3em; text-align: center; }
.ddv-sticky-atc { position: fixed; z-index: 9990; inset: auto 0 0; display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ddv-border); background: var(--ddv-background); box-shadow: 0 -4px 18px rgb(0 0 0 / 9%); }
.ddv-sticky-image { width: 44px; height: 48px; object-fit: cover; flex: none; }
.ddv-sticky-details { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: .8rem; line-height: 1.3; }
.ddv-sticky-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddv-sticky-details small { color: var(--ddv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddv-sticky-button { flex: none; min-height: 44px; border: 0; border-radius: var(--ddv-radius); background: var(--ddv-primary); color: #fff; padding: 8px 12px; font-weight: 600; font-size: .8rem !important; }
@media (max-width: 760px) {
  .ddv-cart-drawer { width: 100vw; }
  .ddv-cart-content { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ddv-cart-item-name { font-size: .875rem; }
  .ddv-shop-ui .ddv-cart-footer { font-size: 13px; }
  .ddv-shop-ui .ddv-cart-total-row,
  .ddv-shop-ui .ddv-checkout-button { font-size: 13px; }
  .ddv-shop-ui .ddv-cart-tax-included,
  .ddv-shop-ui .ddv-cart-shipping-pending,
  .ddv-shop-ui .ddv-coupon-form label,
  .ddv-shop-ui .ddv-coupon-chip,
  .ddv-shop-ui .ddv-view-cart { font-size: 12px; }
  .ddv-shop-ui .ddv-coupon-form button { font-size: 12px; }
  .ddv-coupon-form input { font-size: 1rem; }
  .ddv-cart-upsells { position: static; max-height: none; overflow: visible; border-left: 0; border-top: 1px solid var(--ddv-border); padding: 18px 0 0; }
  .ddv-cart-upsell-list { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding: 0 2px 12px 0; }
  .ddv-upsell-item { display: flex; flex: 0 0 min(46%, 220px); flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--ddv-border); border-radius: var(--ddv-radius); scroll-snap-align: start; }
  .ddv-upsell-image-link { width: 100%; height: 120px; }
  .ddv-upsell-info { flex: 1; width: 100%; }
  .ddv-upsell-info a { -webkit-line-clamp: 2; }
  .ddv-upsell-action { margin-top: auto; }
}
@media (max-width: 520px) {
  .ddv-cart-header { padding: 12px 16px; }
  .ddv-free-shipping { margin: 10px 16px 0; padding: 12px; }
  .ddv-cart-scroll { padding: 12px 16px; }
  .ddv-cart-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .ddv-cart-item { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
  .ddv-cart-item--no-image { grid-template-columns: minmax(0, 1fr); }
  .ddv-cart-item-image-link { width: 68px; height: 84px; }
  .ddv-upsell-image-link { height: 106px; }
}
@media (prefers-reduced-motion: reduce) {
  .ddv-cart-overlay, .ddv-cart-drawer, .ddv-cart-item.ddv-just-added { animation: none; }
  .ddv-free-shipping-track span { transition: none; }
}
@keyframes ddv-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ddv-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes ddv-item-added { from { background: #f2f0e9; } to { background: transparent; } }
@keyframes ddv-spin { to { transform: rotate(360deg); } }
