/* Datazon Pro: advanced comparison tables. */
.datazon-pro-controls{position:sticky;left:0;display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin:0 0 12px;font-size:.9rem}
.datazon-pro-controls[hidden],.datazon-pro-table [hidden]{display:none!important}
.datazon-pro-sort{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}
.datazon-pro-sort label{font-weight:600}
.datazon-pro-sort select{max-width:100%;min-height:36px;padding:4px 8px;font:inherit}
.datazon-pro-differences{min-height:36px;padding:6px 14px;border:1px solid var(--datazon-border,currentColor);border-radius:999px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.datazon-pro-differences:hover{border-color:var(--datazon-accent,currentColor)}
.datazon-pro-differences[aria-pressed="true"]{border-color:var(--datazon-accent,#2271b1);background:var(--datazon-accent,#2271b1);color:var(--datazon-accent-contrast,#fff)}
.datazon-pro-differences:focus-visible,.datazon-pro-sort select:focus-visible{outline:2px solid var(--datazon-accent,#2271b1);outline-offset:2px}

/* Fixed names (0.7.1). The table has no box of its own: the page scrolls, and a
   table wider than the page slides sideways. The row names stay at the left with
   CSS; the product names are moved to the top of the screen by tables.js, since
   a box that slides sideways cannot hold them at the top with CSS. */
/* Fixed cells need a solid background: the table's own colour when Datazon or a
   design gives it one, and under it --datazon-pro-sticky-bg (the theme's base
   colour). Set that one to your theme's background if the fixed cells do not match it.
   --datazon-pro-sticky-top: the height of a fixed header of your theme, if it has one. */
.datazon-pro-sticky,.datazon-pro-fit{--datazon-pro-sticky-bg:var(--wp--preset--color--base,Canvas)}
/* overflow:hidden would make the table its own scroll box and stop the fixed cells; visible is the fallback. */
.datazon-pro-sticky .datazon-comparison-table,.datazon-pro-fit .datazon-comparison-table{overflow:visible;overflow:clip}
.datazon-pro-sticky .datazon-comparison-table thead th{position:relative;z-index:2;background:linear-gradient(var(--datazon-surface,transparent),var(--datazon-surface,transparent)) var(--datazon-pro-sticky-bg)}
.datazon-pro-sticky .datazon-comparison-table tbody th,.datazon-pro-sticky .datazon-comparison-table thead th:first-child,.datazon-pro-fit .datazon-comparison-table tbody th,.datazon-pro-fit .datazon-comparison-table thead th:first-child{position:sticky;left:0;z-index:1;background:linear-gradient(var(--datazon-soft,transparent),var(--datazon-soft,transparent)),linear-gradient(var(--datazon-surface,transparent),var(--datazon-surface,transparent)) var(--datazon-pro-sticky-bg)}
.datazon-pro-sticky .datazon-comparison-table thead th:first-child,.datazon-pro-fit .datazon-comparison-table thead th:first-child{z-index:3}
.datazon-pro-sticky .datazon-comparison-table--minimal tbody th,.datazon-pro-sticky .datazon-comparison-table--minimal thead th:first-child,.datazon-pro-fit .datazon-comparison-table--minimal tbody th,.datazon-pro-fit .datazon-comparison-table--minimal thead th:first-child{background:linear-gradient(var(--datazon-surface,transparent),var(--datazon-surface,transparent)) var(--datazon-pro-sticky-bg)}
.datazon-pro-stuck .datazon-comparison-table thead th{box-shadow:0 1px 0 var(--datazon-border,rgba(0,0,0,.12))}

/* Products in view (0.7.1): each product column is a share of the box, measured
   in container units, and the others are reached by sliding. Narrower boxes show
   fewer: 4 need about 53rem, 3 about 42rem and 2 about 29rem.
   --datazon-pro-label: width of the column of row names. */
/* The box measures its own width (container-type), so it cannot take it from its
   content: width:100% keeps it full width inside a row of blocks too. */
.datazon-pro-fit{--datazon-pro-label:10.5rem;width:100%;container-type:inline-size;scroll-snap-type:x mandatory;scroll-padding-inline-start:var(--datazon-pro-label);overscroll-behavior-x:contain}
.datazon-pro-fit .datazon-comparison-table{--datazon-pro-view:3;width:auto;min-width:0}
.datazon-pro-fit[data-datazon-pro-view="1"] .datazon-comparison-table{--datazon-pro-view:1}
.datazon-pro-fit[data-datazon-pro-view="2"] .datazon-comparison-table{--datazon-pro-view:2}
.datazon-pro-fit[data-datazon-pro-view="4"] .datazon-comparison-table{--datazon-pro-view:4}
@container (max-width:52.99rem){.datazon-pro-fit[data-datazon-pro-view="4"] .datazon-comparison-table{--datazon-pro-view:3}}
@container (max-width:41.99rem){.datazon-pro-fit[data-datazon-pro-view] .datazon-comparison-table{--datazon-pro-view:2}}
@container (max-width:28.99rem){.datazon-pro-fit[data-datazon-pro-view] .datazon-comparison-table{--datazon-pro-view:1}}
.datazon-pro-fit .datazon-comparison-table [data-datazon-column]{box-sizing:border-box;width:calc((100cqw - var(--datazon-pro-label)) / var(--datazon-pro-view));min-width:calc((100cqw - var(--datazon-pro-label)) / var(--datazon-pro-view));max-width:calc((100cqw - var(--datazon-pro-label)) / var(--datazon-pro-view));padding-right:12px;padding-left:12px}
.datazon-pro-fit .datazon-comparison-table thead th[data-datazon-column]{scroll-snap-align:start}
.datazon-pro-fit .datazon-comparison-table tbody th,.datazon-pro-fit .datazon-comparison-table thead th:first-child{box-sizing:border-box;width:var(--datazon-pro-label);min-width:var(--datazon-pro-label);max-width:var(--datazon-pro-label);padding-right:14px;padding-left:14px;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
.datazon-pro-fit .datazon-comparison-table img{max-width:100%;height:auto}
.datazon-pro-fit .datazon-comparison-table .datazon-button{min-width:0;max-width:100%}

/* The box has no padding at the sides: a fixed column of row names would leave
   a strip there where the sliding cells show through. */
.datazon-pro-fit,.datazon-pro-sticky{padding-right:0;padding-left:0}

/* Reader controls at the left and arrows at the right, on one line above the table. */
.datazon-pro-bar{position:sticky;left:0;display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin:0 0 12px}
.datazon-pro-bar .datazon-pro-controls{position:static;margin:0}
.datazon-pro-bar:not(:has(> :not([hidden]))){display:none}
.datazon-pro-pager{display:flex;gap:8px;align-items:center;margin:0 0 0 auto;font-size:.9rem}
.datazon-pro-pager button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid var(--datazon-border,currentColor);border-radius:50%;background:transparent;color:inherit;font:inherit;font-size:1.5rem;line-height:1;cursor:pointer}
.datazon-pro-pager button:hover:not(:disabled){border-color:var(--datazon-accent,currentColor)}
.datazon-pro-pager button:disabled{opacity:.4;cursor:default}
.datazon-pro-pager button:focus-visible{outline:2px solid var(--datazon-accent,#2271b1);outline-offset:2px}
.datazon-pro-pager__status{font-variant-numeric:tabular-nums}

/* Datazon Pro: advanced carousel. Cards in view on a computer; phones keep Datazon's one card and a half. */
@media(min-width:783px){.datazon-carousel[data-per-view="1"] .datazon-carousel__track{grid-auto-columns:100%}
.datazon-carousel[data-per-view="2"] .datazon-carousel__track{grid-auto-columns:calc((100% - 1rem) / 2)}
.datazon-carousel[data-per-view="4"] .datazon-carousel__track{grid-auto-columns:minmax(180px,calc((100% - 3rem) / 4))}}
.datazon-carousel__controls{align-items:center}
.datazon-carousel__dots{display:flex;flex-wrap:wrap;gap:2px;margin-right:auto}
/* The dot is drawn in the text colour around it: themes give buttons their own (GeneratePress: white), which hid the dots on white. */
.datazon-carousel__controls .datazon-carousel__dot{position:relative;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer}
.datazon-carousel__dot::before{position:absolute;inset:8px;border-radius:50%;background:color-mix(in srgb,currentColor 35%,transparent);content:""}
.datazon-carousel__dot[aria-current="true"]::before{inset:6px;background:var(--datazon-accent,currentColor)}
.datazon-carousel__dot:focus-visible{outline:2px solid var(--datazon-accent,currentColor);outline-offset:1px}
.datazon-carousel__controls .datazon-carousel__pause{font-size:.8rem}

/* Datazon Pro: mini card, inside a sentence. */
.datazon-mini{display:inline;padding:.1em .15em;border-radius:.4em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.datazon-mini__image{display:inline-block;margin-right:.3em;vertical-align:middle;line-height:0}
.datazon-mini__image img{width:1.6em;height:1.6em;object-fit:contain;border-radius:.25em;background:#fff}
.datazon-mini__name{font-weight:600}
.datazon-mini__button{display:inline-block;margin-left:.35em;padding:.05em .6em;border-radius:999px;font-size:.8em;font-weight:700;line-height:1.6;text-decoration:none;white-space:nowrap;vertical-align:.1em}
:where(.datazon-mini){background:var(--datazon-soft,transparent)}
/* One class beats a reset of every link (GeneratePress: a{background-color:transparent}) and still gives way to your own CSS. */
.datazon-mini__button:where(a){background:var(--datazon-accent,#2271b1)}
/* Themes colour and underline the links of the content: the button keeps its own, like Datazon's buttons. */
a.datazon-mini__button.datazon-mini__button,a.datazon-mini__button.datazon-mini__button:visited,a.datazon-mini__button.datazon-mini__button:hover,a.datazon-mini__button.datazon-mini__button:focus-visible{color:var(--datazon-accent-contrast,#fff);text-decoration:none}
a.datazon-mini__button:hover,a.datazon-mini__button:focus-visible{filter:brightness(.92)}
