.qyr-history {
    --qyr-green: var(--e-global-color-a59190e, #21441f);
    --qyr-purple: var(--e-global-color-secondary, #321639);
    --qyr-charcoal: var(--e-global-color-3cc01a5, #252525);
    color: var(--qyr-charcoal);
}

.qyr-history .qyr-history__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    touch-action: pan-y pinch-zoom;
}

.qyr-history--ready .qyr-history__slide:nth-child(n+4) {
    display: none;
}

.qyr-history .qyr-history__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 190px;
    gap: 12px;
    padding: 22px 22px 20px;
    border: 1px solid var(--qyr-purple);
    border-inline-start-width: 5px;
    background: #fff;
    box-shadow: 0 8px 28px rgb(50 22 57 / 14%);
    text-decoration: none;
    color: var(--qyr-charcoal);
}

.qyr-history .qyr-history__date {
    color: var(--qyr-green);
    font: 800 .72rem/1.4 Lato, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.qyr-history .qyr-history__title {
    margin: 0;
    color: inherit;
    overflow-wrap: anywhere;
    font-family: var(--e-global-typography-6ac52c3-font-family, inherit);
    font-size: var(--e-global-typography-6ac52c3-font-size, 1.22rem);
    font-weight: var(--e-global-typography-6ac52c3-font-weight, 700);
    line-height: var(--e-global-typography-6ac52c3-line-height, 1.3);
}

.qyr-history .qyr-history__link {
    display: flex;
    gap: .65em;
    align-items: center;
    margin-top: auto;
    font-weight: 700;
}

.qyr-history .qyr-history__card:hover .qyr-history__link {
    text-decoration: underline;
}

.qyr-history .qyr-history__nav:not([hidden]) {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.qyr-history .qyr-history__nav button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--qyr-purple);
    border-radius: 50%;
    background: #fff;
    color: var(--qyr-purple);
    font: 28px/1 system-ui, sans-serif;
    cursor: pointer;
}

.qyr-history .qyr-history__nav button:hover {
    background: var(--qyr-purple);
    color: #fff;
}

.qyr-history :is(a, button):focus-visible {
    outline: 2px solid var(--qyr-green);
    outline-offset: 3px;
}

.qyr-history .qyr-history__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .qyr-history .qyr-history__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qyr-history--ready .qyr-history__slide:nth-child(n+3) { display: none; }
}

@media (max-width: 767px) {
    .qyr-history .qyr-history__list { grid-template-columns: minmax(0, 1fr); }
    .qyr-history--ready .qyr-history__slide:nth-child(n+2) { display: none; }
}
