/* No content is hidden until the native mobile disclosure has been created. */
.mmm-es-buy-options-anchor,
form#mmm-es-buy-options,
form[data-mmm-es-buy-options] {
  scroll-margin-top: var(--mmm-es-anchor-offset, 120px);
}

@media (max-width: 767px) {
  body.single-product [data-mmm-native-nine-tabs]:has(.mmm-es-pdp-disclosure) {
    row-gap: 0;
  }

  body.single-product [data-mmm-native-nine-tabs] > [data-mmm-section-key] {
    scroll-margin-top: var(--mmm-es-anchor-offset, 120px);
  }

  body.single-product [data-mmm-native-nine-tabs] > [data-mmm-section-key]:has(> .mmm-es-pdp-disclosure) {
    min-height: 0 !important;
    margin-block: 0 !important;
    padding-block: 0 !important;
    border-block: 0 !important;
  }

  body.single-product .mmm-es-pdp-disclosure {
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--pdp-rule, #dce5e4);
    border-radius: 0;
  }

  body.single-product .mmm-es-pdp-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 52px;
    padding: 10px 0;
    color: var(--pdp-ink, #192b2c);
    list-style: none;
    cursor: pointer;
    scroll-margin-top: var(--mmm-es-anchor-offset, 120px);
    -webkit-tap-highlight-color: transparent;
  }

  /* The live legacy nav layer hides every direct details summary with !important. */
  body.single-product.mmm-pdp-nav .mmm-pdp-pane > .mmm-es-pdp-disclosure > .mmm-es-pdp-summary {
    display: flex !important;
  }

  body.single-product .mmm-es-pdp-summary::-webkit-details-marker { display: none; }
  body.single-product .mmm-es-pdp-summary::marker { content: ''; }

  body.single-product .mmm-es-pdp-summary::after {
    content: '';
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
  }

  body.single-product .mmm-es-pdp-disclosure[open] > .mmm-es-pdp-summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  body.single-product .mmm-es-pdp-summary > .mmm-pdp-h {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: .035em;
    overflow-wrap: anywhere;
  }

  body.single-product .mmm-es-pdp-summary:focus-visible {
    outline: 2px solid var(--pdp-teal, #168783);
    outline-offset: 3px;
  }

  body.single-product .mmm-es-pdp-content {
    min-width: 0;
    padding: 0 0 16px;
  }

}
