/* Digital Shop In — iOS-style layer on top of WoodMart.
   Scoped to body.dsi-ios so switching the feature off restores the theme. */

body.dsi-ios {
  --dsi-green: #2cbc8c;
  --dsi-green-press: #22a57a;
  --dsi-green-tint: rgba(44, 188, 140, .12);
  --dsi-amber: #fbbc34;
  --dsi-bg: #f5f5f7;
  --dsi-card: #ffffff;
  --dsi-fill: #f2f2f7;
  --dsi-fill-2: #e9e9ee;
  --dsi-label: #1d1d1f;
  --dsi-label-2: #6e6e73;
  --dsi-sep: rgba(60, 60, 67, .12);
  --dsi-red: #ff3b30;
  --dsi-r-s: 12px;
  --dsi-r-m: 18px;
  --dsi-r-l: 24px;
  --dsi-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --dsi-shadow-lift: 0 2px 4px rgba(0, 0, 0, .05), 0 18px 40px rgba(0, 0, 0, .10);
  --dsi-ease: cubic-bezier(.25, .8, .25, 1);

  /* WoodMart tokens */
  --wd-primary-color: var(--dsi-green);
  --wd-alternative-color: var(--dsi-amber);
  --wd-brd-radius: var(--dsi-r-m);
  --wd-form-brd-radius: var(--dsi-r-s);
  --btn-default-brd-radius: var(--dsi-r-s);
  --btn-accented-brd-radius: var(--dsi-r-s);
  --btn-accented-bgcolor: var(--dsi-green);
  --btn-accented-bgcolor-hover: var(--dsi-green-press);
  --wd-text-color: var(--dsi-label);
  --wd-title-color: var(--dsi-label);

  background: var(--dsi-bg);
  color: var(--dsi-label);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

body.dsi-ios .website-wrapper,
body.dsi-ios .main-page-wrapper { background: var(--dsi-bg); }

/* ---------- Header: brand-green bar, iOS blur when sticky ---------- */
body.dsi-ios .whb-general-header { border-bottom: 0 !important; box-shadow: none !important; }
body.dsi-ios .whb-sticked .whb-general-header {
  background-color: rgba(44, 188, 140, .9) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 rgba(0, 0, 0, .12) !important;
}
body.dsi-ios .whb-general-header .wd-nav > li > a { font-weight: 500; letter-spacing: 0; }
body.dsi-ios .wd-dropdown,
body.dsi-ios .wd-dropdown-menu {
  border-radius: var(--dsi-r-m);
  box-shadow: var(--dsi-shadow-lift);
  border: .5px solid var(--dsi-sep);
  overflow: hidden;
}
body.dsi-ios .wd-tools-count,
body.dsi-ios .wd-cart-number > span {
  background: var(--dsi-red) !important;
  color: #fff !important;
  font-weight: 600;
}

/* ---------- "Tech" mega menu: its CSS was missing on cart/checkout, so it showed open ---------- */
.dsi-tech-menu { position: relative; }
@media (min-width: 1025px) {
  .whb-header .dsi-tech-mega {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 9999;
    min-width: min(760px, 92vw);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .whb-header .dsi-tech-menu:hover .dsi-tech-mega,
  .whb-header .dsi-tech-menu:focus-within .dsi-tech-mega { opacity: 1; visibility: visible; transform: none; }
  .dsi-tech-mega b, .dsi-tech-mega a { display: block; }
}
body.dsi-ios .whb-header .dsi-tech-mega {
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: .5px solid var(--dsi-sep);
  border-radius: var(--dsi-r-l);
  box-shadow: var(--dsi-shadow-lift);
}
body.dsi-ios .whb-header .dsi-tech-mega b { color: var(--dsi-green-text); margin-bottom: 8px; font-size: 13px; }
body.dsi-ios .whb-header .dsi-tech-mega a { color: var(--dsi-label) !important; padding: 6px 0 !important; line-height: 1.4 !important; font-size: 14px; }
body.dsi-ios .whb-header .dsi-tech-mega a:hover { color: var(--dsi-green-text) !important; }

/* ---------- FunnelKit side cart (kept as-is, restyled) ---------- */
body.dsi-ios .fkcart-item-wrap .fkcart-image-wrapper img,
body.dsi-ios .fkcart-item-wrap img { border-radius: 12px !important; }
body.dsi-ios .fkcart-checkout-wrap .fkcart-checkout--text,
body.dsi-ios .fkcart-checkout-wrap a,
body.dsi-ios #fkcart-checkout-button {
  border-radius: 14px !important;
  min-height: 52px;
  font-weight: 700 !important;
}
body.dsi-ios .fkcart-coupon-input,
body.dsi-ios .fkcart-coupon-wrap input,
body.dsi-ios .fkcart-coupon-field input { border-radius: 999px !important; background: var(--dsi-fill) !important; min-height: 44px; }
body.dsi-ios .fkcart-quantity-selector,
body.dsi-ios .fkcart-qty-wrap { border-radius: 999px !important; overflow: hidden; }
body.dsi-ios .fkcart-toggler { border-radius: 999px !important; box-shadow: var(--dsi-shadow-lift) !important; }

/* ---------- Typography ---------- */
body.dsi-ios h1, body.dsi-ios h2, body.dsi-ios h3,
body.dsi-ios .product_title, body.dsi-ios .title { letter-spacing: 0; color: var(--dsi-label); }
body.dsi-ios .product_title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; line-height: 1.3; }
body.dsi-ios .page-title .title, body.dsi-ios .wd-page-title .title { font-weight: 700; }

/* ---------- Buttons (44px touch targets, pill-ish) ---------- */
body.dsi-ios .button,
body.dsi-ios .btn,
body.dsi-ios button[type="submit"],
body.dsi-ios input[type="submit"],
body.dsi-ios .wd-button,
body.dsi-ios .single_add_to_cart_button,
body.dsi-ios .checkout-button,
body.dsi-ios #place_order,
body.dsi-ios .wc-block-components-button {
  min-height: 44px;
  border-radius: var(--dsi-r-s) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: transform .18s var(--dsi-ease), background-color .18s var(--dsi-ease), opacity .18s;
}
body.dsi-ios .single_add_to_cart_button,
body.dsi-ios .checkout-button,
body.dsi-ios #place_order,
body.dsi-ios .btn-accent,
body.dsi-ios .button.alt,
body.dsi-ios .wc-block-components-checkout-place-order-button,
body.dsi-ios .wc-block-cart__submit-button,
body.dsi-ios .wd-add-btn .add_to_cart_button {
  background: var(--dsi-green) !important;
  border-color: var(--dsi-green) !important;
  color: #fff !important;
}
body.dsi-ios .single_add_to_cart_button:hover,
body.dsi-ios .checkout-button:hover,
body.dsi-ios #place_order:hover,
body.dsi-ios .wd-add-btn .add_to_cart_button:hover { background: var(--dsi-green-press) !important; }
body.dsi-ios .button:active,
body.dsi-ios .btn:active,
body.dsi-ios .single_add_to_cart_button:active,
body.dsi-ios #place_order:active { transform: scale(.97); }
body.dsi-ios .button:not(.alt):not(.checkout-button):not(.single_add_to_cart_button):not(.add_to_cart_button):not(.wc-forward),
body.dsi-ios .btn-default {
  background: var(--dsi-fill-2);
  color: var(--dsi-label);
  border-color: transparent;
}

/* ---------- Forms ---------- */
body.dsi-ios input[type="text"],
body.dsi-ios input[type="email"],
body.dsi-ios input[type="tel"],
body.dsi-ios input[type="number"],
body.dsi-ios input[type="password"],
body.dsi-ios input[type="search"],
body.dsi-ios select,
body.dsi-ios textarea,
body.dsi-ios .select2-container .select2-selection {
  background: var(--dsi-fill) !important;
  border: 1px solid transparent !important;
  border-radius: var(--dsi-r-s) !important;
  min-height: 44px;
  box-shadow: none !important;
  font-size: 16px; /* stops iOS zoom on focus */
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
body.dsi-ios input:focus,
body.dsi-ios select:focus,
body.dsi-ios textarea:focus {
  background: #fff !important;
  border-color: var(--dsi-green) !important;
  box-shadow: 0 0 0 4px var(--dsi-green-tint) !important;
  outline: none;
}
body.dsi-ios .wd-search-form .searchform,
body.dsi-ios .searchform input[type="text"] { border-radius: 999px !important; }

/* ---------- Product cards ---------- */
body.dsi-ios .wd-product .product-wrapper,
body.dsi-ios .product-grid-item .product-wrapper {
  background: var(--dsi-card);
  border-radius: var(--dsi-r-l);
  padding: 10px 10px 14px;
  box-shadow: var(--dsi-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--dsi-ease), box-shadow .25s var(--dsi-ease);
}
@media (hover: hover) {
  body.dsi-ios .wd-product:hover .product-wrapper { transform: translateY(-4px); box-shadow: var(--dsi-shadow-lift); }
}
body.dsi-ios .wd-product .product-element-top {
  border-radius: var(--dsi-r-m);
  overflow: hidden;
  background: var(--dsi-fill);
  aspect-ratio: 1 / 1;
}
body.dsi-ios .wd-product .product-element-top .product-image-link,
body.dsi-ios .wd-product .product-element-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.dsi-ios .wd-product .product-element-bottom {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 4px 0;
  text-align: start;
}
body.dsi-ios .wd-product .wd-entities-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
body.dsi-ios .wd-product .wd-entities-title a { color: var(--dsi-label); }
body.dsi-ios .wd-product .wd-product-cats { font-size: 12px; color: var(--dsi-label-2); }
body.dsi-ios .wd-product .wd-product-cats a { color: var(--dsi-label-2); }
body.dsi-ios .wd-product .star-rating:not([aria-label*=" 0 "]) { margin-top: 2px; }
body.dsi-ios .wd-product .wd-star-rating:has(.star-rating span[style="width:0%"]) { display: none; }
body.dsi-ios .wd-product .wrap-price { margin-top: auto; padding-top: 6px; }
body.dsi-ios .wd-product .price { font-size: 17px; font-weight: 700; color: var(--dsi-label); }
body.dsi-ios .wd-product .price del { font-size: 13px; color: var(--dsi-label-2); font-weight: 400; opacity: .8; }
body.dsi-ios .wd-product .price ins { text-decoration: none; color: var(--dsi-green-text); }
body.dsi-ios .wd-product .wd-add-btn { margin-top: 10px; }
body.dsi-ios .wd-product .wd-add-btn .button {
  width: 100%;
  border-radius: 999px !important;
  min-height: 40px;
  font-size: 14px;
}
body.dsi-ios .wd-product.outofstock .wd-add-btn .button { background: var(--dsi-fill-2) !important; color: var(--dsi-label-2) !important; border-color: transparent !important; }
body.dsi-ios .wd-product.outofstock .product-element-top img { filter: grayscale(.6); opacity: .75; }
/* WoodMart hover-fade buttons: keep always visible, iOS has no hover */
body.dsi-ios .wd-hover-fw-button .wd-add-btn,
body.dsi-ios .wd-hover-with-fade .wd-add-btn { opacity: 1 !important; visibility: visible !important; transform: none !important; position: static !important; }
body.dsi-ios .wd-hover-with-fade .product-wrapper:after { display: none; }

/* Labels */
body.dsi-ios .product-labels .product-label {
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 10px;
  min-height: 0;
  letter-spacing: 0;
  text-transform: none;
}
body.dsi-ios .product-label.onsale { background: var(--dsi-red); color: #fff; }
body.dsi-ios .product-label.featured { background: var(--dsi-amber); color: #1d1d1f; }
body.dsi-ios .product-label.out-of-stock { background: rgba(29, 29, 31, .72); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------- Shop / category toolbar (segmented feel) ---------- */
body.dsi-ios .shop-loop-head,
body.dsi-ios .wd-shop-tools { gap: 10px; }
body.dsi-ios .woocommerce-ordering select { border-radius: 999px !important; padding-inline: 16px 34px; }
body.dsi-ios .wd-nav-product-cat,
body.dsi-ios .wd-products-nav { gap: 8px; }
body.dsi-ios .wd-nav-product-cat > li > a {
  background: var(--dsi-card);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--dsi-shadow);
  font-weight: 500;
}
body.dsi-ios .wd-nav-product-cat > li.wd-active > a,
body.dsi-ios .wd-nav-product-cat > li.current-cat > a { background: var(--dsi-label); color: #fff; }
body.dsi-ios .term-description,
body.dsi-ios .wd-page-title { border-radius: var(--dsi-r-l); }
body.dsi-ios .woocommerce-pagination .page-numbers li .page-numbers {
  border-radius: 999px;
  min-width: 40px;
  height: 40px;
}
body.dsi-ios .woocommerce-pagination .page-numbers .current { background: var(--dsi-green); color: #fff; }
body.dsi-ios .wd-sidebar .widget,
body.dsi-ios .sidebar-container .widget {
  background: var(--dsi-card);
  border-radius: var(--dsi-r-l);
  padding: 18px;
  box-shadow: var(--dsi-shadow);
}

/* ---------- Single product ---------- */
body.dsi-ios .single-product-page .product-image-summary-wrap,
body.dsi-ios .single-product-page .product-image-summary {
  background: var(--dsi-card);
  border-radius: var(--dsi-r-l);
  box-shadow: var(--dsi-shadow);
  padding: clamp(14px, 2.4vw, 32px);
}
body.dsi-ios .woocommerce-product-gallery .wd-carousel-item img,
body.dsi-ios .woocommerce-product-gallery__image img,
body.dsi-ios .woocommerce-product-gallery figure img { border-radius: var(--dsi-r-m); }
body.dsi-ios .summary-inner .price { font-size: 28px; font-weight: 700; color: var(--dsi-label); }
body.dsi-ios .summary-inner .price ins { color: var(--dsi-green-text); text-decoration: none; }
body.dsi-ios .summary-inner .woocommerce-product-details__short-description { color: var(--dsi-label-2); line-height: 1.8; }
body.dsi-ios .summary-inner form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
body.dsi-ios .summary-inner .single_add_to_cart_button { flex: 1 1 200px; min-height: 52px; font-size: 17px; border-radius: 14px !important; }
body.dsi-ios .quantity { border-radius: 14px; overflow: hidden; background: var(--dsi-fill); }
body.dsi-ios .quantity input[type="button"],
body.dsi-ios .quantity .qty { background: transparent !important; border: 0 !important; min-height: 52px; }
body.dsi-ios .wd-single-tabs,
body.dsi-ios .woocommerce-tabs {
  background: var(--dsi-card);
  border-radius: var(--dsi-r-l);
  box-shadow: var(--dsi-shadow);
  padding: clamp(14px, 2.4vw, 32px);
  margin-top: 24px;
}
body.dsi-ios .wd-nav-tabs > li > a { border-radius: 999px; padding: 8px 18px; }
body.dsi-ios .wd-nav-tabs > li.active > a { background: var(--dsi-fill-2); }
body.dsi-ios .wd-nav-tabs > li > a:after { display: none; }

.dsi-trust {
  list-style: none;
  margin: 18px 0 6px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dsi-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f7;
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0;
}
.dsi-trust strong { display: block; font-size: 14px; font-weight: 600; color: #1d1d1f; line-height: 1.3; }
.dsi-trust small { display: block; font-size: 12px; color: #6e6e73; line-height: 1.4; }
.dsi-trust__ico {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(44, 188, 140, .14) center / 18px 18px no-repeat;
}
.dsi-ico-bolt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232cbc8c'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.dsi-ico-shield { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232cbc8c'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5z'/%3E%3C/svg%3E"); }
.dsi-ico-chat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232cbc8c'%3E%3Cpath d='M12 3C6.5 3 2 6.9 2 11.7c0 2.6 1.3 4.9 3.4 6.5L4.5 22l4.3-2.2c1 .3 2.1.4 3.2.4 5.5 0 10-3.9 10-8.6S17.5 3 12 3z'/%3E%3C/svg%3E"); }
.dsi-ico-check { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232cbc8c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E"); }
.dsi-sold { color: #6e6e73; font-size: 13px; margin: 4px 0 10px; }
.dsi-sold span { color: #2cbc8c; font-size: 10px; vertical-align: middle; margin-inline-end: 4px; }

/* ---------- Cart & checkout: inset grouped lists ---------- */
body.dsi-ios .woocommerce-cart-form,
body.dsi-ios .cart-totals-inner,
body.dsi-ios .cart_totals,
body.dsi-ios #customer_details,
body.dsi-ios .woocommerce-checkout-review-order,
body.dsi-ios #order_review,
body.dsi-ios .checkout-order-review,
body.dsi-ios .woocommerce-form-coupon,
body.dsi-ios .woocommerce-form-login,
body.dsi-ios .woocommerce-MyAccount-content,
body.dsi-ios .woocommerce-MyAccount-navigation,
body.dsi-ios .wc-block-cart,
body.dsi-ios .wc-block-checkout__main,
body.dsi-ios .wc-block-checkout__sidebar,
body.dsi-ios .wc-block-components-sidebar {
  background: var(--dsi-card);
  border-radius: var(--dsi-r-l);
  box-shadow: var(--dsi-shadow);
  padding: clamp(14px, 2.4vw, 28px);
  border: 0;
}
body.dsi-ios .shop_table,
body.dsi-ios .shop_table td,
body.dsi-ios .shop_table th { border-color: var(--dsi-sep) !important; }
body.dsi-ios .shop_table.cart img,
body.dsi-ios .woocommerce-cart-form .product-thumbnail img { border-radius: 12px; }
body.dsi-ios .cart_totals .order-total .amount,
body.dsi-ios .woocommerce-checkout-review-order-table .order-total .amount { color: var(--dsi-green-text); font-size: 22px; font-weight: 700; }
body.dsi-ios .woocommerce-checkout-payment,
body.dsi-ios #payment { background: var(--dsi-fill) !important; border-radius: var(--dsi-r-m); }
body.dsi-ios #payment .payment_methods > li {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  list-style: none;
}
body.dsi-ios #payment .payment_box { border-radius: 12px; background: var(--dsi-fill) !important; }
body.dsi-ios #place_order { width: 100%; min-height: 54px; font-size: 17px; border-radius: 14px !important; }
body.dsi-ios .woocommerce-info,
body.dsi-ios .woocommerce-message,
body.dsi-ios .woocommerce-error,
body.dsi-ios .wd-notice {
  border-radius: 14px;
  border: 0;
  box-shadow: var(--dsi-shadow);
}
body.dsi-ios .coupon input#coupon_code { border-radius: 999px !important; }
body.dsi-ios .woocommerce-MyAccount-navigation-link a { border-radius: 12px; }
body.dsi-ios .woocommerce-MyAccount-navigation-link.is-active a { background: var(--dsi-green-tint); color: var(--dsi-green-text); }

/* ---------- Side cart / login drawer: bottom-sheet look ---------- */
body.dsi-ios .wd-side-hidden,
body.dsi-ios .cart-widget-side,
body.dsi-ios .login-form-side {
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
body.dsi-ios.rtl .wd-side-hidden.wd-left { border-radius: 0 var(--dsi-r-l) var(--dsi-r-l) 0; }
body.dsi-ios.rtl .wd-side-hidden.wd-right { border-radius: var(--dsi-r-l) 0 0 var(--dsi-r-l); }
body.dsi-ios .wd-close-side { background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
body.dsi-ios .widget_shopping_cart .mini_cart_item img { border-radius: 12px; }
body.dsi-ios .widget_shopping_cart .buttons .button { width: 100%; border-radius: 14px !important; }

/* ---------- Mobile tab bar (WoodMart bottom toolbar) ---------- */
body.dsi-ios .wd-toolbar {
  background: rgba(255, 255, 255, .82) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--dsi-sep);
  box-shadow: none !important;
  padding-bottom: env(safe-area-inset-bottom);
  height: auto;
  min-height: 55px;
}
body.dsi-ios .wd-toolbar .wd-toolbar-label { font-size: 10px; font-weight: 500; }
body.dsi-ios .wd-toolbar a:active { opacity: .5; }

/* ---------- Footer ---------- */
body.dsi-ios .footer-container { border-top: .5px solid var(--dsi-sep); }

/* ---------- Scroll-to-top, quick view ---------- */
body.dsi-ios .scrollToTop {
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--dsi-shadow);
}
body.dsi-ios .mfp-content .product-quick-view,
body.dsi-ios .wd-popup { border-radius: var(--dsi-r-l); overflow: hidden; }

/* ---------- Coupon popup (sheet on phones, card on desktop) ---------- */
.dsi-promo {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background-color .35s ease;
}
.dsi-promo.is-open { background: rgba(0, 0, 0, .35); pointer-events: auto; }
.dsi-promo__sheet {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  color: #1d1d1f;
  border-radius: 28px 28px 0 0;
  padding: 10px 22px calc(22px + env(safe-area-inset-bottom));
  text-align: center;
  transform: translateY(105%);
  transition: transform .45s cubic-bezier(.2, .9, .25, 1.05);
  font-family: inherit;
  direction: rtl;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .15);
}
.dsi-promo.is-open .dsi-promo__sheet { transform: translateY(0); }
.dsi-promo__grab { width: 38px; height: 5px; border-radius: 3px; background: #d1d1d6; margin: 0 auto 14px; }
.dsi-promo .dsi-promo__close {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  width: 30px !important;
  height: 30px !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: #f2f2f7 !important;
  color: #6e6e73 !important;
  font-size: 18px !important;
  line-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
}
.dsi-promo__badge {
  width: 64px;
  height: 64px;
  margin: 4px auto 12px;
  border-radius: 18px;
  background: linear-gradient(145deg, #2cbc8c, #1fa57a);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 10px 24px rgba(44, 188, 140, .35);
}
.dsi-promo__eyebrow { font-size: 13px; font-weight: 600; color: #2cbc8c; margin: 0 0 2px; }
.dsi-promo__title { font-size: 26px; font-weight: 800; margin: 0 0 6px; line-height: 1.25; color: #1d1d1f; }
.dsi-promo__title b { color: #2cbc8c; }
.dsi-promo__text { font-size: 14px; color: #6e6e73; margin: 0 0 16px; line-height: 1.6; }
.dsi-promo__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f5f5f7;
  border: 1.5px dashed rgba(44, 188, 140, .55);
  border-radius: 16px;
  padding: 8px 8px 8px 14px;
  margin-bottom: 12px;
  direction: ltr;
}
.dsi-promo__code code { font-size: 18px; font-weight: 700; letter-spacing: 1px; color: #1d1d1f; background: none; padding: 0 6px; }
.dsi-promo__copy,
.dsi-promo__cta {
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: transform .15s ease, background-color .15s ease;
}
.dsi-promo .dsi-promo__copy { background: #1d1d1f !important; color: #fff !important; border-radius: 12px !important; padding: 0 16px !important; height: 40px !important; font-size: 14px !important; min-height: 0 !important; line-height: 40px !important; }
.dsi-promo .dsi-promo__copy.is-done { background: #2cbc8c !important; }
.dsi-promo__cta {
  display: block;
  width: 100%;
  background: #2cbc8c;
  color: #fff !important;
  border-radius: 14px;
  height: 52px;
  line-height: 52px;
  font-size: 17px;
  text-decoration: none !important;
}
.dsi-promo__cta:active, .dsi-promo__copy:active { transform: scale(.97); }
.dsi-promo__fine { font-size: 11px; color: #8e8e93; margin: 10px 0 0; }
.dsi-promo__bar { position: absolute; left: 22px; right: 22px; bottom: 8px; height: 3px; border-radius: 2px; background: #f2f2f7; overflow: hidden; }
.dsi-promo__bar i { display: block; height: 100%; width: 100%; background: #2cbc8c; transform-origin: left; }
@media (min-width: 768px) {
  .dsi-promo { align-items: center; }
  .dsi-promo__sheet { border-radius: 28px; transform: translateY(24px) scale(.96); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .25, 1.05), opacity .25s ease; padding-bottom: 26px; }
  .dsi-promo.is-open .dsi-promo__sheet { transform: none; opacity: 1; }
  .dsi-promo__grab { visibility: hidden; }
}

/* Floating "your coupon" pill after the popup closes */
.dsi-pill {
  position: fixed;
  z-index: 9999;
  bottom: calc(76px + env(safe-area-inset-bottom));
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(29, 29, 31, .86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  cursor: pointer;
  border: 0;
  transform: translateY(140%);
  transition: transform .4s cubic-bezier(.2, .9, .25, 1.05);
  direction: rtl;
  font-family: inherit;
  min-height: 0;
}
.dsi-pill.is-on { transform: none; }
.dsi-pill i { width: 22px; height: 22px; border-radius: 50%; background: #2cbc8c; display: grid; place-items: center; font-style: normal; font-size: 12px; }
@media (min-width: 1025px) { .dsi-pill { bottom: 24px; } }

/* Toast */
.dsi-toast {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  z-index: 100001;
  transform: translate(-50%, -160%);
  background: rgba(29, 29, 31, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .35s cubic-bezier(.2, .9, .25, 1.05);
  direction: rtl;
}
.dsi-toast.is-on { transform: translate(-50%, 0); }

@media (max-width: 767px) {
  body.dsi-ios .wd-product .product-wrapper { padding: 8px 8px 12px; border-radius: 20px; }
  body.dsi-ios .wd-product .product-element-top { border-radius: 14px; }
  body.dsi-ios .wd-product .wd-entities-title { font-size: 14px; }
  body.dsi-ios .wd-product .price { font-size: 15px; }
  body.dsi-ios .wd-product .wd-add-btn .button { min-height: 36px; font-size: 13px; }
  .dsi-trust { grid-template-columns: 1fr 1fr; }
  .dsi-trust li { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  body.dsi-ios *, .dsi-promo *, .dsi-pill, .dsi-toast { transition: none !important; animation: none !important; }
}
