.wlp-lookup-shell,
.wlp-lookup-shell * { box-sizing: border-box; }

.wlp-lookup-shell {
    --wlp-primary: #235ee7;
    --wlp-primary-dark: #1747b7;
    --wlp-ink: #172033;
    --wlp-muted: #687189;
    --wlp-line: #e5e9f2;
    --wlp-soft: #f5f7fb;
    --wlp-success: #0d9b63;
    --wlp-warning: #d48a00;
    --wlp-danger: #dc3948;
    position: relative;
    isolation: isolate;
    max-width: 880px;
    margin: 28px auto;
    padding: 24px;
    font-family: inherit;
}

.wlp-lookup-decoration {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(1px);
    opacity: .18;
}

.wlp-decoration-one { width: 180px; height: 180px; background: var(--wlp-primary); inset: -10px auto auto -20px; }
.wlp-decoration-two { width: 130px; height: 130px; background: #6f4be8; inset: auto -8px -6px auto; }

.wlp-lookup-card {
    overflow: hidden;
    border: 1px solid rgba(218, 224, 237, .95);
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 70px rgba(30, 48, 93, .13);
    backdrop-filter: blur(10px);
}

.wlp-lookup-head {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 30px 34px 25px;
    background: linear-gradient(135deg, #f8fbff 0%, #f4f6ff 100%);
    border-bottom: 1px solid var(--wlp-line);
}

.wlp-shield-icon {
    display: grid;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--wlp-primary), #6847df);
    box-shadow: 0 12px 24px rgba(35, 94, 231, .24);
}

.wlp-shield-icon svg { width: 34px; fill: #fff; }
.wlp-lookup-eyebrow { display: block; margin-bottom: 4px; color: var(--wlp-primary); font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.wlp-lookup-head h2 { margin: 0 0 7px; color: var(--wlp-ink); font-size: clamp(23px, 3vw, 31px); line-height: 1.35; }
.wlp-lookup-head p { margin: 0; color: var(--wlp-muted); font-size: 14px; line-height: 1.9; }

.wlp-lookup-form { padding: 28px 34px 24px; }
.wlp-form-row-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.wlp-serial-field > span:first-child,
.wlp-customer-grid label > span { display: block; margin-bottom: 8px; color: #3b455d; font-size: 13px; font-weight: 750; }

.wlp-input-wrap {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border: 1.5px solid #d8deeb;
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wlp-input-wrap:focus-within { border-color: var(--wlp-primary); box-shadow: 0 0 0 4px rgba(35, 94, 231, .1); transform: translateY(-1px); }
.wlp-input-wrap.is-invalid { border-color: var(--wlp-danger); box-shadow: 0 0 0 4px rgba(220, 57, 72, .09); }
.wlp-input-wrap svg { width: 22px; flex: 0 0 auto; fill: #8a94a9; }
.wlp-input-wrap input { width: 100%; min-height: 50px; padding: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--wlp-ink); font-size: 16px; font-weight: 700; text-align: left; }
.wlp-input-wrap input::placeholder { color: #a1a9b9; font-weight: 500; }

.wlp-lookup-submit {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 23px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--wlp-primary), #6548dc);
    box-shadow: 0 10px 22px rgba(35, 94, 231, .22);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.wlp-lookup-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(35, 94, 231, .29); }
.wlp-lookup-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.wlp-lookup-submit svg { width: 20px; fill: currentColor; }
.wlp-lookup-submit.is-loading svg { animation: wlpPulse .8s ease-in-out infinite alternate; }

.wlp-customer-details { margin-top: 18px; border-top: 1px dashed #dce2ec; }
.wlp-customer-details summary { display: inline-flex; align-items: center; gap: 7px; padding-top: 16px; color: #45516a; cursor: pointer; font-size: 13px; font-weight: 750; }
.wlp-customer-details summary small { color: #8993a7; font-size: 11px; font-weight: 500; }
.wlp-customer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.wlp-customer-grid input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid #dce2ed; border-radius: 12px; outline: 0; background: #fff; font: inherit; }
.wlp-customer-grid input:focus { border-color: var(--wlp-primary); box-shadow: 0 0 0 3px rgba(35, 94, 231, .08); }
.wlp-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.wlp-privacy-note { display: flex; align-items: center; gap: 7px; margin: 17px 0 0; color: #8993a5; font-size: 11px; }
.wlp-privacy-note svg { width: 17px; fill: #99a3b5; }

.wlp-lookup-feedback { padding: 0 34px 32px; }
.wlp-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 105px; border: 1px solid var(--wlp-line); border-radius: 18px; background: var(--wlp-soft); color: var(--wlp-muted); }
.wlp-loading span { width: 24px; height: 24px; border: 3px solid #d8dfef; border-top-color: var(--wlp-primary); border-radius: 50%; animation: wlpSpin .75s linear infinite; }
.wlp-loading p { margin: 0; }
.wlp-inline-error { padding: 14px 16px; border: 1px solid #ffd0d6; border-radius: 13px; background: #fff4f5; color: #ad2432; font-size: 13px; font-weight: 650; }

.wlp-result-card { overflow: hidden; border: 1px solid var(--wlp-line); border-radius: 20px; animation: wlpResultIn .32s ease both; }
.wlp-result-banner { display: flex; align-items: center; gap: 13px; padding: 18px 20px; }
.wlp-result-success .wlp-result-banner { background: #edfbf5; color: #087a4d; }
.wlp-result-warning .wlp-result-banner { background: #fff8e6; color: #a56a00; }
.wlp-result-danger .wlp-result-banner { background: #fff0f2; color: #b72735; }
.wlp-result-neutral .wlp-result-banner { background: #f1f3f7; color: #596275; }
.wlp-result-mark { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: 0 6px 16px rgba(33, 49, 78, .08); }
.wlp-result-mark svg { width: 25px; fill: currentColor; }
.wlp-result-banner h3 { margin: 0 0 3px; color: inherit; font-size: 18px; }
.wlp-result-banner p { margin: 0; color: inherit; opacity: .8; font-size: 12px; line-height: 1.7; }
.wlp-result-body { padding: 20px; background: #fff; }
.wlp-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wlp-result-item { min-height: 76px; padding: 13px 15px; border: 1px solid #e8ecf3; border-radius: 14px; background: #fafbfd; }
.wlp-result-item span { display: block; margin-bottom: 6px; color: #7a8499; font-size: 11px; }
.wlp-result-item strong { display: block; overflow-wrap: anywhere; color: #222c40; font-size: 14px; line-height: 1.7; }
.wlp-validity-meter { margin-top: 14px; padding: 14px 15px; border-radius: 14px; background: #f7f9fc; }
.wlp-validity-meter > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #667085; font-size: 11px; }
.wlp-validity-meter b { color: #26324a; }
.wlp-meter-track { overflow: hidden; height: 8px; border-radius: 999px; background: #e4e9f1; }
.wlp-meter-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #24b47e, #13a467); transition: width .7s ease; }
.wlp-result-warning .wlp-meter-track i { background: linear-gradient(90deg, #f3b63e, #d88c06); }
.wlp-result-foot { display: flex; align-items: flex-start; gap: 7px; margin-top: 16px; color: #8a93a5; font-size: 10px; line-height: 1.7; }
.wlp-result-foot svg { width: 17px; flex: 0 0 auto; fill: #9aa3b3; }
.wlp-not-found-serial { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 13px; background: #f7f8fb; color: #7a8498; font-size: 12px; }
.wlp-not-found-serial code { color: #2a344b; font-size: 14px; font-weight: 800; direction: ltr; }
.wlp-help-list { margin: 16px 0 0; padding: 0 19px 0 0; color: #6c7589; font-size: 12px; line-height: 2; }

@keyframes wlpSpin { to { transform: rotate(360deg); } }
@keyframes wlpPulse { to { transform: translateX(-3px); } }
@keyframes wlpResultIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 680px) {
    .wlp-lookup-shell { margin: 16px auto; padding: 8px; }
    .wlp-lookup-card { border-radius: 19px; }
    .wlp-lookup-head { align-items: flex-start; padding: 22px 20px 19px; }
    .wlp-shield-icon { width: 52px; height: 52px; flex-basis: 52px; border-radius: 16px; }
    .wlp-shield-icon svg { width: 28px; }
    .wlp-lookup-head h2 { font-size: 22px; }
    .wlp-lookup-head p { font-size: 12px; }
    .wlp-lookup-form { padding: 22px 20px 18px; }
    .wlp-form-row-main { grid-template-columns: 1fr; }
    .wlp-lookup-submit { width: 100%; }
    .wlp-customer-grid, .wlp-result-grid { grid-template-columns: 1fr; }
    .wlp-lookup-feedback { padding: 0 20px 22px; }
    .wlp-result-banner { align-items: flex-start; }
}
