.ppro-y26-c-search {
    position: relative;
    width: 100%;
}

.ppro-y26-c-search__control {
    width: 100%;
    height: 3.5rem;
    padding: 0 3rem 0 1.25rem;
    background: var(--ppro-color-white);
    border: 1px solid var(--ppro-foreground);
    border-radius: 0.125rem;
    color: var(--ppro-foreground);
    font-family: var(--ppro-font-body);
    font-weight: var(--ppro-font-weight-body);
    font-size: 1rem;
    line-height: 1.5rem;
    letter-spacing: var(--ppro-tracking-tight);
    text-overflow: ellipsis;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.ppro-y26-c-search__control:focus {
    box-shadow: inset 0 0 0 1px var(--ppro-foreground);
}

.ppro-y26-c-search__control::placeholder {
    color: var(--ppro-foreground);
    opacity: 0.5;
}

.ppro-y26-c-search__icon-wrap,
.ppro-y26-c-search__clear {
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    color: var(--ppro-foreground);
    transform: translateY(-50%);
}

.ppro-y26-c-search__icon-wrap {
    display: inline-flex;
    pointer-events: none;
}

.ppro-y26-c-search__icon {
    width: 1rem;
    height: 1rem;
}

.ppro-y26-c-search__clear {
    display: none;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.ppro-y26-c-search__clear:hover {
    opacity: 1;
}

.ppro-y26-c-search__clear-icon {
    width: 0.875rem;
    height: 0.875rem;
}

.ppro-y26-c-search__control:not(:placeholder-shown) ~ .ppro-y26-c-search__icon-wrap {
    display: none;
}

.ppro-y26-c-search__control:not(:placeholder-shown) ~ .ppro-y26-c-search__clear {
    display: inline-flex;
}
