/* German Decoiler only: mirror the approved English gallery scale and thumbnail layout. */
body.decoiler-page .detail-layout > .decoiler-gallery,
body.decoiler-page .decoiler-gallery {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  background: #f1eee7 !important;
}

body.decoiler-page .decoiler-gallery-main {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(360px, 58vh, 620px) !important;
  min-height: 0 !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #f1eee7 !important;
}

body.decoiler-page .decoiler-gallery-thumbs {
  display: flex !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 68px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 2px !important;
  scrollbar-width: thin;
}

body.decoiler-page .decoiler-thumb {
  display: block !important;
  flex: 0 0 82px !important;
  width: 82px !important;
  height: 62px !important;
  min-width: 82px !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  border: 2px solid transparent !important;
  background: #fff !important;
  cursor: pointer !important;
}

body.decoiler-page .decoiler-thumb.active {
  border-color: #08716b !important;
}

body.decoiler-page .decoiler-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 900px) {
  body.decoiler-page .decoiler-gallery-main {
    height: clamp(360px, 54vh, 540px) !important;
  }
}

@media (max-width: 560px) {
  body.decoiler-page .decoiler-gallery {
    padding: 10px !important;
  }

  body.decoiler-page .decoiler-gallery-main {
    height: 320px !important;
  }

  body.decoiler-page .decoiler-thumb {
    flex-basis: 72px !important;
    width: 72px !important;
    min-width: 72px !important;
    height: 58px !important;
  }
}

/* German Decoiler only: use the otherwise empty upper-right desktop space.
   Pull the complete purchasing column upward without changing its contents. */
@media (min-width: 1200px) {
  body.decoiler-page .detail-layout > div:last-child {
    margin-top: -88px !important;
  }
}

/* Keep the adjustment modest on smaller two-column layouts so German copy
   cannot collide with the full-width product introduction. */
@media (min-width: 901px) and (max-width: 1199px) {
  body.decoiler-page .detail-layout > div:last-child {
    margin-top: -24px !important;
  }
}
