:root {
    --review-accent: #34d399;
    --review-bg: rgba(15, 23, 42, 0.85);
}

.review-lookup__preview--floating {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1rem);
    z-index: 20;
}

[data-review-lookup] input[type=number]::-webkit-outer-spin-button,
[data-review-lookup] input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

[data-review-lookup] input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.review-lookup {
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15,23,42,.9), rgba(15,23,42,.7));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 50px rgba(2,6,23,.6);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-lookup__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(226,232,240,.9);
}

.review-lookup__input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(2,6,23,.75);
    box-shadow: inset 0 4px 12px rgba(0,0,0,.5);
    transition: border-color .2s ease;
}

.review-lookup__input:focus-within {
    border-color: var(--review-accent);
    box-shadow: inset 0 4px 12px rgba(0,0,0,.5), 0 0 0 3px rgba(52,211,153,.2);
}

.review-lookup__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(148,163,184,.9);
}

.review-lookup__icon svg {
    width: 20px;
    height: 20px;
}

.review-lookup__input input {
    flex: 1;
    border: none;
    background: transparent;
    color: #f8fafc;
    font-size: 0.95rem;
    padding: 0 16px 0 4px;
    height: 48px;
}

.review-lookup__input input::placeholder {
    color: rgba(148,163,184,.8);
}

.review-lookup__preview {
    border-radius: 24px;
    background: rgba(255,255,255,.03);
    border: 1px dashed rgba(255,255,255,.08);
    padding: 16px;
    min-height: 92px;
    display: flex;
    gap: 14px;
    align-items: center;
    color: rgba(226,232,240,.9);
    font-size: 0.9rem;
}

.review-lookup__preview--dropdown {
    border-style: solid;
    border-color: rgba(255,255,255,.08);
    background: rgba(4,7,16,.9);
    box-shadow: 0 20px 40px rgba(2,6,23,.5);
    min-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
}

[data-review-preview]:not(:empty).review-lookup__preview--dropdown {
    opacity: 1;
    transform: translateY(0);
}

.review-lookup__thumb {
    width: 96px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15,23,42,.8);
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,.4);
}

.review-lookup__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-lookup__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-lookup__title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.review-lookup__id {
    font-size: 0.8rem;
    color: rgba(148,163,184, .9);
}

.review-lookup__status {
    font-size: 0.85rem;
    color: rgba(226,232,240,.8);
}

.review-lookup__preview.loading {
    opacity: .6;
}

.review-lookup__preview.error {
    border-color: rgba(248,113,113,.5);
    color: #fecaca;
}

@media (max-width: 640px) {
    .review-lookup {
        width: 100%;
    }
}
