.vkko-book-search,
.vkko-book-search * {
    box-sizing: border-box;
}

.vkko-book-search {
    --vkko-search-accent: #198260;
    --vkko-search-dark: #24483d;
    --vkko-search-muted: #6d7c74;
    --vkko-search-border: rgba(34, 91, 68, .14);
    position: relative;
    z-index: 30;
    width: 100%;
    color: var(--vkko-search-dark);
    font-family: inherit;
}

.vkko-book-search--section {
    display: grid;
    grid-template-columns: minmax(180px, .42fr) minmax(320px, 1fr);
    gap: 18px 26px;
    align-items: center;
    margin: 0 0 30px;
    padding: 18px 20px;
    border: 1px solid var(--vkko-search-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 8%, rgba(70, 173, 135, .11), transparent 31%),
        linear-gradient(135deg, #f6fbf8 0%, #fff 62%, #f2f8f5 100%);
    box-shadow: 0 10px 30px rgba(25, 73, 52, .055);
}

.vkko-book-search--header {
    width: min(440px, 100%);
    min-width: 220px;
}

.vkko-book-search__intro {
    min-width: 0;
}

.vkko-book-search__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #43816a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
}

.vkko-book-search__intro strong {
    display: block;
    color: #294b40;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.vkko-book-search__control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid rgba(25, 130, 96, .2);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(21, 83, 59, .07);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.vkko-book-search__control:focus-within {
    border-color: rgba(25, 130, 96, .58);
    box-shadow: 0 0 0 4px rgba(25, 130, 96, .08), 0 10px 28px rgba(21, 83, 59, .09);
}

.vkko-book-search__icon {
    display: grid;
    place-items: center;
    width: 45px;
    color: #3c8067;
}

.vkko-book-search__icon .vkko-icon {
    width: 19px;
    height: 19px;
}

.vkko-book-search__control input {
    width: 100%;
    min-width: 0;
    height: 52px;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #28483e !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 14px !important;
    line-height: 1.3;
    -webkit-appearance: none;
}

.vkko-book-search__control input::placeholder {
    color: #87938c;
    opacity: 1;
}

.vkko-book-search__control input::-webkit-search-cancel-button {
    opacity: .55;
}

.vkko-book-search__submit {
    align-self: stretch;
    min-width: 64px;
    margin: 5px !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #e7f4ee !important;
    color: #176f52 !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.vkko-book-search__submit:hover,
.vkko-book-search__submit:focus-visible {
    background: #198260 !important;
    color: #fff !important;
}

.vkko-book-search__results {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 8px);
    right: 0;
    width: min(720px, 100%);
    max-height: min(520px, 68vh);
    overflow: auto;
    padding: 7px;
    border: 1px solid rgba(33, 79, 61, .14);
    border-radius: 16px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 22px 55px rgba(20, 55, 42, .16);
    backdrop-filter: blur(14px);
    scrollbar-width: thin;
}

.vkko-book-search--section .vkko-book-search__results {
    grid-column: 2;
}

.vkko-book-search__result {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) auto;
    gap: 11px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border-radius: 11px;
    color: #2b493f !important;
    text-decoration: none !important;
    transition: background .15s ease, transform .15s ease;
}

.vkko-book-search__result:hover,
.vkko-book-search__result:focus-visible,
.vkko-book-search__result.is-active {
    outline: 0;
    background: #f0f8f4;
}

.vkko-book-search__cover {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 7px;
    background: #e7f1eb;
    color: #2f7259;
    font-size: 18px;
    font-weight: 800;
}

.vkko-book-search__cover img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vkko-book-search__copy {
    min-width: 0;
}

.vkko-book-search__copy strong,
.vkko-book-search__copy span,
.vkko-book-search__copy small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vkko-book-search__copy strong {
    margin-bottom: 2px;
    color: #29483e;
    font-size: 13px;
    font-weight: 780;
}

.vkko-book-search__copy span {
    color: #6e7b74;
    font-size: 10.5px;
}

.vkko-book-search__copy small {
    margin-top: 3px;
    color: #779083;
    font-size: 9.5px;
    font-variant-numeric: tabular-nums;
}

.vkko-book-search__go {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #267155;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.vkko-book-search__empty,
.vkko-book-search__loading {
    padding: 16px 14px;
    color: #6b7b72;
    font-size: 12px;
    text-align: center;
}

.vkko-book-search__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 720px) {
    .vkko-book-search--section {
        grid-template-columns: minmax(0,1fr);
        gap: 10px;
        margin-bottom: 22px;
        padding: 14px;
        border-radius: 15px;
    }

    .vkko-book-search__intro {
        display: flex;
        gap: 8px;
        align-items: baseline;
    }

    .vkko-book-search__eyebrow {
        display: none;
    }

    .vkko-book-search__intro strong {
        font-size: 16px;
    }

    .vkko-book-search--section .vkko-book-search__results {
        grid-column: auto;
    }

    .vkko-book-search__control {
        min-height: 50px;
    }

    .vkko-book-search__control input {
        height: 48px;
        font-size: 13px !important;
    }

    .vkko-book-search__submit {
        min-width: 56px;
        padding-inline: 11px !important;
    }

    .vkko-book-search__results {
        width: 100%;
        max-height: 62vh;
    }
}

@media (max-width: 430px) {
    .vkko-book-search--header {
        width: 100%;
        min-width: 0;
    }

    .vkko-book-search__result {
        grid-template-columns: 42px minmax(0,1fr);
    }

    .vkko-book-search__cover {
        width: 42px;
    }

    .vkko-book-search__go {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vkko-book-search *,
    .vkko-book-search *::before,
    .vkko-book-search *::after {
        transition: none !important;
    }
}
