/* 10.4.10 — Search frames and checkout steps share the current theme. */
html[data-theme] body.ecu-mercury .home-discovery .discovery-shell{
 padding:clamp(24px,3vw,36px);border-radius:24px!important;
}
/* The field owns the focus ring; the native input never draws a second frame. */
html[data-theme] body.ecu-mercury :is(.home-discovery,.site-search-dialog) .discovery-input{
 display:flex;flex-wrap:nowrap;align-items:center;gap:10px;min-width:0;
 min-height:64px;padding:7px 7px 7px 16px;border:1px solid var(--mc-control-border);
 border-radius:18px;background:var(--mc-control)!important;box-shadow:none;outline:0;
}
html[data-theme] body.ecu-mercury :is(.home-discovery,.site-search-dialog) .discovery-input:focus-within{
 border-color:var(--mc-link);outline:3px solid rgba(23,105,170,.16)!important;outline-offset:2px;box-shadow:none;
}
html[data-theme] body.ecu-mercury :is(.home-discovery,.site-search-dialog) .discovery-input input[type="search"],
html[data-theme] body.ecu-mercury :is(.home-discovery,.site-search-dialog) .discovery-input input[type="search"]:focus{
 flex:1 1 0;width:0;min-width:0;min-height:44px;margin:0;padding:10px 0!important;
 border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;
 background:transparent!important;color:var(--mc-ink)!important;font:400 16px/1.5 var(--mc-ui);
 appearance:none;-webkit-appearance:none;
}
body.ecu-mercury :is(.home-discovery,.site-search-dialog) input[type="search"]::-webkit-search-cancel-button{display:none}
body.ecu-mercury :is(.home-discovery,.site-search-dialog) .discovery-input>svg{flex:0 0 20px;width:20px;height:20px;color:var(--mc-link)}
body.ecu-mercury :is(.home-discovery,.site-search-dialog) .search-clear{
 display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:12px;
 margin:0;border:0;border-radius:12px;background:transparent;color:var(--mc-secondary);
}
body.ecu-mercury :is(.home-discovery,.site-search-dialog) .search-clear:hover{background:var(--mc-fog);color:var(--mc-ink)}
body.ecu-mercury :is(.home-discovery,.site-search-dialog) .discovery-input>.btn{
 flex:0 0 auto;min-width:96px;min-height:48px;padding:12px 20px;border-radius:12px!important;
}
body.ecu-mercury :is(.discovery-chips,.search-examples){gap:8px;margin-top:18px}
body.ecu-mercury :is(.discovery-chips,.search-examples)>a{display:inline-flex;align-items:center;min-height:38px;padding:8px 13px;line-height:1.5}
/* A straight divider separates the results; each result has one complete frame. */
html[data-theme] body.ecu-mercury :is(.home-discovery,.site-search-dialog) [data-search-feedback]{
 margin-top:24px;padding:20px 0 0;border:0;border-top:1px solid var(--mc-line);
 border-radius:0;background:transparent;
}
body.ecu-mercury :is(.home-discovery,.site-search-dialog) [data-search-status]{
 margin:0 0 14px;color:var(--mc-secondary);font-size:13px;line-height:1.6;
}
body.ecu-mercury :is(.home-discovery,.site-search-dialog) [data-search-results],
body.ecu-mercury .search-page .search-result-list{display:grid;gap:12px;min-width:0}
body.ecu-mercury .home-discovery .discovery-results{grid-template-columns:repeat(2,minmax(0,1fr))}
body.ecu-mercury .site-search-dialog .discovery-results,
body.ecu-mercury .search-page .search-result-list{grid-template-columns:minmax(0,1fr)}
html[data-theme] body.ecu-mercury :is(.home-discovery,.site-search-dialog) [data-search-results]>a,
html[data-theme] body.ecu-mercury .search-page .search-result-list>a{
 display:flex;align-items:flex-start;min-width:0;height:auto;padding:20px;
 border:1px solid var(--mc-control-border);border-radius:16px!important;
 background:var(--mc-fog);color:var(--mc-ink);box-shadow:none;text-decoration:none;
 overflow-wrap:anywhere;transition:background-color .18s,border-color .18s;
}
body.ecu-mercury :is(.home-discovery,.site-search-dialog) [data-search-results]>a>span,
body.ecu-mercury .search-page .search-result-list>a>span{display:block;min-width:0;width:100%}
html[data-theme] body.ecu-mercury :is(.home-discovery,.site-search-dialog) [data-search-results]>a:hover,
html[data-theme] body.ecu-mercury .search-page .search-result-list>a:hover{background:var(--mc-tint);border-color:var(--mc-link)}
body.ecu-mercury :is(.home-discovery,.site-search-dialog) [data-search-results] small,
body.ecu-mercury .search-page .search-result-list small{
 display:block;margin:0 0 8px;color:var(--mc-link);font:600 10px/1.5 var(--mc-ui);letter-spacing:.08em;text-transform:uppercase;
}
body.ecu-mercury :is(.home-discovery,.site-search-dialog) [data-search-results] b,
body.ecu-mercury .search-page .search-result-list b{display:block;margin:0;color:var(--mc-ink);font:650 17px/1.4 var(--mc-ui)}
body.ecu-mercury :is(.home-discovery,.site-search-dialog) [data-search-results] p,
body.ecu-mercury .search-page .search-result-list p{margin:8px 0 0;color:var(--mc-secondary);font:400 14px/1.65 var(--mc-ui)}
body.ecu-mercury :is(.home-discovery,.site-search-dialog,.search-page) :is(a,button):focus-visible{
 outline:2px solid var(--mc-focus)!important;outline-offset:3px;
}
html[data-theme] body.ecu-mercury .site-search-dialog{
 padding:28px!important;max-height:calc(100dvh - 32px);margin:min(7vh,64px) auto 16px!important;overscroll-behavior:contain;
}
body.ecu-mercury .site-search-dialog::backdrop{background:rgba(7,18,32,.6);backdrop-filter:blur(4px)}
body.ecu-mercury .site-search-dialog .search-dialog-head button{width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:var(--mc-fog);color:var(--mc-ink)}
body.ecu-mercury .site-search-dialog .search-help{color:var(--mc-secondary)}
body.ecu-mercury .search-page-form{
 align-items:center;gap:10px;padding:7px 7px 7px 16px;border:1px solid var(--mc-control-border);border-radius:18px;background:var(--mc-control);
}
body.ecu-mercury .search-page-form:focus-within{border-color:var(--mc-link);outline:3px solid rgba(23,105,170,.16);outline-offset:2px}
html[data-theme] body.ecu-mercury .search-page-form input[type="search"],
html[data-theme] body.ecu-mercury .search-page-form input[type="search"]:focus{
 margin:0;padding:10px 0!important;min-height:44px;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;outline:0!important;font-size:16px;color:var(--mc-ink);
}
body.ecu-mercury .search-page-form>.btn{min-height:48px;border-radius:12px!important}
/* The checkout bar has four padded, fully visible states in either theme. */
html[data-theme] body.ecu-mercury .checkout-premium .commerce-head{
 padding:32px 0 28px!important;background:var(--mc-canvas)!important;
 color:var(--mc-ink);border:0!important;border-bottom:1px solid var(--mc-line)!important;
}
html[data-theme] body.ecu-mercury .checkout-premium .commerce-head h1{color:var(--mc-ink)!important;line-height:1.2}
html[data-theme] body.ecu-mercury .checkout-premium .commerce-head p{color:var(--mc-secondary)!important;line-height:1.7}
body.ecu-mercury .checkout-premium .checkout-stepper{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;
 margin:24px 0 0;padding:8px;border:1px solid var(--mc-line);border-radius:18px;
 background:var(--mc-card);overflow:visible;
}
body.ecu-mercury .checkout-premium .checkout-stepper>span{
 display:flex;align-items:center;gap:10px;min-width:0;min-height:52px;margin:0;padding:12px 16px;
 border:1px solid transparent;border-radius:12px;background:transparent;color:var(--mc-secondary);
 font-size:12px;line-height:1.5;white-space:normal;
}
body.ecu-mercury .checkout-premium .checkout-stepper b{color:inherit;font-size:13px;font-weight:650;overflow-wrap:anywhere}
body.ecu-mercury .checkout-premium .checkout-stepper>span.active{background:var(--mc-tint);border-color:var(--mc-link);color:var(--mc-ink)}
body.ecu-mercury .checkout-premium .checkout-stepper>span.done{color:var(--mc-link)}
body.ecu-mercury .checkout-premium .wizard-controls{border-color:var(--mc-line);gap:12px}
body.ecu-mercury .checkout-premium :is(.wizard-controls,.review-confirm-form) .btn{
 min-height:50px;padding:14px 20px;line-height:1.5;white-space:normal;border-radius:14px!important;
}
html[data-theme] body.ecu-mercury .checkout-premium .commerce-primary{background:#1769aa!important;color:#fff!important;border-color:#1769aa!important}
html[data-theme] body.ecu-mercury .checkout-premium .commerce-primary:hover{background:#12548a!important;border-color:#12548a!important}
body.ecu-mercury .checkout-premium .checkout-terms a{color:var(--mc-link);text-underline-offset:3px}
body.ecu-mercury .checkout-premium .checkout-summary .summary-row{gap:16px}
body.ecu-mercury .checkout-premium .checkout-summary :is(.summary-row>span,.checkout-items>div>span){min-width:0;overflow-wrap:anywhere}
@media(max-width:640px){
 body.ecu-mercury .checkout-premium .checkout-stepper{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;border-radius:16px}
 body.ecu-mercury .checkout-premium .checkout-stepper>span{gap:8px;padding:12px;min-height:50px}
}
@media(max-width:560px){
 html[data-theme] body.ecu-mercury .home-discovery .discovery-shell{width:calc(100% - 32px);padding:24px 18px;border-radius:20px!important}
 html[data-theme] body.ecu-mercury :is(.home-discovery,.site-search-dialog) .discovery-input{
  display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:6px;padding:8px 10px;
 }
 body.ecu-mercury :is(.home-discovery,.site-search-dialog) .discovery-input>svg{grid-column:1;grid-row:1;width:18px;height:18px}
 html[data-theme] body.ecu-mercury :is(.home-discovery,.site-search-dialog) .discovery-input input[type="search"]{grid-column:2;grid-row:1;width:100%!important;min-height:44px}
 body.ecu-mercury :is(.home-discovery,.site-search-dialog) .search-clear{grid-column:3;grid-row:1;width:44px}
 body.ecu-mercury :is(.home-discovery,.site-search-dialog) .discovery-input>.btn{grid-column:1/-1;grid-row:2;width:100%;margin:2px 0 0;min-height:46px}
 body.ecu-mercury .home-discovery .discovery-results{grid-template-columns:minmax(0,1fr)}
 html[data-theme] body.ecu-mercury :is(.home-discovery,.site-search-dialog) [data-search-results]>a,
 html[data-theme] body.ecu-mercury .search-page .search-result-list>a{padding:18px}
 html[data-theme] body.ecu-mercury .site-search-dialog{padding:20px!important}
 body.ecu-mercury .site-search-dialog .search-examples{gap:8px}
 body.ecu-mercury .search-page-form{flex-wrap:wrap;padding:10px 12px}
 body.ecu-mercury .search-page-form input[type="search"]{flex-basis:100%}
 body.ecu-mercury .search-page-form>.btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
 body.ecu-mercury :is(.home-discovery,.site-search-dialog,.search-page) a{transition:none}
}
