/**
 * ND Product Notices - front
 * Colors / size come from CSS variables printed in displayHeader.
 */
.ndpn-notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  color: var(--ndpn-text, #555);
  font-size: var(--ndpn-size, 13px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}
.ndpn-notice__icon {
  display: inline-flex;
  flex: 0 0 auto;
  margin-top: 0.1em;
  color: var(--ndpn-icon, #2f49c4);
  line-height: 0;
}
.ndpn-notice__icon svg {
  width: 1.15em;
  height: 1.15em;
}
.ndpn-notice__text {
  flex: 1 1 auto;
  min-width: 0;
}
.ndpn-notice a.ndpn-notice__link,
.ndpn-notice a.ndpn-notice__link:visited {
  color: var(--ndpn-link, #2f49c4);
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ndpn-notice a.ndpn-notice__link:hover,
.ndpn-notice a.ndpn-notice__link:focus {
  color: var(--ndpn-link, #2f49c4);
  text-decoration: none;
}

/* product page block */
.ndpn-product-notices {
  clear: both;
  margin: 12px 0;
}
.ndpn-product-notices .ndpn-notice:first-child {
  margin-top: 0;
}
.ndpn-product-notices[hidden] {
  display: none !important;
}

/* Position A: themes often lay out .product-additional-info as a flex row
   (wishlist / compare buttons side by side). Give the notices their own full row. */
.product-additional-info:has(> .ndpn-product-notices) {
  flex-wrap: wrap;
}
.product-additional-info > .ndpn-product-notices {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
}

/* cart / checkout line (inside .product-price, often an h5) */
.ndpn-notice--line {
  flex-basis: 100%;
  width: 100%;
  margin-top: 6px;
  clear: both;
  font-size: calc(var(--ndpn-size, 13px) - 1px);
}

/* The line notice is printed by both line hooks (when the template has both):
   show the one under the price, hide the second one ... */
.cart-item:has(.ndpn-notice--line-price) .ndpn-notice--line-actions,
.product-line:has(.ndpn-notice--line-price) .ndpn-notice--line-actions {
  display: none;
}
/* ... unless the price block is hidden: thecheckout "compact cart" hides
   .product-line-info.product-price, so show the one under the qty/price row */
body.compact-cart .cart-item .ndpn-notice--line-actions,
body.compact-cart .product-line .ndpn-notice--line-actions {
  display: flex;
}

/* side cart: narrow panel */
.ndpn-notice--sidecart {
  margin-top: 4px;
  font-size: calc(var(--ndpn-size, 13px) - 2px);
  line-height: 1.35;
}

/* summary positions */
.ndpn-cart-summary {
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fafafa;
}
.ndpn-cart-summary .ndpn-notice {
  margin-top: 0;
}
.ndpn-cart-summary__products {
  margin: 4px 0 0 calc(1.15em + 6px);
  padding: 0;
  list-style: none;
  color: var(--ndpn-text, #555);
  font-size: calc(var(--ndpn-size, 13px) - 1px);
}
.ndpn-cart-summary__products li::before {
  content: "\2022\00a0";
}
