.erw-quote-list {
    min-height: 62vh;
    background: var(--erw-page-bg);
}

.erw-quote-list__hero {
    background: var(--erw-navy-mid);
    color: var(--erw-white);
}

.erw-quote-list__hero-inner,
.erw-quote-list__inner {
    width: min(100%, var(--erw-wide-container));
    margin: 0 auto;
    padding-inline: 28px;
}

.erw-quote-list__hero-inner {
    padding-block: 46px;
}

.erw-quote-list__hero span {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-left: 3px solid var(--erw-gold);
    border-radius: 0 var(--erw-r-sm) var(--erw-r-sm) 0;
    background: rgba(245, 166, 35, 0.12);
    color: var(--erw-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.erw-quote-list__hero h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
}

.erw-quote-list__hero p {
    max-width: 720px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.65;
}

.erw-quote-list__inner {
    padding-block: 54px 84px;
}

.erw-quote-list__items {
    display: grid;
    gap: 16px;
}

.erw-quote-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 18px;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-lg);
    background: var(--erw-white);
    box-shadow: var(--erw-shadow-sm);
}

.erw-quote-item__media {
    width: 150px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
}

.erw-quote-item__image {
    width: 150px;
    aspect-ratio: 1;
    display: block;
    overflow: hidden;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-md);
    background: var(--erw-white);
}

.erw-quote-item__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.erw-quote-item__label {
    color: var(--erw-gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.erw-quote-item h2 {
    margin: 7px 0 14px;
    min-height: 50px;
    max-height: 50px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--erw-navy-dark);
    font-size: 18px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.erw-quote-item h2 a {
    color: inherit;
}

.erw-quote-item__meta {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px 30px;
}

.erw-quote-item__details {
    margin: 0;
}

.erw-quote-item__details div {
    min-width: 150px;
}

.erw-quote-item__details dt,
.erw-quote-item__quantity label {
    margin-bottom: 4px;
    color: var(--erw-tertiary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.erw-quote-item__details dd {
    min-height: 20px;
    margin: 0;
    color: var(--erw-muted);
    font-size: 13px;
}

.erw-quote-item__quantity {
    width: 150px;
    display: grid;
    gap: 6px;
}

.erw-quote-item__quantity .quantity {
    width: 100%;
}

.erw-quote-item__quantity input.qty {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-sm);
    background: var(--erw-white);
    color: var(--erw-navy-dark);
    font-weight: 700;
    text-align: center;
}

.erw-quote-item__remove {
    align-self: center;
    color: var(--erw-muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.erw-quote-item__remove:hover {
    color: var(--erw-gold-dark);
}

.erw-quote-list__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.erw-quote-list__footer button,
.erw-quote-list__footer > a,
.erw-quote-list__empty > a {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border: 2px solid var(--erw-navy-mid);
    background: transparent;
    color: var(--erw-navy-mid);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.erw-quote-list__footer > a,
.erw-quote-list__empty > a {
    border-color: var(--erw-gold);
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
}

.erw-quote-list__footer button:hover {
    background: var(--erw-navy-mid);
    color: var(--erw-white);
}

.erw-quote-list__footer > a:hover,
.erw-quote-list__empty > a:hover {
    border-color: var(--erw-navy-mid);
    background: var(--erw-navy-mid);
    color: var(--erw-white);
}

.erw-quote-list__empty {
    padding: 64px 24px;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-lg);
    background: var(--erw-white);
    text-align: center;
}

.erw-quote-list__empty > span {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.12);
    color: var(--erw-gold-dark);
    font-size: 24px;
    font-weight: 900;
}

.erw-quote-list__empty h2 {
    margin: 18px 0 8px;
    color: var(--erw-navy-dark);
    font-size: 28px;
}

.erw-quote-list__empty p {
    margin: 0 0 24px;
    color: var(--erw-muted);
    font-size: 15px;
}

@media (max-width: 900px) {
    .erw-quote-item {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .erw-quote-item__media,
    .erw-quote-item__image {
        width: 120px;
    }
}

@media (max-width: 580px) {
    .erw-quote-list__hero-inner,
    .erw-quote-list__inner {
        padding-inline: 18px;
    }

    .erw-quote-item {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .erw-quote-item__media,
    .erw-quote-item__image {
        width: 86px;
    }

    .erw-quote-item h2 {
        min-height: 42px;
        max-height: 42px;
        font-size: 15px;
    }

    .erw-quote-item__meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(92px, 1fr);
        align-items: end;
        gap: 10px;
    }

    .erw-quote-item__details div,
    .erw-quote-item__quantity {
        width: 100%;
        min-width: 0;
    }

    .erw-quote-list__footer {
        flex-direction: column;
    }

    .erw-quote-list__footer button,
    .erw-quote-list__footer > a {
        width: 100%;
    }
}

.erw-quote-list__footer .erw-quote-list__submit {
    border-color: var(--erw-gold);
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
}

.erw-quote-list__footer .erw-quote-list__submit:hover,
.erw-quote-list__footer .erw-quote-list__submit:focus-visible {
    border-color: var(--erw-navy-mid);
    background: var(--erw-navy-mid);
    color: var(--erw-white);
}

body.erw-quote-auth-open {
    overflow: hidden;
}

.erw-quote-auth[hidden] {
    display: none;
}

.erw-quote-auth {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.erw-quote-auth__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(7, 14, 26, 0.76);
    cursor: default;
}

.erw-quote-auth__dialog {
    position: relative;
    width: min(100%, 900px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-lg);
    background: var(--erw-white);
    box-shadow: 0 26px 70px rgba(7, 14, 26, 0.32);
}

.erw-quote-auth__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--erw-white);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.erw-quote-auth__intro {
    padding: 32px 72px 26px 32px;
    border-bottom: 3px solid var(--erw-gold);
    background: var(--erw-navy-mid);
}

.erw-quote-auth__intro > span {
    display: inline-flex;
    padding: 7px 11px;
    border-left: 3px solid var(--erw-gold);
    border-radius: 0 var(--erw-r-sm) var(--erw-r-sm) 0;
    background: rgba(255, 255, 255, 0.1);
    color: var(--erw-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.erw-quote-auth__register > span {
    color: var(--erw-gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.erw-quote-auth__intro h2 {
    margin: 9px 0 8px;
    color: var(--erw-white);
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
}

.erw-quote-auth__intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.65;
}

.erw-quote-auth__register p {
    margin: 0;
    color: var(--erw-muted);
    font-size: 14px;
    line-height: 1.65;
}

.erw-quote-auth__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.erw-quote-auth__login,
.erw-quote-auth__register {
    padding: 30px 32px 34px;
}

.erw-quote-auth__register {
    background: var(--erw-page-bg);
}

.erw-quote-auth__login h3,
.erw-quote-auth__register h3 {
    margin: 0 0 18px;
    color: var(--erw-navy-dark);
    font-size: 18px;
}

.erw-quote-auth__register h3 {
    margin: 8px 0 10px;
}

.erw-quote-auth__login form {
    display: grid;
    gap: 9px;
    margin: 0;
}

.erw-quote-auth__login form > label:not(.erw-quote-auth__remember) {
    color: var(--erw-navy-mid);
    font-size: 12px;
    font-weight: 800;
}

.erw-quote-auth__login input[type='text'],
.erw-quote-auth__login input[type='password'] {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-sm);
    background: #fbfcfe;
    font: inherit;
}

.erw-quote-auth__login input:focus {
    border-color: var(--erw-gold);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.12);
    outline: none;
}

.erw-quote-auth__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    color: var(--erw-muted);
    font-size: 12px;
}

.erw-quote-auth__login button[type='submit'],
.erw-quote-auth__register > a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 2px solid var(--erw-gold);
    border-radius: 0;
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

.erw-quote-auth__login button[type='submit'] {
    width: auto;
    min-width: 132px;
    justify-self: start;
    padding-inline: 24px;
}

.erw-quote-auth__register > a {
    width: 100%;
}

.erw-quote-auth__login button[type='submit']:hover,
.erw-quote-auth__register > a:hover {
    border-color: var(--erw-navy-mid);
    background: var(--erw-navy-mid);
    color: var(--erw-white);
}

.erw-quote-auth__lost {
    justify-self: start;
    color: var(--erw-muted);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.erw-quote-auth__register ul {
    display: grid;
    gap: 9px;
    margin: 20px 0 24px;
    padding: 0;
    list-style: none;
}

.erw-quote-auth__register li {
    position: relative;
    padding-left: 22px;
    color: var(--erw-navy-mid);
    font-size: 13px;
    font-weight: 700;
}

.erw-quote-auth__register li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--erw-gold-dark);
}

@media (max-width: 720px) {
    .erw-quote-auth {
        padding: 12px;
    }

    .erw-quote-auth__dialog {
        max-height: calc(100vh - 24px);
    }

    .erw-quote-auth__columns {
        grid-template-columns: 1fr;
    }

    .erw-quote-auth__intro,
    .erw-quote-auth__login,
    .erw-quote-auth__register {
        padding: 24px 20px;
    }

    .erw-quote-auth__intro {
        padding-right: 66px;
    }
}
