body.single-product .dy-purchase-total {
  display: flex;
  flex: 0 0 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 4px 0 0;
  padding: 12px 0 4px;
  border-top: 1px solid rgb(36 22 16 / 14%);
  color: #241610;
}

body.single-product .dy-purchase-total strong {
  color: #7a1712;
  font-size: 1.25rem;
  font-weight: 900;
}

body.single-product .flex-control-thumbs .dy-gallery-thumb-button:focus-visible {
  outline: 3px solid var(--dy-gold);
  outline-offset: 3px;
}

body.single-product .flex-control-thumbs .dy-gallery-thumb-button[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--dy-gold);
}

body.single-product .flex-control-thumbs .dy-gallery-thumb-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

body.single-product .dy-product-facts {
  clear: both;
  margin: 22px 0 10px;
  padding: 18px;
  border: 1px solid rgb(122 23 18 / 20%);
  background: #fffaf0;
  color: #241610;
}

body.single-product .dy-product-facts h2 {
  margin: 0 0 12px;
  color: #241610;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

body.single-product .dy-product-facts dl {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1.75fr);
  gap: 8px 14px;
  margin: 0;
}

body.single-product .dy-product-facts dt {
  font-weight: 850;
}

body.single-product .dy-product-facts dd {
  margin: 0;
}

.dy-mobile-purchase {
  display: none;
}

@media (max-width: 780px) {
  html.dy-product-gallery-js[lang="fr-FR"] body.single-product .woocommerce div.product .woocommerce-product-gallery:has(.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-of-type(2)),
  html.dy-product-gallery-js[lang="en"] body.single-product .woocommerce div.product .woocommerce-product-gallery:has(.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-of-type(2)) {
    aspect-ratio: 4 / 5;
  }

  html.dy-product-gallery-js[lang="fr-FR"] body.single-product .woocommerce-product-gallery__image.dy-gallery-thumb-preview,
  html.dy-product-gallery-js[lang="en"] body.single-product .woocommerce-product-gallery__image.dy-gallery-thumb-preview {
    background-image: var(--dy-gallery-preview);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  body.single-product .woocommerce div.product .woocommerce-product-gallery__wrapper {
    max-width: none !important;
    overflow: visible !important;
  }

  body.single-product .summary .reset_variations {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 8px;
  }

  body.single-product .summary .dy-stand-option label {
    align-items: center;
    min-height: 44px;
  }

  body.single-product .summary .dy-stand-option input {
    width: 20px;
    height: 20px;
    margin-top: 0;
  }

  body.single-product.dy-mobile-purchase-visible {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  body.single-product .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding: 3px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  body.single-product .flex-control-thumbs li {
    flex: 0 0 68px;
    width: 68px !important;
    scroll-snap-align: start;
  }

  body.single-product .dy-product-facts dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  body.single-product .dy-product-facts dd + dt {
    margin-top: 8px;
  }

  .dy-mobile-purchase:not([hidden]) {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    border-top: 1px solid rgb(205 165 74 / 48%);
    background: rgb(20 10 8 / 96%);
    box-shadow: 0 -12px 28px rgb(0 0 0 / 30%);
  }

  .dy-mobile-purchase__price {
    color: #f4ead8;
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
  }

  .dy-mobile-purchase__button {
    min-width: 0;
    min-height: 52px;
    padding: 9px 14px;
    border: 1px solid rgb(244 234 216 / 28%);
    border-radius: 2px;
    color: #fff8ed;
    background: #7a1712;
    font: inherit;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.15;
    cursor: pointer;
  }

  .dy-mobile-purchase__button:hover,
  .dy-mobile-purchase__button:focus-visible {
    background: #5f100c;
    outline: 3px solid var(--dy-gold);
    outline-offset: 2px;
  }

  .dy-mobile-purchase__button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
  }

  body.dy-cookie-visible .dy-mobile-purchase,
  body:has(.dy-menu-toggle[aria-expanded="true"]) .dy-mobile-purchase,
  body:has(.dy-main-nav.is-open) .dy-mobile-purchase,
  body:has(.pswp--open) .dy-mobile-purchase {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dy-mobile-purchase,
  .dy-mobile-purchase__button {
    scroll-behavior: auto;
    transition: none;
  }
}
