.erdw {
    --erdw-border: #d7e0ee;
    --erdw-muted: #526071;
    --erdw-head-bg: #f7f7f7;
    --erdw-radius: 12px;
    color: #0c1628;
    font-size: 16px;
}

.erdw-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.erdw-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.erdw-filter-label {
    margin-right: 4px;
    font-weight: 600;
}

.erdw-filter,
.erdw-sort {
    border: 1px solid var(--erdw-border);
    background: #fff;
    color: #0c1628;
    border-radius: 999px;
    min-height: 42px;
    padding: 8px 18px;
    font: inherit;
}

.erdw-filter {
    cursor: pointer;
    transition: .2s ease;
}

.erdw-filter.is-active {
    color: #fff;
}

.erdw-sort {
    min-width: 270px;
    cursor: pointer;
}

.erdw-head,
.erdw-row {
    display: grid;
    grid-template-columns: minmax(280px, 2.2fr) minmax(130px, .75fr) minmax(150px, 1fr) minmax(180px, 1.1fr) minmax(150px, .8fr);
    column-gap: 24px;
    align-items: center;
}

.erdw-head {
    padding: 16px;
    background: var(--erdw-head-bg);
    border-radius: var(--erdw-radius);
    font-weight: 700;
}

.erdw-head-price {
    text-align: right;
    grid-column: 4;
}

.erdw-head-button {
    text-align: right;
    grid-column: 5;
}

.erdw-head-price strong,
.erdw-head-price span {
    display: block;
}

.erdw-head-price span {
    margin-top: 2px;
    font-weight: 400;
    font-size: 14px;
}

.erdw-year-group {
    margin-top: 28px;
}

.erdw-year-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 500;
}

.erdw-row {
    padding: 20px 0;
    border-bottom: 1px solid var(--erdw-border);
}

.erdw-event-title {
    margin: 0 0 4px;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 500;
}

.erdw-date-text,
.erdw-price-prefix,
.erdw-price-suffix {
    color: #172033;
}

.erdw-price-cell {
    text-align: right;
}

.erdw-price-line {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
}

.erdw-price {
    font-size: 20px;
}

.erdw-price-prefix,
.erdw-price-suffix {
    font-size: 14px;
}

.erdw-price-suffix {
    margin-top: 4px;
}

.erdw-button-cell {
    text-align: right;
}

.erdw-book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 160px;
    padding: 14px 24px;
    border-radius: 999px;
    color: #05070a;
    text-decoration: none;
    font-weight: 600;
    transition: transform .15s ease, filter .15s ease;
}

.erdw-book-button:hover {
    color: #05070a;
    transform: translateY(-1px);
    filter: brightness(.98);
}

.erdw-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.erdw-mobile-label {
    display: none;
    margin-bottom: 4px;
    color: var(--erdw-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.erdw [hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .erdw-head {
        display: none;
    }

    .erdw-sort {
        width: 100%;
        min-width: 0;
    }

    .erdw-sort-wrap {
        width: 100%;
    }

    .erdw-row {
        grid-template-columns: 1fr 1fr;
        gap: 18px 24px;
        align-items: start;
    }

    .erdw-date-cell,
    .erdw-button-cell {
        grid-column: 1 / -1;
    }

    .erdw-price-cell,
    .erdw-button-cell {
        text-align: left;
    }

    .erdw-price-line {
        justify-content: flex-start;
    }

    .erdw-mobile-label {
        display: block;
    }
}

@media (max-width: 560px) {
    .erdw-toolbar,
    .erdw-filters {
        align-items: stretch;
    }

    .erdw-filters {
        width: 100%;
    }

    .erdw-filter-label {
        width: 100%;
    }

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

    .erdw-date-cell,
    .erdw-button-cell {
        grid-column: auto;
    }

    .erdw-book-button {
        width: 100%;
    }
}
