/* Only the product page receives these styles. Keep the existing breadcrumb. */
body.single-product .woocommerce-breadcrumb,
body.single-product .woocommerce-error,
body.single-product .wc-block-components-notice-banner {
  scroll-margin-top: calc(var(--nandi-product-header-bottom, 200px) + 12px);
}

body.single-product .nandi-product-toast-stack {
  position: fixed;
  top: calc(var(--nandi-product-header-bottom, 200px) + 12px);
  right: max(16px, calc((100vw - 1280px) / 2));
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--nandi-product-header-bottom, 200px) - 28px);
  overflow: auto;
  z-index: 9998;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

body.single-product .nandi-product-toast {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 12px 14px 16px;
  border: 1px solid #d84424;
  border-radius: 12px;
  background: #fff8f4;
  color: #332b2a;
  box-shadow: 0 8px 28px rgba(51, 43, 42, .14);
  font-size: 14px;
  line-height: 1.5;
  pointer-events: auto;
}

body.single-product .nandi-product-toast__message { flex: 1; min-width: 0; }
body.single-product .nandi-product-toast__message a {
  display: inline-block;
  float: none;
  margin: 6px 0 0;
  padding: 3px 8px;
  border: 1px solid #d84424;
  border-radius: 5px;
  background: #fff;
  color: #ad3218;
  font: inherit;
  line-height: 1.5;
  text-decoration: none;
}

body.single-product .nandi-product-toast__close {
  box-sizing: border-box;
  flex: 0 0 32px;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #ad3218;
  font: 24px/1 sans-serif;
  cursor: pointer;
}
body.single-product .nandi-product-toast__close[hidden] { display: none; }
body.single-product .nandi-product-toast__close:hover { background: #fbe9e0; }
body.single-product .nandi-product-toast a:focus-visible,
body.single-product .nandi-product-toast button:focus-visible { outline: 2px solid #ad3218; outline-offset: 2px; }

@media (max-width: 782px) {
  body.single-product .nandi-product-toast-stack { right: 12px; width: calc(100vw - 24px); }
  body.single-product .nandi-product-toast__close { flex-basis: 40px; width: 40px; min-height: 40px; }
}
