/**
 * EB Products - oils: the oil page (with the product page's stylesheet), the
 * oil parts of a pack's part page, the oil list, the statements table, the
 * oil finder and the oil section of a series page.
 * Loaded only where one of them is printed. Its own classes start with eb-oil-.
 * Accent colour: #00b3a7. Motion is switched off for visitors who ask for less.
 */

/* ---------- oil page ---------- */
.eb-oil-page .eb-product-title { margin-bottom: 14px; }
.eb-oil-page .eb-product-meta { margin-bottom: 20px; }
.eb-oil-short { margin: 0 0 4px; padding: 16px 18px 14px; border: 1px solid #e3e6e9; border-top: 3px solid #00b3a7; border-radius: 14px; background: #fff; }
.eb-oil-short .eb-oil-short-title { margin: 0 0 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; line-height: 1.3; text-transform: uppercase; color: #00857c; }
.eb-oil-short .eb-product-excerpt p { margin: 0 0 0.6em; }
.eb-oil-short .eb-product-excerpt:last-child p:last-child { margin-bottom: 0; }
.eb-oil-short a { color: #00857c; }
.eb-oil-page .eb-oil-actions { grid-template-columns: minmax(0, 1fr); margin: 18px 0 0; }

.eb-oil-preview-note { margin: 0 0 20px; padding: 10px 14px; border-left: 3px solid #b7791f; background: #fdf6e7; font-size: 0.9rem; color: #5f4a16; }

/* the jump line under the top */
.eb-oil-jump { margin: 28px 0 0; padding: 10px 0; border-top: 1px solid #e3e6e9; border-bottom: 1px solid #e3e6e9; }
.eb-oil-jump ul { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.eb-oil-jump li { margin: 0; padding: 0; }
.eb-oil-jump a { display: inline-block; padding: 5px 12px; border: 1px solid #d5dadd; border-radius: 30px; font-size: 0.82rem; font-weight: 600; line-height: 1.4; color: #1f2933; text-decoration: none; transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; }
.eb-oil-jump a:hover,
.eb-oil-jump a:focus { border-color: #00b3a7; background: rgba(0, 179, 167, 0.08); color: #00857c; }

/* sections */
.eb-oil-section { margin-top: 40px; scroll-margin-top: 110px; }
.eb-oil-section > h2 { margin: 0 0 14px; font-size: 1.45rem; line-height: 1.2; }
.eb-oil-section.eb-oil-details > :first-child { margin-top: 0; }
.eb-oil-section a:focus-visible,
.eb-oil-jump a:focus-visible,
.eb-oil-finder a:focus-visible { outline: 2px solid #00b3a7; outline-offset: 2px; }

/* ---------- tables: packs, facts, statements ---------- */
.eb-oil-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e3e6e9; border-radius: 14px; background: #fff; }
table.eb-oil-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 0.94rem; line-height: 1.45; }
table.eb-oil-table th,
table.eb-oil-table td { padding: 11px 16px; border: 0; border-bottom: 1px solid #eef0f2; background: none; text-align: left; vertical-align: top; }
table.eb-oil-table thead th { background: #f6f8f9; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5b6570; white-space: nowrap; }
table.eb-oil-table tbody th { font-weight: 600; color: #1f2933; }
table.eb-oil-table tbody:last-child tr:last-child th,
table.eb-oil-table tbody:last-child tr:last-child td { border-bottom: 0; }
table.eb-oil-table a { color: #00857c; text-decoration: none; }
table.eb-oil-table a:hover,
table.eb-oil-table a:focus { text-decoration: underline; }
.eb-oil-by { display: block; margin-top: 2px; font-size: 0.82rem; font-weight: 400; line-height: 1.4; color: #5b6570; }
.eb-oil-none { color: #9aa3ab; }
.eb-oil-size-note { font-size: 0.82em; font-weight: 400; color: #5b6570; }

table.eb-oil-packs tr.is-active th,
table.eb-oil-packs tr.is-active td { background: rgba(0, 179, 167, 0.07); }
table.eb-oil-packs td { font-variant-numeric: tabular-nums; }

table.eb-oil-facts th { width: 34%; color: #5b6570; }
table.eb-oil-facts td { font-variant-numeric: tabular-nums; }
table.eb-oil-facts td.eb-oil-source { width: 36%; font-size: 0.84rem; color: #5b6570; }

table.eb-oil-approvals { min-width: 640px; }
table.eb-oil-approvals tr.eb-oil-approvals-head th { padding-top: 14px; background: #fff; border-bottom: 2px solid #00b3a7; font-size: 1rem; font-weight: 700; color: #141617; }
table.eb-oil-approvals tr.eb-oil-approvals-head a { color: #141617; }
table.eb-oil-approvals tr.eb-oil-approvals-head a:hover { color: #00857c; }
table.eb-oil-approvals tr.eb-oil-approvals-sub th { background: #f6f8f9; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #5b6570; }
table.eb-oil-approvals tr.eb-oil-approvals-more td { font-size: 0.86rem; color: #5b6570; }
table.eb-oil-approvals td.eb-oil-c-source { font-size: 0.84rem; color: #5b6570; }
table.eb-oil-approvals td.eb-oil-c-fill,
table.eb-oil-approvals td.eb-oil-c-interval { font-variant-numeric: tabular-nums; }
.eb-oil-note-text { color: #1f2933; }

/* ---------- lists on the oil page ---------- */
.eb-oil-documents,
.eb-oil-further,
.eb-oil-statements { margin: 0; padding: 0; list-style: none; }
.eb-oil-documents li,
.eb-oil-further li,
.eb-oil-statements li { margin: 0; padding: 9px 0; border-bottom: 1px solid #eef0f2; line-height: 1.45; }
.eb-oil-documents li:last-child,
.eb-oil-further li:last-child,
.eb-oil-statements li:last-child { border-bottom: 0; padding-bottom: 0; }
.eb-oil-documents a,
.eb-oil-further a { color: #00857c; font-weight: 600; text-decoration: none; }
.eb-oil-documents a:hover,
.eb-oil-further a:hover { text-decoration: underline; }
.eb-oil-further-version { margin-left: 6px; padding: 2px 8px; border-radius: 8px; background: #f4f6f7; font-size: 0.8rem; color: #1f2933; }
.eb-oil-others .ebx-h3 { margin-bottom: 4px; }

/* ---------- the part page of a pack ---------- */
.eb-oil-line { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.eb-oil-line li { margin: 0; padding: 5px 11px; border-radius: 9px; background: #f4f6f7; font-size: 0.86rem; line-height: 1.4; color: #1f2933; }
.eb-oil-line-label { color: #5b6570; }
.eb-oil-line-label::after { content: ":"; }
.eb-oil-to { margin: 18px 0 0; }
.eb-part-packs { margin-top: 40px; }

/* ---------- the oil list (rows and cards are the product list's) ---------- */
.eb-product-listing--oils .eb-product-list-group-title a { color: inherit; text-decoration: none; }
.eb-product-listing--oils .eb-product-list-group-title a:hover,
.eb-product-listing--oils .eb-product-list-group-title a:focus { color: #00857c; }
.eb-oil-explorer[data-view="grid"] .eb-oil-sizes { display: block; margin-bottom: 8px; font-size: 0.86rem; color: #5b6570; }
/* The oil table has two columns more than the product table: its rows stack earlier (column
   minimums plus gaps and padding come to 1068 px). */
@container eb-product-table ( max-width: 1100px ) {
	.eb-oil-list-table .eb-product-thead { display: none; }
	.eb-oil-list-table .eb-product-trow { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; padding: 14px 0; }
	.eb-oil-list-table .eb-product-tcell--image { grid-column: 1; grid-row: 1 / span 8; }
	.eb-oil-list-table .eb-product-tcell--model,
	.eb-oil-list-table .eb-product-tcell--figure,
	.eb-oil-list-table .eb-product-tcell--variants,
	.eb-oil-list-table .eb-product-tcell--more { grid-column: 2; }
	.eb-oil-list-table .eb-product-tcell-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; margin-right: 4px; font-size: 0.85rem; font-weight: 400; color: #5b6570; }
	.eb-oil-list-table .eb-product-tcell-label::after { content: ":"; }
	.eb-oil-list-table .eb-product-tcell--more { text-align: left; }
}

/* ---------- the oil finder ---------- */
.eb-oil-finder { margin: 0; }
.eb-oil-finder-form { padding: 18px 20px 20px; border: 1px solid #e3e6e9; border-top: 3px solid #00b3a7; border-radius: 16px; background: #fff; }
.eb-oil-finder-form[hidden] { display: none; }
.eb-oil-finder-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; }
.eb-oil-finder-field[hidden] { display: none; }
.eb-oil-finder-field label,
.eb-oil-finder-number label { display: block; margin: 0 0 4px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #5b6570; }
.eb-oil-finder-form select,
.eb-oil-finder-form input[type="search"] { width: 100%; height: auto; min-height: 44px; margin: 0; padding: 9px 12px; box-sizing: border-box; border: 1px solid #cfd6db; border-radius: 8px; background-color: #fff; font-size: 0.95rem; line-height: 1.4; color: #1f2933; }
.eb-oil-finder-form select:disabled { background-color: #f4f6f7; color: #9aa3ab; }
.eb-oil-finder-form select:focus-visible,
.eb-oil-finder-form input:focus-visible { outline: 2px solid #00b3a7; outline-offset: 1px; }
.eb-oil-finder-number { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #d5dadd; }
.eb-oil-finder-number input[type="search"] { max-width: 360px; font-variant-numeric: tabular-nums; }

.eb-oil-finder-result { margin-top: 16px; }
.eb-oil-finder-result[hidden] { display: none; }
.eb-oil-answer-title { margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: #141617; }
.eb-oil-answer { margin: 0 0 12px; padding: 16px 18px; border: 1px solid #e3e6e9; border-left: 3px solid #00b3a7; border-radius: 14px; background: #fff; }
.eb-oil-answer p { margin: 0 0 8px; }
.eb-oil-answer > :last-child { margin-bottom: 0; }
.eb-oil-answer--plain { border-left-color: #5b6570; }
.eb-oil-answer-version { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5b6570; }
.eb-oil-answer-scope { font-size: 0.86rem; color: #5b6570; }
.eb-oil-answer-oils { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.eb-oil-answer-oils a,
.eb-oil-finder-oil-name { color: #00857c; text-decoration: none; }
.eb-oil-answer-oils a:hover,
.eb-oil-finder-oil-name:hover { text-decoration: underline; }
.eb-oil-or { font-size: 0.8em; font-weight: 400; color: #5b6570; }
.eb-oil-answer-row { padding: 8px 0; border-top: 1px solid #eef0f2; }
.eb-oil-answer-name { font-weight: 600; color: #1f2933; }
.eb-oil-answer-items { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.9rem; color: #1f2933; }
.eb-oil-answer-label { color: #5b6570; }
.eb-oil-answer-label::after { content: ":"; }
.eb-oil-answer-item .eb-oil-by { display: inline; }
.eb-oil-answer-oil { padding: 10px 0 2px; border-top: 1px solid #eef0f2; }
.eb-oil-finder-oil-name { font-weight: 700; }
.eb-oil-finder-packs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.eb-oil-finder-packs li { margin: 0; padding: 0; }
.eb-oil-finder-packs a { display: inline-block; padding: 5px 11px; border: 1px solid #d5dadd; border-radius: 9px; font-size: 0.86rem; line-height: 1.4; color: #1f2933; text-decoration: none; font-variant-numeric: tabular-nums; }
.eb-oil-finder-packs a:hover,
.eb-oil-finder-packs a:focus { border-color: #00b3a7; color: #00857c; }
.eb-oil-pack-size { font-weight: 700; }
.eb-oil-answer .eb-oil-finder-mix { margin-top: 10px; font-size: 0.86rem; color: #5b6570; }
.eb-oil-finder-enquire { margin-top: 12px; }

.eb-oil-finder-table,
.eb-oil-fold { margin-top: 18px; }
.eb-oil-finder-table > summary,
.eb-oil-fold > summary { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid #d5dadd; border-radius: 30px; font-size: 0.92rem; font-weight: 600; color: #1f2933; cursor: pointer; list-style: none; }
.eb-oil-finder-table > summary::-webkit-details-marker,
.eb-oil-fold > summary::-webkit-details-marker { display: none; }
.eb-oil-finder-table > summary::after,
.eb-oil-fold > summary::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid #00b3a7; border-bottom: 2px solid #00b3a7; transform: rotate(45deg); transition: transform 0.2s ease; }
.eb-oil-finder-table[open] > summary::after,
.eb-oil-fold[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.eb-oil-finder-table > summary:hover,
.eb-oil-fold > summary:hover { border-color: #00b3a7; color: #00857c; }
.eb-oil-finder-table > summary:focus-visible,
.eb-oil-fold > summary:focus-visible { outline: 2px solid #00b3a7; outline-offset: 2px; }
.eb-oil-finder-table > .eb-oil-table-wrap,
.eb-oil-fold > .eb-oil-table-wrap { margin-top: 12px; }

/* ---------- the oil section of a series page ---------- */
.eb-oil-cards { margin: 0 0 14px; }
.eb-oil-card .ebx-h3 a { color: #141617; }
.eb-oil-card .ebx-h3 a:hover,
.eb-oil-card .ebx-h3 a:focus { color: #00857c; }
.ebx .eb-oil-card-line { margin: 0; font-size: 0.9rem; color: #5b6570; }
.eb-oil-series-section .eb-oil-statements { margin: 0 0 6px; }

/* ---------- phones ---------- */
@media ( max-width: 640px ) {
	.eb-oil-section { margin-top: 30px; }
	.eb-oil-section > h2 { font-size: 1.25rem; }
	.eb-oil-jump { margin-top: 22px; }

	/* Tables become lists: a block per row, each value under its column's name. */
	.eb-oil-table-wrap { overflow-x: visible; border: 0; border-radius: 0; background: none; }
	table.eb-oil-table,
	table.eb-oil-table tbody,
	table.eb-oil-table tr,
	table.eb-oil-table th,
	table.eb-oil-table td { display: block; width: auto; }
	table.eb-oil-approvals { min-width: 0; }
	table.eb-oil-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	table.eb-oil-table tr { margin: 0 0 10px; padding: 10px 14px; border: 1px solid #e3e6e9; border-radius: 12px; background: #fff; }
	table.eb-oil-table th,
	table.eb-oil-table td { padding: 3px 0; border: 0; }
	table.eb-oil-table td:empty { display: none; }
	table.eb-oil-table td[data-label]::before { content: attr(data-label) ": "; font-size: 0.82rem; color: #5b6570; }
	table.eb-oil-table tbody th { font-size: 1rem; }
	table.eb-oil-packs tbody th[data-label]::before { content: attr(data-label) ": "; font-size: 0.82rem; font-weight: 400; color: #5b6570; }
	table.eb-oil-facts th,
	table.eb-oil-facts td.eb-oil-source { width: auto; }
	table.eb-oil-approvals tr.eb-oil-approvals-head,
	table.eb-oil-approvals tr.eb-oil-approvals-sub,
	table.eb-oil-approvals tr.eb-oil-approvals-more { margin: 14px 0 8px; padding: 0 0 6px; border: 0; border-bottom: 2px solid #00b3a7; border-radius: 0; background: none; }
	table.eb-oil-approvals tr.eb-oil-approvals-sub,
	table.eb-oil-approvals tr.eb-oil-approvals-more { border-bottom: 0; }
	table.eb-oil-approvals tr.eb-oil-approvals-head th { padding: 0; border: 0; }
	table.eb-oil-approvals tr.eb-oil-approvals-sub th { padding: 6px 10px; }
	.eb-oil-by { display: inline; margin-left: 4px; }

	.eb-oil-finder-form { padding: 14px 14px 16px; }
	.eb-oil-finder-fields { grid-template-columns: minmax(0, 1fr); }
	.eb-oil-finder-number input[type="search"] { max-width: none; }
	.eb-oil-answer { padding: 14px; }
	.eb-oil-answer-items { flex-direction: column; gap: 2px; }
}

@media ( prefers-reduced-motion: reduce ) {
	.eb-oil-jump a,
	.eb-oil-finder-table > summary::after,
	.eb-oil-fold > summary::after { transition: none; }
}
