/* ==========================================================================
   The × in typing boxes (js/clear-input.js), on every page.
   Grey #6A6080 on a light circle #EFEAF6; placed by the script (--clear-top, --clear-left).
   ========================================================================== */

.has-clear-input {
    padding-right: 40px !important;
}

.clear-input {
    position: absolute;
    top: var(--clear-top, 0);
    left: var(--clear-left, 0);
    z-index: 3;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-input[hidden] {
    display: none;
}

/* The × drawn with two lines on a light circle */
.clear-input::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background:
        linear-gradient(45deg, transparent 45%, #6A6080 45%, #6A6080 55%, transparent 55%) center / 12px 12px no-repeat,
        linear-gradient(-45deg, transparent 45%, #6A6080 45%, #6A6080 55%, transparent 55%) center / 12px 12px no-repeat,
        #EFEAF6;
}

/* The browser's own × in search boxes: ours is used instead */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
