/* The catalogue's own search: a pill with its button inside (templates/parts/pill-search.php). In a catalogue page's head
   and on a landing page's search-first hero (item 564); page.css gives it its phone shape on the catalogue's pages. */
.cil-ctl-pillSearch {
    display: flex; align-items: center; gap: 10px;
    width: 700px; max-width: 100%; height: 56px; margin-top: 10px;
    padding-inline: 20px 6px;
    background: var(--cil-white);
    border: 1px solid var(--cil-black-light-4);
    border-radius: 28px;
}
/* The browser's own "×" is hidden: the field draws its own (search-clear.php, or the site's field-clear.js). */
.cil-ctl-pillSearch input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
/* One ring around the whole field while its words are being typed -- never a second one on the input
   inside it (the page's own focus ring, below, would draw that). */
.cil-ctl-pillSearch:focus-within { border-color: var(--cil-blue-dark-1); box-shadow: 0 0 0 1px var(--cil-blue-dark-1); }
.cil-ctl .cil-ctl-pillSearch input:focus-visible, .cil-ctl-pillSearch input:focus-visible { outline: none; }
.cil-ctl-pillSearch__mark { display: inline-flex; color: var(--cil-black-regular-6); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.cil-ctl-pillSearch input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; background: none; outline: none;
    color: var(--cil-black); font: inherit; font-size: 16px;
}
.cil-ctl-pillSearch input::placeholder { color: var(--cil-black-regular-6); opacity: 1; }
/* Its word centred both ways: the theme gives every <button> its own padding and line height. */
.cil-ctl-pillSearch__go {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
    height: 44px; padding: 0 22px;
    border: 0; border-radius: 22px;
    background: var(--cil-blue-dark-1); color: var(--cil-white);
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
    cursor: pointer;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), background-color .2s ease;
}
/* The house search motion (the error pages' and the home hero's "ring"): the button swells and
   settles, the field's magnifier tips as if aimed, and a ring leaves the button's edge and fades,
   again and again while the pointer rests there. */
.cil-ctl-pillSearch__go::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    border: 2px solid var(--cil-blue-dark-1); opacity: 0; pointer-events: none;
}
.cil-ctl-pillSearch__go:hover, .cil-ctl-pillSearch__go:focus-visible { background: var(--cil-blue-dark-2); transform: scale(1.06); }
.cil-ctl-pillSearch__go:hover::after, .cil-ctl-pillSearch__go:focus-visible::after { animation: cil-ctl-search-ping 1.4s cubic-bezier(.22, 1, .36, 1) infinite; }
.cil-ctl-pillSearch__go:active { transform: scale(.96); }
.cil-ctl-pillSearch:has(.cil-ctl-pillSearch__go:hover) .cil-ctl-pillSearch__mark,
.cil-ctl-pillSearch:has(.cil-ctl-pillSearch__go:focus-visible) .cil-ctl-pillSearch__mark { transform: rotate(-10deg) scale(1.06); }
@keyframes cil-ctl-search-ping {
    0%   { inset: 0;     opacity: .55; }
    70%  { inset: -10px; opacity: 0; }
    100% { inset: -10px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    /* The search button still deepens its colour; nothing swells, tips or repeats. */
    .cil-ctl-pillSearch__go:hover, .cil-ctl-pillSearch__go:focus-visible, .cil-ctl-pillSearch__go:active { transform: none; }
    .cil-ctl-pillSearch__go:hover::after, .cil-ctl-pillSearch__go:focus-visible::after { animation: none; }
    .cil-ctl-pillSearch:has(.cil-ctl-pillSearch__go:hover) .cil-ctl-pillSearch__mark { transform: none; }
}
