/* Native package important rules already live in this named layer.
   Extend that same layer so their old three-column layout cannot win. */
@layer molisan-package-columns {
/* Native package labels, prices and purchase controls, arranged as selectable tiles. */
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice][role="group"]:is(.card-prices,.cms-package-prices,.purchase-options,.mol-pdp-options) {
  display:grid!important;
  grid-template-columns:repeat(var(--mol-pack-columns,2),minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row,
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row {
  display:contents!important;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-pack-option,
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-pack-option {
  grid-column:var(--mol-pack-column)!important;
  grid-row:var(--mol-pack-row)!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  min-height:112px!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #c6d2c8!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#183f33!important;
  box-shadow:none!important;
  cursor:pointer;
  z-index:1;
  transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-pack-option[aria-pressed=true],
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-pack-option[aria-pressed=true] {
  border:2px solid #315e4d!important;
  background:linear-gradient(to bottom,#eaf1e9 0%,#eaf1e9 50%,#fff 50%,#fff 100%)!important;
  box-shadow:0 0 0 1px #315e4d!important;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-pack-option:hover:not(:disabled) {
  background:#f0f5ee!important;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-pack-option:focus-visible {
  outline:3px solid #a84225!important;
  outline-offset:3px;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-pack-native-label,
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-pack-native-label {
  grid-column:var(--mol-pack-column)!important;
  grid-row:var(--mol-pack-row)!important;
  align-self:start!important;
  justify-self:stretch!important;
  margin:0!important;
  padding:12px 10px 0!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  color:#254d3e!important;
  font-size:clamp(15px,1.2vw,18px)!important;
  font-weight:700!important;
  line-height:1.35!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  text-align:center!important;
  pointer-events:none;
  z-index:2;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-pack-native-price,
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-pack-native-price {
  grid-column:var(--mol-pack-column)!important;
  grid-row:var(--mol-pack-row)!important;
  align-self:end!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:stretch!important;
  margin:0!important;
  padding:0 10px 12px!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  color:#233d32!important;
  font-size:clamp(18px,1.5vw,24px)!important;
  font-weight:700!important;
  line-height:1.25!important;
  text-align:center!important;
  pointer-events:none;
  z-index:2;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-card-controls,
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-card-controls {
  grid-column:1/-1!important;
  grid-row:var(--mol-pack-action-row)!important;
  display:flex!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  margin:4px 0 0!important;
  padding:0!important;
  align-items:stretch!important;
  justify-content:stretch!important;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-card-controls[hidden],
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-card-controls[hidden],
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-unavailable[hidden] {
  display:none!important;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-card-controls>a,
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-card-controls>a {
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
  min-height:50px!important;
  max-width:none!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:12px 16px!important;
  border-radius:10px!important;
  white-space:normal!important;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row[data-mol-pack-preorder]>.mol-pack-option {
  background:#f5f4ef!important;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row[data-mol-pack-disabled]>.mol-pack-option {
  background:#f1f2ef!important;
  border-color:#d9ddd7!important;
  cursor:not-allowed;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row[data-mol-pack-disabled]>:is(.mol-pack-native-label,.mol-pack-native-price) {
  color:#899189!important;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-unavailable {
  grid-column:1/-1!important;
  grid-row:var(--mol-pack-action-row)!important;
  width:100%!important;
  min-height:50px!important;
  border:1px solid #becbbf!important;
  border-radius:10px!important;
  color:#758277!important;
  background:#edf0e9!important;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-card-add-error {
  grid-column:1/-1!important;
  grid-row:var(--mol-pack-error-row)!important;
}
@media(prefers-reduced-motion:reduce) {
  html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-native-row>.mol-pack-option {transition:none}
}

html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-minimum {
  grid-column:1/-1!important;
  grid-row:var(--mol-pack-note-row)!important;
  margin:0!important;
  padding:2px 0!important;
  width:100%!important;
  max-width:none!important;
  color:#5c6c60!important;
  font-size:13px!important;
  line-height:1.5!important;
}
html body :is(main,#main,#purpose-related,#main #purchase,#main #purpose-related) .mol-pack-choice[data-mol-pack-choice]>.mol-pack-minimum[hidden] {display:none!important}

/* The native detail-copy purchase panel fills its column; its doctor entry does too. */
html body :is(main,#main) .product-detail-copy > .product-purchase:has([data-mol-pack-choice]) + .mol-doctor-entry--purchase {
  max-width:none!important;
}
}

/* Owner desktop purchase layout, 16.11.2026. The native purchase and doctor
   entries stay siblings so their existing refresh observers remain authoritative. */
@layer molisan-package-columns {
@media (min-width: 1100px) {
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:12px!important;
    align-items:start!important;
  }
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > * {
    grid-column:1/-1!important;
    min-width:0!important;
  }
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase {
    grid-column:1!important;
    width:100%!important;
    max-width:none!important;
    margin-bottom:0!important;
  }
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase {
    grid-column:2!important;
    align-self:end!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase > details {
    margin:0!important;
  }
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase > details > summary.mol-doctor-link,
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase .mol-pack-choice[data-mol-pack-choice] > .mol-pack-native-row > .mol-card-controls > a {
    box-sizing:border-box!important;
    min-height:52px!important;
    margin:0!important;
    padding:12px 16px!important;
    border-radius:10px!important;
  }
}
}

/* Preview B: keep the native disclosure summary in the action row; expanded
   native conditions participate in the next full-width grid row. */
@layer molisan-package-columns {
@media (min-width: 1100px) {
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase,
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase > details {
    display:contents!important;
  }
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase > details::details-content {
    display:contents!important;
  }
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase > details > summary.mol-doctor-link {
    grid-column:2!important;
    align-self:end!important;
    width:100%!important;
    max-width:none!important;
  }
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase > details > .mol-doctor-conditions {
    grid-column:1/-1!important;
    min-width:0!important;
    margin:12px 0 0!important;
  }
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase > details:not([open]) > .mol-doctor-conditions {display:none!important}
  html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase > details[open] > .mol-doctor-conditions {display:block!important}
}
}

/* Desktop refinement: native package-widths uses equal grid rows. A tile row
   and the action row require their own intrinsic heights in this layout. */
@layer molisan-package-columns {
@media (min-width:1100px) {
html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase .mol-pack-choice[data-mol-pack-choice] {grid-auto-rows:auto!important;}
html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase > details > summary.mol-doctor-link {box-sizing:border-box!important;height:52px!important;min-height:52px!important;font-size:14px!important;line-height:20px!important;}
html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase > details > .mol-doctor-conditions {box-sizing:border-box!important;width:100%!important;max-width:none!important;}
}
}

/* Owner desktop action pair: preserve native content and remove only the
   purchase panel trailing padding that otherwise shifts its sibling Doctor. */
@layer molisan-package-columns {
@media(min-width:1100px) {
 html body #main .product-detail-copy:has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase {padding-bottom:0!important}
 html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase .mol-pack-choice[data-mol-pack-choice] > .mol-pack-native-row > .mol-card-controls > a,
 html body #main :is(.product-detail-copy,.product-summary,.page-hero-copy,.solution-hero-copy):has(> #purchase [data-mol-pack-choice]):has(> #purchase + .mol-doctor-entry--purchase) > #purchase + .mol-doctor-entry--purchase > details > summary.mol-doctor-link {font-size:14px!important;line-height:20px!important;font-weight:700!important}
}
}
