/* DraperyMill home feedback, 2026-10-23.
 * Enqueue after theme/editorial/refinement styles. The plugin adds the body
 * class; native Gutenberg blocks, existing links and commerce events remain.
 */
body.dm-home-enhancements #factory .fac-cap-title {margin:0 0 4px;color:#fff;font-weight:600;font-size:14px;line-height:1.4;}
body.dm-home-enhancements #factory .fac-cap-sub {margin:0;color:#f6eee4;font-size:12px;line-height:1.6;}
body.dm-home-enhancements #hero .swatch-row > .dmhs-fabric-swatch:nth-child(10) img {object-position:75% 55%;}

/* Support: centre the short labels beside their existing circular icons. */
body.dm-home-enhancements #dm-primary-menu > .nav-item:nth-of-type(9) > .nav-drop.wide .dd-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
}
body.dm-home-enhancements #dm-primary-menu > .nav-item:nth-of-type(9) > .nav-drop.wide .dd-icon {
  align-self: center;
  margin: 0;
}
body.dm-home-enhancements #dm-primary-menu > .nav-item:nth-of-type(9) > .nav-drop.wide .dd-text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 36px;
  text-align: center;
  white-space: normal;
}
body.dm-home-enhancements #dm-primary-menu > .nav-item:nth-of-type(9) > .nav-drop.wide .dd-text strong {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: break-word;
}

/* Three compact actions: each icon sits above its own label. Higher-specificity
 * variants also cover the English release's important .dmp-floating rules. */
body.dm-home-enhancements .dm-floating-actions,
body.dm-home-enhancements.dm-site-refinement .dm-floating-actions.dmp-floating {
  position: fixed !important;
  inset: 50% 16px auto auto !important;
  z-index: 1000;
  display: block !important;
  width: 76px !important;
  max-width: 76px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
}
body.dm-home-enhancements .dm-floating-actions .wp-block-buttons,
body.dm-home-enhancements.dm-site-refinement .dm-floating-actions.dmp-floating .wp-block-buttons {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch;
  gap: 8px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.dm-home-enhancements .dm-floating-actions .wp-block-button,
body.dm-home-enhancements.dm-site-refinement .dm-floating-actions.dmp-floating .wp-block-button {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
}
body.dm-home-enhancements .dm-floating-actions .wp-block-button__link,
body.dm-home-enhancements.dm-site-refinement .dm-floating-actions.dmp-floating .wp-block-button__link {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0;
  min-height: 76px !important;
  padding: 10px 6px !important;
  border: 1px solid transparent;
  border-radius: 10px !important;
  font: 600 12px/1.25 var(--font-body, "Inter", sans-serif) !important;
  text-align: center !important;
  text-decoration: none;
  white-space: normal !important;
  box-shadow: 0 4px 18px rgb(27 22 18 / 12%);
}
body.dm-home-enhancements .dm-floating-actions .dm-float-icon {
  display: flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  line-height: 1;
}
body.dm-home-enhancements .dm-floating-actions .dm-float-icon .ph {
  display: block;
  margin: 0;
  font-size: 23px;
  line-height: 1;
}
body.dm-home-enhancements .dm-floating-actions .dm-float-label {
  display: block;
  margin: 0;
  line-height: 1.25;
  white-space: normal;
}
body.dm-home-enhancements .dm-floating-actions .dm-float-sample .wp-block-button__link {
  border-color: var(--primary, #59300f);
  background: var(--primary, #59300f);
  color: #fff;
}
body.dm-home-enhancements .dm-floating-actions .dm-float-trade .wp-block-button__link {
  border-color: #372c24;
  background: #372c24;
  color: #fff;
}
body.dm-home-enhancements .dm-floating-actions .dm-float-discount .wp-block-button__link {
  border-color: var(--rule, #dfd5ce);
  background: #fffaf3;
  color: var(--primary, #59300f);
}
body.dm-home-enhancements .dm-floating-actions .dm-float-discount .dm-float-icon {
  background: var(--primary-lo, #e7d3c4);
}

/* A zero-item cart remains reachable; only its empty count badge is hidden. */
body.dm-home-enhancements .nav a.dm-nav-cart[hidden],
body.dm-home-enhancements .nav a.dm-nav-cart.dmfb-cart-empty {
  display: inline-flex !important;
}
body.dm-home-enhancements .nav .dm-cart-count[hidden] {
  display: none !important;
}

/* Native image blocks replace the ten flat colour placeholders. */
body.dm-home-enhancements #hero .swatch-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  min-width: 0;
}
body.dm-home-enhancements #hero .swatch-row > figure.swatch.dmhs-fabric-swatch {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--rule, #dfd5ce);
  border-radius: 50%;
  background: var(--surface, #f8f5f3);
}
body.dm-home-enhancements #hero .swatch-row > figure.swatch.dmhs-fabric-swatch img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 70%;
  transform: scale(1.35);
}

/* The figure and image both fill the card. Editorial image ratios must not
 * create a second, empty half below the photograph. */
body.dm-home-enhancements #products .prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}
body.dm-home-enhancements #products .prodcard {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 420px;
  aspect-ratio: 4 / 5;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #3c3027;
}
body.dm-home-enhancements #products .prodcard > figure.wp-block-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  aspect-ratio: auto;
  padding: 0;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 0;
}
body.dm-home-enhancements #products .prodcard > figure.wp-block-image > a {
  display: block;
  width: 100%;
  height: 100%;
}
body.dm-home-enhancements #products .prodcard > figure.wp-block-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  object-fit: cover !important;
  object-position: center;
}
body.dm-home-enhancements #products .prodcard .prodcard-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  background: linear-gradient(to top, rgb(27 22 18 / 94%) 0%, rgb(27 22 18 / 73%) 28%, rgb(27 22 18 / 22%) 62%, rgb(27 22 18 / 3%) 100%);
  pointer-events: none;
}
body.dm-home-enhancements #products .prodcard .prodcard-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: 24px;
  margin: 0;
  color: #fff;
}
body.dm-home-enhancements #products .prodcard-body h3 {
  margin: 0 0 9px;
  color: #fff;
  font: 500 clamp(28px, 2.4vw, 36px)/1.15 var(--font-display, "Cormorant Garamond", Georgia, serif);
}
body.dm-home-enhancements #products .prodcard-body p {
  margin: 0 0 18px;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
}
body.dm-home-enhancements #products .prodcard-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
body.dm-home-enhancements #products .prodcard-ctas > .wp-block-buttons {
  display: flex;
  flex: 1 1 142px;
  min-width: 0;
  padding: 0;
  margin: 0;
}
body.dm-home-enhancements #products .prodcard-ctas .dm-btn {
  width: 100%;
  min-height: 44px;
  padding: 11px 10px;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}
body.dm-home-enhancements #products .prodcard .dm-btn--ghost {
  border-color: #fff;
  background: rgb(27 22 18 / 16%);
  color: #fff;
}

/* Match the full text/stats/QC column with a two-by-two media grid. Each outer
 * figure is a cell; its nested Gutenberg image figure fills that cell. */
body.dm-home-enhancements #factory > .dm-wrap.fac-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(28px, 4vw, 56px);
}
body.dm-home-enhancements #factory > .dm-wrap.fac-grid > * {
  min-width: 0;
  margin-block: 0;
}
body.dm-home-enhancements #factory .fac-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-self: stretch;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  min-height: 520px;
}
body.dm-home-enhancements #factory .fac-media > figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  margin: 0 !important;
  overflow: hidden;
  background: #3c3027;
}
body.dm-home-enhancements #factory .fac-media > figure > figure.wp-block-image {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  padding: 0;
  margin: 0 !important;
  border-radius: 0;
}
body.dm-home-enhancements #factory .fac-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover !important;
  object-position: center;
}
body.dm-home-enhancements #factory .fac-media > figure > figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 42px 16px 16px;
  margin: 0;
  background: linear-gradient(to top, rgb(27 22 18 / 91%), rgb(27 22 18 / 48%) 62%, transparent);
  text-align: left;
}
body.dm-home-enhancements #factory .fac-media figcaption strong {
  display: block;
  margin: 0 0 3px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}
body.dm-home-enhancements #factory .fac-media figcaption span {
  display: block;
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
}

/* Sample prices get their own line; both actions are full-width, one per row. */
body.dm-home-enhancements .scard-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  min-width: 0;
  margin-top: auto;
}
body.dm-home-enhancements .scard-foot .scard-price {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.45;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
body.dm-home-enhancements .scard-foot .pcard-ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
}
body.dm-home-enhancements .scard-foot .pcard-ctas > .dm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 11px 14px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
}

/* The actual factory video is a cover background. Content owns stage height,
 * so the banner remains readable when the browser blocks autoplay. */
body.dm-home-enhancements #factory-video-banner .factory-stage {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  overflow: hidden;
  background: #211b16;
}
body.dm-home-enhancements #factory-video-banner .factory-stage > figure.wp-block-video.dmhs-factory-video {
  position: absolute;
  inset: 0;
  /* No stacking context here: the nested pause button must sit above the veil. */
  z-index: auto;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 0;
  margin: 0 !important;
  overflow: hidden;
  background: #211b16;
}
body.dm-home-enhancements #factory-video-banner .dmhs-factory-video video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}
body.dm-home-enhancements #factory-video-banner .factory-veil {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 1;
  margin: 0;
  background: linear-gradient(90deg, rgb(27 22 18 / 80%), rgb(27 22 18 / 35%)), linear-gradient(to top, rgb(27 22 18 / 50%), transparent 65%);
  pointer-events: none;
}
body.dm-home-enhancements #factory-video-banner .factory-body {
  position: relative;
  inset: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 64px 0 86px;
  margin: 0;
  background: transparent;
  pointer-events: none;
}
body.dm-home-enhancements #factory-video-banner .factory-body :is(a, button) {
  pointer-events: auto;
}
body.dm-home-enhancements #factory-video-banner .factory-grid > :first-child :is(h2, h2 span, .factory-lede, .play-label, .play-label strong, .play-label > span) {
  color: #fffaf3 !important;
}
body.dm-home-enhancements #factory-video-banner .factory-grid > :first-child :is(.dm-eyebrow, h2 em) {
  color: #ecd2b0 !important;
}
body.dm-home-enhancements #factory-video-banner .dmhs-video-toggle {
  position: absolute;
  inset: auto 24px 22px auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 6px;
  background: rgb(27 22 18 / 82%);
  color: #fff;
  font: 500 12px/1.4 var(--font-body, "Inter", sans-serif);
  cursor: pointer;
  pointer-events: auto;
}
body.dm-home-enhancements #factory-video-banner .dmhs-video-toggle[aria-pressed="true"] {
  background: #fffaf3;
  color: var(--primary, #59300f);
}

/* Native document blocks form a touch/keyboard scrollable carousel. The full
 * certificate page is contained in its image frame, without cropping text. */
body.dm-home-enhancements .dm-cert-carousel {
  min-width: 0;
  padding-block: clamp(48px, 5vw, 72px);
  overflow: hidden;
  border-block: 1px solid var(--rule-soft, #ede6e1);
  background: var(--bg-tint, #fbf9f6);
  color: var(--ink, #1b1612);
}
body.dm-home-enhancements .dm-cert-carousel .dm-wrap {
  min-width: 0;
}
body.dm-home-enhancements .dm-cert-carousel h2 {
  margin: 0 0 14px;
  font: 500 clamp(32px, 3vw, 46px)/1.15 var(--font-display, "Cormorant Garamond", Georgia, serif);
}
body.dm-home-enhancements .dm-cert-carousel .dm-cert-track {
  --dmhs-cert-gap: 20px;
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--dmhs-cert-gap)) / 4);
  grid-template-columns: none;
  align-items: stretch;
  gap: var(--dmhs-cert-gap);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 4px 2px 16px;
  margin: 28px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary, #59300f) var(--rule-soft, #ede6e1);
  -webkit-overflow-scrolling: touch;
}
body.dm-home-enhancements .dm-cert-carousel .dm-cert-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 18px;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--rule, #dfd5ce);
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #1b1612);
  scroll-snap-align: start;
}
body.dm-home-enhancements .dm-cert-carousel .dm-cert-card figure.wp-block-image {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  padding: 16px;
  margin: 0 !important;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--rule-soft, #ede6e1);
  border-radius: 0;
  background: #fff;
}
body.dm-home-enhancements .dm-cert-carousel .dm-cert-card figure.wp-block-image > a {
  display: block;
  width: 100%;
  height: 100%;
}
body.dm-home-enhancements .dm-cert-carousel .dm-cert-card figure.wp-block-image img {
  position: static;
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  object-fit: contain !important;
  object-position: center;
}
body.dm-home-enhancements .dm-cert-carousel .dm-cert-card h3 {
  margin: 18px 18px 8px;
  color: var(--ink, #1b1612);
  font: 500 25px/1.15 var(--font-display, "Cormorant Garamond", Georgia, serif);
  overflow-wrap: break-word;
}
body.dm-home-enhancements .dm-cert-carousel .dm-cert-card > p {
  margin: 0 18px 12px;
  color: var(--ink-2, #47413d);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
body.dm-home-enhancements .dm-cert-carousel .dm-cert-card > p:last-child {
  margin-block: auto 0;
  padding-top: 6px;
}
body.dm-home-enhancements .dm-cert-carousel .dm-cert-card p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--primary, #59300f);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.dm-home-enhancements .dm-cert-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
}
body.dm-home-enhancements .dm-cert-controls button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  margin: 0;
  border: 1px solid var(--rule, #dfd5ce);
  border-radius: 6px;
  background: #fff;
  color: var(--primary, #59300f);
  font: 500 12px/1.4 var(--font-body, "Inter", sans-serif);
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
body.dm-home-enhancements .dm-cert-controls button[aria-pressed="true"] {
  border-color: var(--primary, #59300f);
  background: var(--primary, #59300f);
  color: #fff;
}
body.dm-home-enhancements :is(.dm-cert-controls button, .dmhs-video-toggle):is(:disabled, [aria-disabled="true"]) {
  opacity: .45;
  cursor: default;
}
body.dm-home-enhancements :is(.dm-floating-actions a, .dm-cert-track, .dm-cert-card a, .dm-cert-controls button):focus-visible {
  outline: 3px solid var(--primary, #59300f);
  outline-offset: 3px;
}
body.dm-home-enhancements #products .prodcard a:focus-visible,
body.dm-home-enhancements #factory-video-banner .dmhs-video-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (hover: hover) {
  body.dm-home-enhancements .dm-floating-actions .wp-block-button__link:hover {
    filter: brightness(.96);
    transform: translateY(-2px);
  }
  body.dm-home-enhancements #products .prodcard .dm-btn--ghost:hover {
    background: #fff;
    color: var(--primary, #59300f);
  }
  body.dm-home-enhancements .dm-cert-controls button:not(:disabled):not([aria-disabled="true"]):hover {
    border-color: var(--primary, #59300f);
    background: var(--primary-lo, #e7d3c4);
    color: var(--primary, #59300f);
  }
}

@media (max-width: 1100px) {
  body.dm-home-enhancements #dm-primary-menu > .nav-item:nth-of-type(9) > .nav-drop.wide .dd-link {
    min-height: 52px;
  }
}

@media (max-width: 1024px) {
  body.dm-home-enhancements #factory > .dm-wrap.fac-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  body.dm-home-enhancements #factory .fac-media {
    grid-template-rows: none;
    grid-auto-rows: auto;
    min-height: 0;
    height: auto;
  }
  body.dm-home-enhancements #factory .fac-media > figure {
    aspect-ratio: 4 / 3;
  }
  body.dm-home-enhancements .dm-cert-carousel .dm-cert-track {
    grid-auto-columns: calc((100% - var(--dmhs-cert-gap)) / 2);
  }
  body.dm-home-enhancements #factory-video-banner .factory-stage,
  body.dm-home-enhancements #factory-video-banner .factory-body {
    min-height: 0;
  }
  body.dm-home-enhancements #factory-video-banner .factory-body {
    padding-block: 56px 86px;
  }
}

@media (max-width: 900px) {
  body.dm-home-enhancements #products .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  body.dm-home-enhancements:has(.dm-floating-actions) {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  body.dm-home-enhancements .dm-floating-actions,
  body.dm-home-enhancements.dm-site-refinement .dm-floating-actions.dmp-floating {
    inset: auto 0 0 !important;
    width: 100% !important;
    max-width: 100%;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid var(--rule, #dfd5ce) !important;
    background: #fffdf9 !important;
    box-shadow: 0 -4px 18px rgb(27 22 18 / 6%) !important;
    transform: none !important;
  }
  body.dm-home-enhancements .dm-floating-actions .wp-block-buttons,
  body.dm-home-enhancements.dm-site-refinement .dm-floating-actions.dmp-floating .wp-block-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body.dm-home-enhancements .dm-floating-actions .wp-block-button__link,
  body.dm-home-enhancements.dm-site-refinement .dm-floating-actions.dmp-floating .wp-block-button__link {
    gap: 3px !important;
    min-height: 64px !important;
    padding: 6px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    box-shadow: none;
  }
  body.dm-home-enhancements .dm-floating-actions .dm-float-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
  body.dm-home-enhancements .dm-floating-actions .dm-float-icon .ph {
    font-size: 21px;
  }
  body.dm-home-enhancements :is(.dmc-toast, .dm-notice) {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  body.dm-home-enhancements #hero .swatch-row {
    gap: 6px;
  }
  body.dm-home-enhancements #products .prod-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  body.dm-home-enhancements #products .prodcard {
    min-height: 400px;
    aspect-ratio: 4 / 5;
  }
  body.dm-home-enhancements #products .prodcard .prodcard-body {
    padding: 22px;
  }
  body.dm-home-enhancements #factory .fac-media {
    gap: 10px;
  }
  body.dm-home-enhancements #factory .fac-media > figure {
    aspect-ratio: 1;
  }
  body.dm-home-enhancements #factory .fac-media > figure > figcaption {
    padding: 36px 10px 10px;
  }
  body.dm-home-enhancements #factory .fac-media figcaption strong {
    font-size: 12px;
  }
  body.dm-home-enhancements #factory .fac-media figcaption span {
    font-size: 10px;
    line-height: 1.45;
  }
  body.dm-home-enhancements #factory-video-banner .factory-body {
    padding-block: 84px 44px;
  }
  body.dm-home-enhancements #factory-video-banner .dmhs-video-toggle {
    right: 20px;
    top: 16px;
    bottom: auto;
  }
  body.dm-home-enhancements .dm-cert-carousel .dm-cert-track {
    --dmhs-cert-gap: 14px;
    grid-auto-columns: 84%;
    margin-top: 22px;
  }
  body.dm-home-enhancements .dm-cert-carousel .dm-cert-card figure.wp-block-image {
    aspect-ratio: 4 / 5;
    padding: 16px;
  }
  body.dm-home-enhancements .dm-cert-controls {
    gap: 8px;
  }
  body.dm-home-enhancements .dm-cert-controls button {
    padding-inline: 12px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  body.dm-home-enhancements .dm-floating-actions,
  body.dm-home-enhancements.dm-site-refinement .dm-floating-actions.dmp-floating {
    padding-inline: 12px !important;
  }
  body.dm-home-enhancements #products .prodcard .prodcard-body {
    padding: 20px;
  }
  body.dm-home-enhancements .scard-foot .scard-price {
    font-size: 16px;
  }
  body.dm-home-enhancements .dm-cert-controls button {
    padding-inline: 10px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dm-home-enhancements .dm-cert-carousel .dm-cert-track {
    scroll-behavior: auto;
  }
  body.dm-home-enhancements :is(.dm-floating-actions a, #products .prodcard img) {
    transition: none !important;
    transform: none !important;
  }
}

@media print {
  body.dm-home-enhancements .dm-floating-actions,
  body.dm-home-enhancements .dm-cert-controls,
  body.dm-home-enhancements .dmhs-video-toggle {
    display: none !important;
  }
  body.dm-home-enhancements {
    padding-bottom: 0;
  }
  body.dm-home-enhancements .dm-cert-carousel .dm-cert-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}
