/* Only structural behavior; component values come from block controls/theme presets. */
.csyd { min-width:0; max-width:100%; box-sizing:border-box; color:inherit; font:inherit; }
.csyd *, .csyd *::before, .csyd *::after { box-sizing:border-box; }
.csyd [hidden] { display:none !important; }
.csyd .csyd-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,max(var(--csyd-card-min),calc((100% - (var(--csyd-max-columns) - 1)*var(--csyd-gap))/var(--csyd-max-columns)))),1fr)); gap:var(--csyd-gap); }
.csyd button, .csyd select { font:inherit; max-width:100%; }
.csyd .csyd-card { display:flex; align-items:center; gap:var(--csyd-gap); width:100%; padding:var(--csyd-card-padding); border:1px solid currentColor; border-radius:var(--csyd-radius); background:var(--csyd-card-bg,var(--wp--preset--color--crema,transparent)); color:inherit; text-align:start; cursor:pointer; overflow-wrap:anywhere; }
.csyd .csyd-card img { width:var(--csyd-card-padding); min-width:2em; height:2em; object-fit:contain; }
.csyd .csyd-card[aria-pressed="true"] { outline:2px solid var(--csyd-accent,currentColor); outline-offset:-2px; }
.csyd :is(button,select):focus-visible { outline:3px solid var(--csyd-accent,currentColor); outline-offset:3px; }
.csyd .csyd-subsection, .csyd .csyd-form, .csyd .csyd-results { margin-block-start:var(--wp--preset--spacing--medium,1.5em); }
.csyd .csyd-controls { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--csyd-control-min)),1fr)); gap:var(--csyd-gap); }
.csyd .csyd-controls label { display:flex; flex-direction:column; gap:.4em; min-width:0; }
.csyd select { width:100%; padding:.6em; border:1px solid currentColor; color:inherit; background:var(--csyd-card-bg,var(--wp--preset--color--crema,transparent)); border-radius:var(--csyd-radius); }
.csyd .csyd-actions { display:flex; flex-wrap:wrap; gap:var(--csyd-gap); margin-block-start:var(--csyd-gap); }
.csyd .csyd-actions button { padding:.6em 1em; border:1px solid currentColor; border-radius:var(--csyd-radius); cursor:pointer; }
.csyd .csyd-submit { background:var(--csyd-accent,var(--wp--preset--color--tinta,transparent)); color:var(--wp--preset--color--crema,inherit); }
.csyd .csyd-reset { background:transparent; color:inherit; }
.csyd .csyd-status:empty, .csyd .csyd-results:empty { display:none; }
.csyd .csyd-results { display:grid; gap:var(--csyd-gap); }
.csyd .csyd-result { border:1px solid currentColor; border-radius:var(--csyd-radius); padding:var(--csyd-card-padding); overflow-wrap:anywhere; }
.csyd .csyd-result h3 { margin-block-start:0; }

/* Shared result presentation; taxonomy cards and query controls keep their own settings. */
.csyd .csyd-results { container: csyd-results / inline-size; }
.csyd .csyd-result-set { min-width:0; font-size:var(--csyd-result-type-size,16px); font-family:var(--csyd-result-family,inherit); font-weight:var(--csyd-result-weight,inherit); text-align:var(--csyd-result-align,start); color:var(--csyd-result-text,inherit); }
.csyd .csyd-microcards { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--csyd-result-card-gap,12px); }
.csyd .csyd-microcard { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--csyd-result-content-gap,12px); padding:var(--csyd-result-padding,16px); margin-block:var(--csyd-result-card-margin,0px); border:var(--csyd-result-border-width,1px) var(--csyd-result-border-style,solid) var(--csyd-result-border,currentColor); border-radius:var(--csyd-result-radius,8px); background:var(--csyd-result-bg,transparent); }
.csyd .csyd-result-photo { display:flex; align-items:center; justify-content:center; min-width:0; min-height:0; width:min(100%,var(--csyd-result-photo-width,128px)); align-self:start; aspect-ratio:var(--csyd-result-photo-ratio,1 / 1); padding:4px; border:1px dashed currentColor; text-align:center; font-size:.8em; overflow-wrap:anywhere; }
.csyd .csyd-result-photo img { width:100%; height:100%; object-fit:contain; }
.csyd .csyd-result-info { min-width:0; container: csyd-info / inline-size; }
.csyd .csyd-result-actions { min-width:0; container:csyd-action-area / inline-size; align-self:var(--csyd-result-actions-vertical-align,start); }
.csyd .csyd-result-info h3 { margin:0 0 .5em; font-size:1.15em; line-height:1.35; }
.csyd .csyd-result-info p { margin:0 0 .65em; }
.csyd .csyd-result-state { font-size:.875em; }
.csyd .csyd-result-summary { display:inline-block; margin-top:.75em; margin-bottom:0; text-decoration:none !important; color:var(--csyd-result-summary-color,inherit); font-weight:var(--csyd-result-summary-weight,600); }
.csyd .csyd-result-links { display:grid; grid-template-columns:minmax(0,1fr); width:min(100%,var(--csyd-result-button-width,184px)); gap:var(--csyd-result-button-gap,8px); margin-top:var(--csyd-result-button-margin,8px); }
.csyd .csyd-result-link-disabled { display:flex; flex-direction:column; justify-content:center; min-height:44px; min-height:max(44px,var(--csyd-result-button-height,44px)); padding:var(--csyd-result-button-padding,8px); border:var(--csyd-result-button-border-width,1px) var(--csyd-result-button-border-style,dashed) var(--csyd-result-button-border,currentColor); border-radius:var(--csyd-result-button-radius,8px); background:var(--csyd-result-button-bg,transparent); color:var(--csyd-result-button-text,inherit); text-align:var(--csyd-result-button-align,center); font-family:var(--csyd-result-button-family,inherit); font-size:var(--csyd-result-button-type-size,16px); font-weight:var(--csyd-result-button-weight,inherit); overflow-wrap:anywhere; }
.csyd .csyd-result-link-disabled small { display:block; font-size:.8em; font-weight:400; }
.csyd .csyd-summary-title { margin-block:1.25em .5em; }
.csyd .csyd-table-hint { font-size:.875em; }
.csyd .csyd-table-scroll { width:100%; max-width:100%; min-width:0; overflow-x:auto; border:var(--csyd-result-table-border-width,1px) var(--csyd-result-table-border-style,solid) var(--csyd-result-table-border,currentColor); border-radius:var(--csyd-result-radius,8px); background:var(--csyd-result-table-bg,var(--csyd-result-bg,transparent)); }
.csyd .csyd-summary-table { border-collapse:separate; border-spacing:var(--csyd-result-table-spacing,0px); width:100%; table-layout:fixed; margin:0; color:var(--csyd-result-table-text,inherit); font-family:var(--csyd-result-table-family,inherit); font-size:var(--csyd-result-table-type-size,16px); font-weight:var(--csyd-result-table-weight,inherit); }
.csyd .csyd-summary-table caption { text-align:var(--csyd-result-table-align,start); padding:var(--csyd-result-table-padding,12px); }
.csyd .csyd-summary-table th, .csyd .csyd-summary-table td { width:200px; padding:var(--csyd-result-table-padding,12px); border:var(--csyd-result-table-border-width,1px) var(--csyd-result-table-border-style,solid) var(--csyd-result-table-border,currentColor); vertical-align:top; text-align:var(--csyd-result-table-align,start); overflow-wrap:anywhere; }
.csyd .csyd-summary-table th { background:var(--csyd-result-table-head-bg,transparent); color:var(--csyd-result-table-head-text,inherit); font-weight:var(--csyd-result-table-head-weight,700); }
.csyd .csyd-summary-table tr > :first-child { width:160px; }
.csyd .csyd-summary-table ul { padding-inline-start:1.2em; margin:0; }
.csyd .csyd-summary-table li + li { margin-top:.5em; }
.csyd .csyd-result-set :focus-visible { outline:3px solid currentColor; outline-offset:2px; }
/* Stack on small containers; retain readable information before adding columns. */
@container csyd-results (min-width:600px) {
 .csyd .csyd-microcard { grid-template-columns:min(var(--csyd-result-photo-width,128px),35%) minmax(0,1fr); column-gap:var(--csyd-result-photo-info-gap,50px); }
 .csyd .csyd-result-photo { grid-column:1; grid-row:1 / span 2; width:100%; }
 .csyd .csyd-result-info { grid-column:2; grid-row:1; }
 .csyd .csyd-result-actions { grid-column:2; grid-row:2; }
}
@container csyd-results (min-width:900px) {
 .csyd .csyd-microcard { grid-template-columns:min(var(--csyd-result-photo-width,128px),max(72px,calc(100% - var(--csyd-result-photo-info-gap,50px) - var(--csyd-result-info-actions-gap,50px) - min(var(--csyd-result-button-width,184px),24%) - 240px))) var(--csyd-result-photo-info-gap,50px) minmax(0,1fr) var(--csyd-result-info-actions-gap,50px) min(var(--csyd-result-button-width,184px),24%); column-gap:0; }
 .csyd .csyd-result-photo { grid-column:1; grid-row:1; }
 .csyd .csyd-result-info { grid-column:3; grid-row:1; }
 .csyd .csyd-result-actions { grid-column:5; grid-row:1; }
}
@container csyd-action-area (min-width:260px) {
 .csyd .csyd-result-links { grid-template-columns:repeat(2,minmax(0,1fr)); width:min(100%,calc(2 * var(--csyd-result-button-width,184px) + var(--csyd-result-button-gap,8px))); }
}

/* Card typography is independent of filter labels, buttons and results. */
.csyd .csyd-card { font-family:var(--csyd-card-font-family,inherit); font-weight:var(--csyd-card-font-weight,inherit); text-align:var(--csyd-card-text-align,start); }
.csyd .csyd-card > span { flex:1; min-width:0; text-align:inherit; color:var(--csyd-card-text-color,inherit); }
.csyd .csyd-categories > .csyd-card:only-child { justify-self:center; box-sizing:border-box; max-width:50%; font-size:20px; font-weight:600; }

/* Action overrides are opt-in, retaining the existing defaults and keyboard focus. */
.csyd .csyd-actions { gap:var(--csyd-action-gap,var(--csyd-gap)); justify-content:var(--csyd-action-justify,flex-start); margin-block-start:var(--csyd-action-margin-top,var(--csyd-gap)); }
.csyd .csyd-actions button { font-family:var(--csyd-action-font-family,inherit); font-weight:var(--csyd-action-font-weight,inherit); text-align:var(--csyd-action-text-align,inherit); padding:var(--csyd-action-padding,.6em) var(--csyd-action-padding,1em); border-radius:var(--csyd-action-radius,var(--csyd-radius)); min-width:min(100%,var(--csyd-action-min,0px)); overflow-wrap:anywhere; flex-basis:var(--csyd-action-basis,auto); }
.csyd .csyd-submit { background:var(--csyd-action-bg,var(--csyd-accent,var(--wp--preset--color--tinta,transparent))); color:var(--csyd-action-text,var(--wp--preset--color--crema,inherit)); }
.csyd .csyd-reset { background:var(--csyd-action-bg,transparent); color:var(--csyd-action-text,inherit); }

/* Plain price-position link, separate from the two existing actions. */
.csyd .csyd-result-price-check { font:inherit; color:inherit; background:none; border:0; padding:0; text-decoration:underline; }
.csyd .csyd-result-links a.csyd-result-link-disabled { text-decoration:none; }

.csyd .csyd-result-price-check[aria-disabled="true"] { text-decoration:none; }

/* Approved product presentation; reuse all existing 51 visual custom properties. */
.csyd .csyd-product-short-description { line-height:1.4; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.csyd .csyd-product-advantages ul,.csyd .csyd-product-disadvantages ul { margin:.25em 0 .65em; padding-inline-start:1.2em; }
.csyd .csyd-product-price { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.5em; align-items:baseline; margin-block:.65em; }
.csyd .csyd-product-price .csyd-result-price-check { text-align:right; overflow-wrap:anywhere; }
.csyd .csyd-result-summary.csyd-result-link-disabled { background:transparent; color:var(--csyd-result-summary-color,inherit); font-weight:var(--csyd-result-summary-weight,600); width:min(100%,var(--csyd-result-button-width,184px)); text-decoration:none; }
.csyd .csyd-result-photo { padding:0; border-style:solid; }
.csyd .csyd-result-photo img { display:block; }
@container csyd-action-area (min-width:260px) {
 .csyd .csyd-result-summary.csyd-result-link-disabled { width:min(var(--csyd-result-button-width,184px),calc((100% - var(--csyd-result-button-gap,8px))/2)); }
}
.csyd .csyd-product-short-description { max-width:65ch; }

/* Each supplier is a normal inline label/link pair inside the information area. */
.csyd .csyd-product-price { display:block; }
.csyd .csyd-provider-line { display:block; margin:0 0 .25em; text-align:start; white-space:normal; overflow-wrap:anywhere; }
.csyd .csyd-provider-line .csyd-provider-label,.csyd .csyd-provider-line .csyd-provider-query { display:inline; float:none; position:static; }
.csyd .csyd-provider-query { font:inherit; text-align:start; color:inherit; }

/* Public catalogue-pending presentation: readable without JavaScript. */
.csyd .csyd-notice { padding:1em 0; border:0; background:transparent; text-align:center; font-weight:700; line-height:1.5; }
.csyd .csyd-submit:disabled { cursor:not-allowed; opacity:.7; }

/* Design snapshot from the saved YosiBot block and its result appearance. */
.csyd {
    font: 18px/1.7 Georgia, "Times New Roman", serif;
    --csyd-max-columns: 3;
    --csyd-card-min: 170px;
    --csyd-card-padding: 14px;
    --csyd-control-min: 230px;
    --csyd-gap: 12px;
    --csyd-radius: 8px;
    --csyd-card-bg: #e5ebd8;
    --csyd-card-text-color: #842f49;
    --csyd-accent: #363b3b;
    --csyd-card-text-align: center;
    --csyd-card-font-weight: 600;
    --csyd-action-text-align: center;
    --csyd-action-font-weight: 600;
    --csyd-action-bg: #842f49;
    --csyd-action-text: #fff8ee;
    --csyd-action-gap: 48px;
    --csyd-action-justify: center;
    --csyd-action-margin-top: 50px;
    --csyd-result-text: #30352d;
    --csyd-result-padding: 10px;
    --csyd-result-radius: 8px;
    --csyd-result-type-size: 18px;
    --csyd-result-family: inherit;
    --csyd-result-weight: inherit;
    --csyd-result-align: start;
    --csyd-result-border-width: 1px;
    --csyd-result-border-style: solid;
    --csyd-result-card-gap: 10px;
    --csyd-result-card-margin: 0px;
    --csyd-result-content-gap: 30px;
    --csyd-result-photo-info-gap: 50px;
    --csyd-result-info-actions-gap: 50px;
    --csyd-result-button-bg: #d7dbbd;
    --csyd-result-button-text: #315c3b;
    --csyd-result-button-border: #315C3B;
    --csyd-result-button-border-width: 1px;
    --csyd-result-button-border-style: solid;
    --csyd-result-button-radius: 8px;
    --csyd-result-button-padding: 4px;
    --csyd-result-button-height: 44px;
    --csyd-result-button-width: 184px;
    --csyd-result-button-gap: 8px;
    --csyd-result-button-margin: 8px;
    --csyd-result-button-family: inherit;
    --csyd-result-button-type-size: 18px;
    --csyd-result-button-weight: 600;
    --csyd-result-button-align: center;
    --csyd-result-summary-color: #8b304a;
    --csyd-result-summary-weight: 500;
    --csyd-result-actions-vertical-align: center;
    --csyd-result-photo-width: 300px;
    --csyd-result-photo-ratio: 1 / 1;
    --csyd-result-table-bg: #d7dbbd;
    --csyd-result-table-text: #30352d;
    --csyd-result-table-head-bg: #c4cbaa;
    --csyd-result-table-head-text: #30352d;
    --csyd-result-table-family: inherit;
    --csyd-result-table-type-size: 17px;
    --csyd-result-table-weight: inherit;
    --csyd-result-table-head-weight: 700;
    --csyd-result-table-align: start;
    --csyd-result-table-border: #89947b;
    --csyd-result-table-border-width: 1px;
    --csyd-result-table-border-style: solid;
    --csyd-result-table-padding: 12px;
    --csyd-result-table-spacing: 0px;
}
.csyd-entry { max-width: none !important; }
.csyd-entry .csyd-question { margin: 0 auto; text-align: center; }
.csyd-entry .csyd-question img { max-width: 100%; height: auto; }
.csyd-entry .csyd-badge { text-align: center; color: var(--wp--preset--color--tinta, #842f49); }
.csyd-entry .csyd-gama { margin-block: .65em; font-size: .9em; }
.csyd .csyd-provider-action { text-decoration: none; }

.csyd .csyd-affiliation-notice { font-size:.85em; text-wrap:pretty; }

body .cs-main > .cs-reading:has(.csyd-entry) {
    max-width: min(100%, calc(var(--wp--style--global--content-size, 1120px) + 112px));
}

.csyd .csyd-gama { text-align:center; }
