/* Scoped to the product quick view and its four information dialogs. */
.quickview__actions[data-product-information-actions] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
  width: 100%;
}
.quickview__actions[data-product-information-actions] > .btn {
  box-sizing: border-box;
  min-width: 0;
  min-height: 48px;
  width: 100%;
  margin: 0;
  padding: 9px 6px;
  font-size: .82rem;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
.product-information-button { display: flex; align-items: center; justify-content: center; gap: 5px; }
.product-information-button--delivery { background: #d9eee7; color: #28574b; }
.product-information-button--safety { background: #f8dfdc; color: #713e43; }
.product-information-button--rights { background: #e9e2f5; color: #58406e; }
.product-information-button--manufacturer { background: #f8e8c9; color: #6c4c23; }
.quickview__actions[data-product-information-actions] > .btn:focus-visible,
.product-information-dialog :focus-visible { outline: 3px solid #873875; outline-offset: 3px; }
.product-information-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  box-sizing: border-box;
  width: min(460px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e6cddd;
  border-radius: 18px;
  background: #fffaf7;
  color: #442626;
  box-shadow: 0 14px 50px #44262635;
  font: .95rem/1.6 system-ui, sans-serif;
}
.product-information-dialog::backdrop { background: #34203755; }
.product-information-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #efdee7;
  background: #fffaf7;
}
.product-information-header h2 { margin: 0; font-size: 1.1rem; line-height: 1.4; }
.product-information-dialog button { min-height: 40px; padding: 7px 12px; border: 1px solid #d9bdcf; border-radius: 999px; background: #f8edf3; color: #613751; font: inherit; cursor: pointer; }
.product-information-dialog button:disabled { opacity: .5; cursor: default; }
.product-information-close { flex-shrink: 0; }
.product-information-content { padding: 5px 20px 20px; overflow-wrap: anywhere; }
.product-information-content h3 { margin: 16px 0 4px; font-size: 1rem; }
.product-information-content p { margin: 12px 0; white-space: normal; }
.product-information-content ul { padding-left: 22px; margin: 6px 0 14px; }
.product-information-content li { margin: 6px 0; }
.product-information-content a { color: #873875; text-decoration: underline; }
#product-information-rights { width: min(700px, calc(100vw - 24px)); }
.product-notice-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.product-notice-viewport { max-height: 58dvh; overflow: auto; background: #fff; border: 1px solid #e6cddd; }
.product-information-content .product-notice-image { display: block; width: 100%; max-width: none; height: auto; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; object-fit: contain; }
@media (max-width: 480px) {
  .quickview__actions[data-product-information-actions] { gap: 7px; }
  .quickview__actions[data-product-information-actions] > .btn { font-size: .78rem; padding: 8px 5px; }
  .product-information-button { flex-direction: column; gap: 2px; }
  .product-information-header { gap: 8px; padding: 14px; }
  .product-information-content { padding-inline: 14px; }
  .product-information-dialog { max-height: calc(100dvh - 24px); }
}

/* Mobile product quick view only (same single-column breakpoint as styleshop.css):
   photo, three main buttons, product data and text, then the three information buttons.
   Pure visual ordering; DOM, handlers, close button and scrolling are untouched. */
@media (max-width: 960px) {
  body.shop-page .quickview__dialog { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 9px; }
  body.shop-page .quickview__dialog > *,
  body.shop-page .quickview__media > .quickview-photo-frame,
  body.shop-page .quickview__media > #quickview-img,
  body.shop-page .quickview__media > #quickview-no-image,
  body.shop-page .quickview__meta,
  body.shop-page .quickview__title,
  body.shop-page #quickview-desc { grid-column: 1 / -1; }
  body.shop-page .quickview__media,
  body.shop-page .quickview__content,
  body.shop-page .quickview__actions[data-product-information-actions] { display: contents; }
  body.shop-page .quickview__close { order: 0; }
  body.shop-page .quickview-photo-frame,
  body.shop-page .quickview__media > #quickview-img,
  body.shop-page .quickview__media > #quickview-no-image { order: 1; }
  body.shop-page #quickview-add,
  body.shop-page #quickview-gallery,
  body.shop-page .product-information-button--delivery { order: 2; grid-column: auto; }
  body.shop-page .quickview__meta { order: 3; }
  body.shop-page .quickview__title { order: 4; margin: 0; }
  body.shop-page #quickview-desc { order: 5; margin: 0; }
  body.shop-page .product-information-button--safety,
  body.shop-page .product-information-button--rights,
  body.shop-page .product-information-button--manufacturer { order: 6; grid-column: auto; }
}
@media (max-width: 480px) {
  body.shop-page .quickview__dialog { column-gap: 7px; }
}

/* Accepted payment methods in the product quick view (visual only). Title language follows <html lang>. */
.quickview-pay { box-sizing: border-box; padding: 8px 10px 9px; border-radius: 12px; background: #fdf1f7; border: 1px solid #f1d6e5; }
.quickview-pay__title { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #71314f; line-height: 1.2; }
.quickview-pay__lock { flex: none; color: #71314f; }
.quickview-pay__title > span[lang] { display: none; }
html[lang="hr"] .quickview-pay__title > span[lang="hr"],
html[lang="de"] .quickview-pay__title > span[lang="de"],
html:not([lang="hr"]):not([lang="de"]) .quickview-pay__title > span[lang="en"] { display: inline; }
.quickview-pay__logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.quickview-pay__logos li { margin: 0; padding: 0; line-height: 0; }
.quickview__media .quickview-pay__logos img { width: 44px; height: 28px; max-width: none; object-fit: contain; border-radius: 4px; display: block; }
@media (max-width: 960px) {
  body.shop-page .quickview__media > .quickview-pay { order: 1; grid-column: 1 / -1; }
}
/* Mobile: about 30% smaller badge block (logos, title, gaps, padding); photo and buttons unchanged. */
@media (max-width: 960px) {
  body.shop-page .quickview__media > .quickview-pay { padding: 5px 7px 6px; border-radius: 9px; }
  body.shop-page .quickview-pay__title { gap: 4px; margin: 0 0 4px; font-size: .56rem; }
  body.shop-page .quickview-pay__lock { width: 10px; height: 10px; }
  body.shop-page .quickview-pay__logos { gap: 4px; }
  body.shop-page .quickview__media .quickview-pay__logos img { width: 31px; height: 20px; border-radius: 3px; }
}
