/**
 * product-details.css
 * Page styles for the product detail page (/product/<slug>, product-details.php).
 *
 * Origin:  moved verbatim from the inline <style> block of product-details.php. Loaded by a <link> tag at the
 *          position of the former inline block (after the shell header, before <main>), so the cascade is unchanged.
 * Scope:   notify-me modal, active pack button, add-to-cart and go-to-cart buttons, delivery information strip.
 *          Everything else on the page is styled with Tailwind utility classes (assets/css/site.css).
 */

/* Notify-me modal (#pdpNotifyModal): hidden until the .active class is added by product-details.js */
.notify-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; align-items: center; justify-content: center; }
.notify-modal.active { display: flex; }

/* Selected pack size button (class toggled by product-details.js) */
.pack-btn-active { background: #065f46 !important; color: white !important; border-color: #065f46 !important; }

/* Both cart buttons use display:flex, so the [hidden] attribute needs !important to take effect */
#addToCartBtn[hidden], #goToCartBtn[hidden] { display: none !important; }
#goToCartBtn { text-decoration: none; }
#addToCartBtn:disabled { opacity: .45; cursor: not-allowed; }

/* Estimated delivery strip below the cart button */
.delivery-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #374151;
  padding: 0.6rem 0.9rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.6rem;
  margin-top: 0.25rem;
}
.delivery-info .delivery-icon {
  color: #059669;
  font-size: 0.85rem;
  flex-shrink: 0;
}
