/* Book page buy zone (2.17.33): key-fact cards, delivery card, description card, Butiran & soalan accordion,
   set labels on series pages, photo viewer above floating buttons. Loaded on product pages only (inc/buy-zone.php). */

/* Key facts (item 24): 3-5 small white cards under the price, pastel icon + bold value + grey label. */
.pme-bz-factswrap { container-type: inline-size; margin: 10px 0 14px; }   /* the cards size by their own box (narrow buy column at 1024 px) */
.pme-bz-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }   /* one row: 3-5 cards */
.pme-bz-fact { margin: 0; padding: 10px 6px 9px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; background: #fff; border-radius: var(--pmc-rs, 11px); box-shadow: var(--pmc-sh, 0 1px 3px rgba(11, 61, 145, .08)); min-width: 0; }
.pme-bz-fact__ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 2px; background: #E3ECFA; color: #0B3D91; }
.pme-bz-fact__ic svg { width: 18px; height: 18px; }
.pme-bz-fact--subject .pme-bz-fact__ic { background: #E4F0E2; color: #1E7A3C; }
.pme-bz-fact--pages .pme-bz-fact__ic { background: #FDE8D7; color: #A2531B; }
.pme-bz-fact--edition .pme-bz-fact__ic { background: #EEE6FA; color: #6D28D9; }
.pme-bz-fact--answers .pme-bz-fact__ic { background: #FFF1D2; color: #8A5300; }
.pme-bz-fact strong { font-size: 13.5px; line-height: 1.25; font-weight: 700; color: var(--pme-ink, #1A1F2B); overflow-wrap: normal; word-break: normal; }
.pme-bz-fact strong a { color: inherit !important; text-decoration: none !important; }
.pme-bz-fact strong a:hover { color: var(--pme-blue, #0B3D91) !important; text-decoration: underline !important; }
.pme-bz-fact__k { font-size: 12px; line-height: 1.2; color: var(--pme-muted, #5B6475); }
@media (max-width: 600px) {
	.pme-bz-facts { gap: 5px; }
	.pme-bz-fact { padding: 8px 4px 7px; border-radius: 10px; }
	.pme-bz-fact__ic { width: 28px; height: 28px; }
	.pme-bz-fact__ic svg { width: 16px; height: 16px; }
	.pme-bz-fact strong { font-size: 12px; }
	.pme-bz-fact__k { font-size: 11px; }
}
@container (max-width: 400px) {   /* 2.17.54: Inter is a little wider, 5 cards in a 338 px buy column touched their edges */
	.pme-bz-facts { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Delivery card (items 33, 33b, 33c): light blue, under the key facts. */
.pme-bz-ship { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; background: #EAF2FD; border-radius: var(--pmc-rs, 11px); color: var(--pme-ink, #1A1F2B); }
.pme-bz-ship__ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #0B3D91; display: grid; place-items: center; }
.pme-bz-ship__ic svg { width: 20px; height: 20px; }
.pme-bz-ship p { margin: 0 !important; font-size: 14px; line-height: 1.45; }
.pme-bz-ship__z + .pme-bz-ship__z { margin-top: 2px; }
.pme-bz-ship__z b { color: #1E7A3C; font-weight: 700; }
.pme-bz-ship p.pme-bz-ship__n { margin-top: 6px !important; font-size: 12.5px; color: var(--pme-muted, #5B6475); }

/* Description card (item 25b): 3-line clamp on the text, "Baca lagi / Tutup" inside the card (top tab: cozy.css). */
.pme-bp-lead.pme-bz-short p { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin-bottom: 0 !important; }
.pme-bp-lead.pme-bz-short ul { display: none; }
.pme-bz-more { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0 !important; padding: 0; border: 0; background: none !important; color: var(--pme-blue, #0B3D91) !important; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: none !important; min-height: 32px; }
.pme-bz-more:hover, .pme-bz-more:focus-visible { text-decoration: underline; }

/* Butiran & soalan (item 25): one accordion group, headings stay h3 inside each summary. */
.pme-bp-acc { display: grid; gap: 10px; }
.pme-bp-acc__item { background: #fff; border-radius: var(--pmc-rs, 11px); box-shadow: var(--pmc-sh, 0 0 0 1px var(--pme-line)); }
.pme-bp-acc__item > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; list-style: none; }
.pme-bp-acc__item > summary::-webkit-details-marker { display: none; }
.pme-bp-acc__item > summary::after { content: "+"; flex: none; color: var(--pme-blue, #0B3D91); font-weight: 800; font-size: 20px; line-height: 1; }
.pme-bp-acc__item[open] > summary::after { content: "\2212"; }
.pme-bp-acc__item > summary h3 { margin: 0; font-size: 16.5px; line-height: 1.3; color: var(--pme-blue, #0B3D91); }
.pme-bp-acc__body { padding: 0 16px 14px; }
.pme-bp-acc__body .pme-book { margin: 0; border: 0 !important; box-shadow: none !important; background: none; }
.pme-bp-acc__body .pme-book__list { margin: 0; padding: 0 !important; }
.pme-bp-acc__body .pme-bp-faq { box-shadow: none; }
.pme-bp-acc__body .pme-bp-aud,
.pme-bp-acc__body .pme-bp-about { margin-top: 0; }
.pme-bp-acc__body .pme-bp-about p { margin: 0 0 10px; }

/* Series page set rows (item 35). */
.pme-bz-set { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 5px; }
.pme-bz-set__chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 999px; background: #E3ECFA; color: #0B3D91; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.pme-bz-set__chip svg { width: 14px; height: 14px; }
.pme-bz-set--save .pme-bz-set__chip { background: #E4F0E2; color: #1E7A3C; }
.pme-bz-set__note { font-size: 12px; line-height: 1.35; color: var(--pme-muted, #5B6475); font-weight: 400; }
.pme-bz-set__note del { color: var(--pme-muted, #5B6475); }

/* "Ditambah ke troli" sheet: delivery line from the book page (item 33). */
.pme-bz-sheetship { margin: 8px 0 0; font-size: 13px; color: var(--pme-muted, #5B6475); }

/* Photo viewer above everything: the floating bottom menu (z 9500) and other floating buttons sat on top of it. */
.pswp { z-index: 2147483000 !important; }
body:has(.pswp--open) .pme-bnav,
body:has(.pswp--open) .pme-buybar { display: none !important; }
