.warranty-lookup-page {
    background: #f4f8f5;
    color: #1f2a23;
    padding: 44px 0 72px;
}

.warranty-lookup-shell {
    max-width: 980px;
}

.warranty-lookup-intro {
    margin: 0 auto 28px;
    max-width: 720px;
    text-align: center;
}

.warranty-lookup-eyebrow {
    color: #087331;
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.warranty-lookup-intro h1 {
    color: #123b22;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 12px;
}

.warranty-lookup-intro p {
    color: #5a675e;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.warranty-lookup-form {
    background: #fff;
    border: 1px solid #dce6df;
    padding: 24px;
}

.warranty-lookup-form > label {
    color: #233c2b;
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.warranty-search-row {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.warranty-search-field {
    align-items: center;
    border: 1px solid #b9c9be;
    display: flex;
    min-height: 52px;
    padding: 0 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.warranty-search-field:focus-within {
    border-color: #087331;
    box-shadow: 0 0 0 3px rgba(8, 115, 49, 0.12);
}

.warranty-search-field svg {
    fill: none;
    flex: 0 0 22px;
    height: 22px;
    margin-right: 12px;
    stroke: #4d6857;
    stroke-linecap: round;
    stroke-width: 1.8;
    width: 22px;
}

.warranty-search-field input {
    background: transparent;
    border: 0;
    color: #17251b;
    font-size: 15px;
    height: 50px;
    min-width: 0;
    outline: 0;
    padding: 0;
    width: 100%;
}

.warranty-search-field input::placeholder {
    color: #89968d;
}

.warranty-search-row button {
    background: #087331;
    border: 1px solid #087331;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    min-height: 52px;
    min-width: 142px;
    padding: 0 22px;
    transition: background-color 160ms ease, transform 160ms ease;
}

.warranty-search-row button:hover {
    background: #065d28;
    transform: translateY(-1px);
}

.warranty-search-row button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.warranty-search-help {
    color: #647168;
    font-size: 13px;
    line-height: 1.5;
    margin: 10px 0 0;
}

.warranty-results {
    scroll-margin-top: 24px;
}

.warranty-results-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin: 36px 0 12px;
}

.warranty-results-heading h2 {
    color: #153d25;
    font-size: 24px;
    font-weight: 750;
    margin: 4px 0 0;
}

.warranty-results-heading p {
    color: #647168;
    font-size: 13px;
    margin: 0;
}

.warranty-result-count {
    color: #087331;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.warranty-result-item {
    background: #fff;
    border-top: 3px solid #087331;
    margin-top: 16px;
    padding: 24px;
}

.warranty-result-main {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.warranty-record-code {
    color: #6c786f;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.warranty-result-title h3 {
    color: #17251b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.warranty-status {
    border: 1px solid currentColor;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    padding: 8px 11px;
}

.warranty-status.is-pending {
    color: #936500;
}

.warranty-status.is-confirmed {
    color: #1768a6;
}

.warranty-status.is-processing {
    color: #7150a8;
}

.warranty-status.is-completed {
    color: #087331;
}

.warranty-status.is-cancelled {
    color: #a33a3a;
}

.warranty-meta {
    border-bottom: 1px solid #e2e9e4;
    border-top: 1px solid #e2e9e4;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px 0;
    padding: 16px 0;
}

.warranty-meta div {
    min-width: 0;
}

.warranty-meta dt {
    color: #758078;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.warranty-meta dd {
    color: #203126;
    font-size: 14px;
    font-weight: 650;
    margin: 0;
    overflow-wrap: anywhere;
}

.warranty-history h4 {
    color: #263b2c;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
}

.warranty-history ol {
    display: grid;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.warranty-history li {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 10px minmax(0, 1fr);
}

.warranty-history-dot {
    background: #087331;
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.warranty-history li div {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.warranty-history strong {
    color: #314238;
    font-size: 13px;
}

.warranty-history time {
    color: #7b867e;
    font-size: 12px;
}

.warranty-message {
    align-items: flex-start;
    background: #fff;
    border-left: 3px solid #a33a3a;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 28px;
    padding: 18px 20px;
}

.warranty-message strong {
    color: #26372b;
    font-size: 16px;
}

.warranty-message span,
.warranty-message p {
    color: #657168;
    font-size: 14px;
    margin: 0;
}

.warranty-message-empty {
    align-items: center;
    border-left: 0;
    margin-top: 32px;
    padding: 38px 24px;
    text-align: center;
}

.warranty-message-empty svg {
    fill: none;
    height: 38px;
    margin-bottom: 8px;
    stroke: #087331;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    width: 38px;
}

.warranty-message-empty a {
    color: #087331;
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .warranty-lookup-page {
        padding: 30px 0 52px;
    }

    .warranty-lookup-intro {
        text-align: left;
    }

    .warranty-lookup-form,
    .warranty-result-item {
        padding: 18px;
    }

    .warranty-search-row {
        grid-template-columns: 1fr;
    }

    .warranty-search-row button {
        width: 100%;
    }

    .warranty-results-heading,
    .warranty-result-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .warranty-results-heading {
        gap: 6px;
    }

    .warranty-result-main {
        display: flex;
        gap: 12px;
    }

    .warranty-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .warranty-meta {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .warranty-search-field,
    .warranty-search-row button {
        transition: none;
    }
}
