/* Care search statistics · opt-in native dialog · Design System 2 */
.fe-care-stats{position:fixed;inset:0;width:calc(100% - 48px);max-width:960px;max-height:85vh;max-height:85dvh;margin:auto;padding:0;border:1px solid var(--ds-line);border-radius:24px;background:var(--ds-surface);color:var(--ds-ink);overflow:hidden;box-shadow:0 24px 80px #24352d26}
.fe-care-stats:not([open]){display:none}
.fe-care-stats[open]{display:flex;flex-direction:column}
.fe-care-stats::backdrop{background:rgb(25 35 29 / .45)}
.fe-care-stats [hidden]{display:none!important}
.fe-care-stats .fcs-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 32px;border-bottom:1px solid var(--ds-line);flex:none;background:var(--ds-surface)}
.fcs-header>div{min-width:0}
.fe-care-stats .fcs-eyebrow{font-size:.75rem;letter-spacing:.04em;color:var(--ds-primary);font-weight:600;margin-bottom:8px}
.fe-care-stats #fcsTitle{font-size:1.375rem;line-height:1.4;overflow-wrap:anywhere}
.fe-care-stats .fcs-product-link{color:var(--ds-primary);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.fe-care-stats .fcs-product-link:hover{text-decoration-thickness:2px}
.fe-care-stats .fcs-period{font-size:.875rem;color:var(--ds-muted);margin-top:8px}
.fe-care-stats .fcs-close{display:grid;place-items:center;flex:none;width:44px;min-height:44px;border:0;border-radius:12px;background:transparent;color:var(--ds-primary);cursor:pointer}
.fe-care-stats .fcs-close:hover{background:var(--ds-soft)}
.fe-care-stats .fcs-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px 32px 32px;scrollbar-gutter:stable}
.fcs-pet-context{margin-bottom:24px}
.fe-care-stats .fcs-pet-name{font-size:1rem;font-weight:600;display:flex;align-items:center;gap:8px}
.fcs-pet-name:before{content:'';width:8px;height:8px;flex:none;border-radius:50%;background:var(--ds-primary)}
.fcs-pet-select{display:flex;align-items:center;gap:12px;font-size:.875rem;color:var(--ds-muted)}
.fe-care-stats .fcs-pet-select select{min-height:44px;min-width:0;max-width:100%;padding:8px 32px 8px 12px;border:1px solid var(--ds-control);border-radius:12px;background:var(--ds-surface);color:var(--ds-ink);font-size:1rem}
.fcs-layout{display:grid;grid-template-columns:minmax(0,248px) minmax(0,1fr);gap:32px;align-items:start}
.fcs-summary{padding:24px;background:var(--ds-bg);border-radius:20px;min-width:0}
.fe-care-stats .fcs-section-label{font-size:.75rem;color:var(--ds-muted);margin-bottom:16px}
.fcs-primary>span{display:block;font-size:.875rem;color:var(--ds-muted);margin-bottom:8px}
.fcs-primary strong{display:flex;align-items:baseline;gap:8px;font-size:2.5rem;font-weight:700;line-height:1.2;color:var(--ds-primary);font-variant-numeric:tabular-nums;flex-wrap:wrap}
.fcs-primary strong small{font-size:.875rem;font-weight:500}
.fcs-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;margin:24px 0 0}
.fcs-metrics>div{min-width:0}
.fcs-metrics dt{color:var(--ds-muted);font-size:.75rem;margin-bottom:8px}
.fcs-metrics dd{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;font-size:1.125rem;font-weight:600;line-height:1.4;margin:0;font-variant-numeric:tabular-nums}
.fcs-metrics small{font-size:.75rem;font-weight:400}
.fcs-date-range{border-top:1px solid var(--ds-line);padding-top:16px;margin:24px 0 0;display:grid;gap:8px}
.fcs-date-range>div{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:space-between;font-size:.75rem;color:var(--ds-muted)}
.fcs-date-range dd{margin:0;color:var(--ds-ink);font-variant-numeric:tabular-nums}
.fcs-records{min-width:0}
.fcs-section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 16px;margin-bottom:16px}
.fe-care-stats .fcs-section-head h3{font-size:1rem}
.fcs-section-head>span{font-size:.75rem;color:var(--ds-muted)}
.fcs-trend{margin-bottom:32px}
.fcs-trend svg{display:block;width:100%;height:auto;overflow:visible}
.fcs-trend text{font-family:var(--ds-font);font-size:13px;fill:var(--ds-muted)}
.fcs-chart-line{stroke:var(--ds-line);stroke-width:1}
.fcs-bar{fill:#748a70}
.fcs-bar-latest{fill:var(--ds-primary)}
.fcs-daily-table{table-layout:fixed;width:100%;border-collapse:collapse;font-size:.875rem;font-variant-numeric:tabular-nums}
.fcs-daily-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.fcs-daily-table th,.fcs-daily-table td{padding:12px 8px;border-bottom:1px solid var(--ds-line);text-align:right;vertical-align:middle;overflow-wrap:anywhere}
.fcs-daily-table th:first-child{width:42%;text-align:left;padding-left:0}
.fcs-daily-table td:last-child,.fcs-daily-table thead th:last-child{padding-right:0}
.fcs-daily-table thead th{padding-top:8px;font-size:.75rem;color:var(--ds-muted);font-weight:500}
.fcs-daily-table thead small{margin-left:4px;font-weight:400}
.fcs-daily-table tbody th{font-weight:400;color:var(--ds-muted)}
.fcs-daily-table td:last-child{font-weight:600;color:var(--ds-ink)}
.fe-care-stats .fcs-button{display:flex;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:8px 16px;font-size:.875rem;font-weight:500;border:1px solid var(--ds-control);border-radius:12px;background:var(--ds-surface);color:var(--ds-primary);cursor:pointer}
.fe-care-stats .fcs-button:hover{background:var(--ds-soft)}
.fcs-more{width:100%;margin-top:16px}
.fe-care-stats .fcs-history-note{font-size:.875rem;line-height:1.6;color:var(--ds-muted);margin-top:16px}
.fe-care-stats .fcs-method{margin-top:32px;font-size:.875rem;color:var(--ds-muted)}
.fe-care-stats .fcs-method summary{font-weight:500;color:var(--ds-primary);min-height:44px;padding:12px 0}
.fe-care-stats .fcs-method p+p{margin-top:12px}
.fcs-dose-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px 24px;padding:16px 0;border-bottom:1px solid var(--ds-line)}
.fcs-dose-row:first-child{padding-top:0}
.fcs-dose-row>div{min-width:0}
.fe-care-stats .fcs-dose-row p{font-size:.875rem;font-variant-numeric:tabular-nums}
.fcs-dose-row span{display:block;font-size:.75rem;color:var(--ds-muted);margin-top:8px}
.fcs-dose-row strong{max-width:45%;font-weight:600;font-size:1rem;text-align:right}
.fcs-state{display:grid;justify-items:center;align-content:center;gap:24px;min-height:240px;text-align:center;padding:24px 0;color:var(--ds-muted);font-size:1rem}
.fcs-spinner{width:32px;height:32px;border:3px solid var(--ds-line);border-top-color:var(--ds-primary);border-radius:50%;animation:fcs-spin 1s linear infinite}
.fcs-empty-inline{color:var(--ds-muted);font-size:.875rem;padding:16px 0}
@keyframes fcs-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.fcs-spinner{animation:none}}
@media(max-width:767px){
 .fe-care-stats{inset:auto 0 0;width:100%;max-width:none;margin:0;border-radius:20px 20px 0 0;border-bottom:0}
 .fe-care-stats .fcs-header{padding:16px;gap:12px}
 .fe-care-stats #fcsTitle{font-size:1.125rem}
 .fe-care-stats .fcs-body{padding:16px 16px calc(24px + env(safe-area-inset-bottom));scrollbar-gutter:auto}
 .fcs-pet-context{margin-bottom:16px}
 .fcs-layout{grid-template-columns:minmax(0,1fr);gap:24px}
 .fcs-summary{padding:16px}
 .fe-care-stats .fcs-section-label{display:none}
 .fcs-primary{display:flex;justify-content:space-between;align-items:center;gap:16px}
 .fcs-primary>span{margin:0;max-width:50%}
 .fcs-primary strong{font-size:2rem}
 .fcs-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px;gap:12px 16px}
 .fcs-metrics dt{margin-bottom:4px}
 .fcs-date-range{margin-top:16px;padding-top:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .fcs-date-range>div{display:block}
 .fcs-date-range dd{margin-top:4px}
 .fcs-trend{margin-bottom:24px}
 .fcs-trend text{font-size:24px}
 .fcs-dose-row{gap:12px;flex-wrap:wrap}
 .fcs-dose-row strong{max-width:100%}
}
@media(forced-colors:active){.fcs-bar,.fcs-bar-latest{fill:CanvasText}.fcs-spinner{border-color:CanvasText;border-top-color:Highlight}}

/* One food product per care search result. */
.fe-v2 .fe-care-product{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;gap:16px;padding:16px;background:var(--ds-surface);border:1px solid var(--ds-line);border-radius:20px;cursor:pointer}
.fe-v2 .fe-care-product__thumb{width:72px;height:88px;overflow:hidden;border:1px solid var(--ds-line);border-radius:12px;background:#fff}
.fe-v2 .fe-care-product__image{display:block;width:100%;height:100%;object-fit:contain}
.fe-v2 .fe-care-product__body{min-width:0}
.fe-v2 .fe-care-product:hover{border-color:var(--ds-control);background:var(--ds-surface)}
.fe-v2 .fe-care-product .fe-care-card__top{gap:12px;flex-wrap:wrap;margin-bottom:12px}
.fe-v2 .fe-care-product__type{font-size:.75rem;color:var(--ds-primary);font-weight:500}
.fe-v2 .fe-care-product .fe-care-card__when{font-size:.75rem;color:var(--ds-muted)}
.fe-v2 .fe-care-product .fe-care-card__title{font-size:1rem;line-height:1.6;font-weight:600;color:var(--ds-ink);white-space:normal;overflow-wrap:anywhere}
.fe-v2 .fe-care-product__bottom{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-top:12px}
.fe-v2 .fe-care-product .fe-care-card__meta{margin:0;font-size:.875rem;color:var(--ds-muted)}
.fe-v2 .fe-care-product__link{font-size:.875rem;color:var(--ds-primary);white-space:nowrap}
@media(max-width:359px){.fe-v2 .fe-care-product{grid-template-columns:56px minmax(0,1fr);gap:12px;padding:14px}.fe-v2 .fe-care-product__thumb{width:56px;height:70px}}

.fe-v2 .fe-care-stats-hint{display:block;font-size:.875rem;line-height:1.6;color:var(--ds-muted);margin:0 0 16px}
