main :is(nav.product-section-buttons, nav.product-jump, nav.product-sections) > a[href$="#description"],
main a.product-description-link[href$="#description"],
main :is(nav.product-section-buttons, nav.product-jump, nav.product-sections):has(> a[href$="#description"]):not(:has(> a:not([href$="#description"]), > button)) {
  display: none !important;
}

html body :is(main, #main) .mol-doctor-entry details > summary.mol-doctor-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid #a5b89b !important;
  border-radius: 8px;
  background: #edf2e8;
  color: #153d31 !important;
  text-decoration: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

html body :is(main, #main) .mol-doctor-entry details > summary.mol-doctor-link:hover {
  background: #e1ead9;
}

html body :is(main, #main) .mol-doctor-entry details > summary.mol-doctor-link::after {
  content: "+";
  flex: none;
}

html body :is(main, #main) .mol-doctor-entry details[open] > summary.mol-doctor-link::after {
  content: "−";
}

/* Leave space for the full add-to-cart label and quantity in package rows. */
html body #main :is(#purchase, .indication-purchase) .mol-pdp-options {
  --mol-package-action-width: 156px;
}

html:lang(ka) body #main :is(#purchase, .indication-purchase) .mol-pdp-options {
  --mol-package-action-width: 174px;
}

@media (max-width: 360px) {
  html body #main :is(#purchase, .indication-purchase) .mol-pdp-options {
    --mol-package-action-width: 132px;
  }

  html:lang(ka) body #main :is(#purchase, .indication-purchase) .mol-pdp-options {
    --mol-package-action-width: 154px;
  }
}

/* The package rows provide the product's purchase controls. */
#main :is(.product-detail, .full-product, .page-hero, .solution-hero):has(.mol-pdp-options > .mol-card-package-row)
  :is(.product-summary, .product-detail-copy, .page-hero-copy, .solution-hero-copy, .product-actions) > a[data-mol-buy][href$="#purchase"],
#main :is(.product-detail, .full-product, .page-hero, .solution-hero):has(.mol-pdp-options > .mol-card-package-row)
  :is(.product-summary, .product-detail-copy, .page-hero-copy, .solution-hero-copy, .product-actions) > a[data-mol-buy][href$="#purchase-2"] {
  display: none !important;
}

@media (max-width: 680px) {
  html body #main :is(#purchase, #purchase-2) .mol-pdp-options > .mol-card-package-row {
    grid-template-columns: minmax(0, 1fr) max-content max-content !important;
    column-gap: 4px !important;
    padding-inline: 6px !important;
  }

  html body #main :is(#purchase, #purchase-2) .mol-card-package-row > .cms-package-label {
    font-size: clamp(12px, 3.55vw, 14px) !important;
    white-space: normal !important;
  }

  html body #main :is(#purchase, #purchase-2) .mol-card-package-row > :is(b, .cms-package-value) {
    font-size: clamp(12px, 3.55vw, 14px) !important;
    white-space: nowrap !important;
  }

  html body #main :is(#purchase, #purchase-2) .mol-card-package-row :is(.cms-price-current, .storefront-current-price, .storefront-product-status) {
    max-width: none;
    white-space: nowrap !important;
  }

  html body #main :is(#purchase, #purchase-2) .mol-card-controls {
    width: auto;
  }

  html body #main :is(#purchase, #purchase-2) .mol-card-controls > a:is(.preorder-whatsapp, .mol-card-cart-add) {
    width: auto !important;
    padding-inline: 6px !important;
  }

  html body #main :is(#purchase, #purchase-2) .mol-card-count-compact {
    font-size: 12px !important;
    padding-inline: 3px;
  }
}

@media (max-width: 360px) {
  html body #main :is(#purchase, #purchase-2) .mol-pdp-options > .mol-card-package-row {
    column-gap: 3px !important;
    padding-inline: 5px !important;
  }

  html body #main :is(#purchase, #purchase-2) .mol-card-controls > a:is(.preorder-whatsapp, .mol-card-cart-add) {
    gap: 4px;
    padding-inline: 4px !important;
  }

  html body #main :is(#purchase, #purchase-2) .mol-card-count-compact {
    padding-inline: 2px;
  }
}
