/* Product page tabs written in Products › Product Tabs (inc/pro/product-tabs.php): whatever the owner puts in a tab's
   text box (paragraphs, headings, lists, links, quotes, pictures, tables, buttons) in the shop's look. The wrapper also
   carries .bj-pdp-policy (site.css: 66ch measure, 16px text, 12px between paragraphs). */
.bj-pdp-tab { max-width: 66ch; font-size: 16px; line-height: 1.7; color: var(--bj-text); }
.bj-pdp-tab > * { margin-top: 0; margin-bottom: 12px; }
.bj-pdp-tab > :last-child { margin-bottom: 0; }
.bj-pdp-tab__intro { margin-bottom: 24px; }
.bj-pdp-details__intro.bj-pdp-tab { margin: 0 !important; }

.bj-pdp-tab :is(h1, h2, h3, h4, h5, h6) { margin: 28px 0 10px; font-family: var(--bj-serif); font-weight: 500; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--bj-charcoal); }
.bj-pdp-tab > :first-child:is(h1, h2, h3, h4, h5, h6) { margin-top: 0; }
.bj-pdp-tab :is(h1, h2) { font-size: 1.75rem; }
.bj-pdp-tab h3 { font-size: 1.45rem; }
.bj-pdp-tab :is(h4, h5, h6) { font-size: 1.2rem; }

.bj-pdp-tab :is(ul, ol) { margin: 0 0 14px; padding-left: 1.3em; }
.bj-pdp-tab li { margin: 0 0 6px; padding-left: 2px; }
.bj-pdp-tab li::marker { color: var(--bj-gold-text); }
.bj-pdp-tab strong { color: var(--bj-charcoal); font-weight: 650; }

.bj-pdp-tab a:not(.wp-block-button__link) { color: var(--bj-gold-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--bj-ease); }
.bj-pdp-tab a:not(.wp-block-button__link):hover { color: var(--bj-charcoal); }
/* the "Read our … policy →" line the first Shipping and Returns tabs end with (a Paragraph with the class bj-tab-link) */
.bj-pdp-tab .bj-tab-link a { font-weight: 600; }

.bj-pdp-tab blockquote { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 2px solid var(--bj-gold); font-family: var(--bj-serif); font-size: 1.2rem; font-style: italic; color: var(--bj-charcoal); }
.bj-pdp-tab blockquote p { margin: 0 0 6px; }
.bj-pdp-tab blockquote cite { font-family: var(--bj-sans); font-size: 14px; font-style: normal; color: var(--bj-muted); }

.bj-pdp-tab figure { margin: 0 0 16px; }
.bj-pdp-tab img { max-width: 100%; height: auto; border-radius: 4px; }
.bj-pdp-tab figcaption { margin-top: 6px; font-size: 14px; color: var(--bj-muted); text-align: left; }
.bj-pdp-tab iframe { max-width: 100%; }
.bj-pdp-tab hr { margin: 22px 0; border: 0; border-top: 1px solid var(--bj-line); }

.bj-pdp-tab table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 15px; }
.bj-pdp-tab :is(th, td) { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--bj-line); background: none; }
.bj-pdp-tab th { font-weight: 700; color: var(--bj-charcoal); }
.bj-pdp-tab .wp-block-table { overflow-x: auto; }

.bj-pdp-tab .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.bj-pdp-tab .wp-block-button__link { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; font-family: var(--bj-sans); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; color: var(--bj-charcoal); background: var(--bj-gold); border: 0; border-radius: 4px; transition: background-color .2s var(--bj-ease); }
.bj-pdp-tab .wp-block-button__link:hover { background: var(--bj-gold-hover); color: var(--bj-charcoal); }
.bj-pdp-tab .is-style-outline .wp-block-button__link { background: transparent; box-shadow: inset 0 0 0 1.5px var(--bj-charcoal); }
.bj-pdp-tab .is-style-outline .wp-block-button__link:hover { color: #fff; background: var(--bj-charcoal); }

/* when the tab names are wider than the screen (phones; more tabs) the row scrolls sideways: a soft fade on the side
   with more names, set by the script in inc/pro/product-tabs.php */
.single-product .woocommerce-tabs ul.tabs.bj-tabs--more-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.single-product .woocommerce-tabs ul.tabs.bj-tabs--more-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.single-product .woocommerce-tabs ul.tabs.bj-tabs--more-start.bj-tabs--more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }

@media (max-width: 689px) {
	.bj-pdp-tab { font-size: 15.5px; }
	.bj-pdp-tab :is(h1, h2) { font-size: 1.5rem; }
	.bj-pdp-tab h3 { font-size: 1.3rem; }
}
