#sovermed-labs [hidden] { display: none; }

.sml-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.sml-main { min-width: 0; }

.sml-filters { display: grid; gap: 1rem; }
.sml-filters label { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: .4rem; }
#sovermed-labs select.input {
    width: 100%;
    border: 1px solid var(--color-sovermed-gray, #a5b2b4);
    padding-inline: .875rem .75rem;
    text-overflow: ellipsis;
}
@media (min-width: 640px) {
    .sml-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
.sml-reset {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding-block: .3rem;
    color: #984951;
    font-weight: 600;
    cursor: pointer;
}
.sml-reset:hover { text-decoration: underline; }
.sml-layout .input { min-width: 0; max-width: 100%; }
.sml-status { margin-block: .75rem; color: #465b60; }
.sml-status:empty { margin: 0; }
.sml-columns { display: none; }

.sml-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem 1rem;
    padding: 1rem .625rem;
    border-bottom: 1px solid #d8e2e4;
}

.sml-title { grid-column: 1 / -1; font-weight: 700; overflow-wrap: anywhere; }
.sml-article { color: #465b60; font-size: .875rem; overflow-wrap: anywhere; }
.sml-price { font-weight: 800; justify-self: end; padding-inline-end: .75rem; }
.sml-row > button { min-width: 8rem; justify-self: end; grid-column: 2; }
.sml-row.sml-selected { background: #edf7f7; }
#sovermed-labs .sml-row > button[aria-pressed="true"] {
    color: #fff;
    background: #08758b;
    border-color: #08758b;
}
#sovermed-labs .sml-row > button[aria-pressed="true"]:hover { background: #07596b; }
.sml-layout button:disabled { opacity: .55; cursor: default; }
.sml-pages { padding-block-start: 1rem; }

.sml-basket { background: #e8f3f5; padding: clamp(1rem, 2vw, 1.75rem); }
.sml-basket-count, .sml-basket-total { padding-block: .65rem; border-top: 1px solid #ccdee2; }
.sml-basket-total { font-weight: 800; }
.sml-basket-actions { display: grid; gap: .75rem; }
.sml-basket-details summary { cursor: pointer; font-weight: 700; color: #07596b; }
.sml-basket-list { margin-block: .75rem; max-height: 30vh; overflow: auto; }
.sml-basket-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sml-basket-list li > button { flex-shrink: 0; padding: .35rem .55rem; font-size: .875rem; }
.sml-basket-list li > span { overflow-wrap: anywhere; min-width: 0; }

@media (min-width: 980px) {
    .sml-layout { grid-template-columns: minmax(0, 1fr) minmax(15rem, 28%); }
    .sml-basket {
        position: sticky;
        top: calc(var(--sovermed-header-scroll-offset, 5rem) + 1rem);
        max-height: calc(100dvh - var(--sovermed-header-scroll-offset, 5rem) - 2rem);
        overflow: auto;
    }
    .sml-row-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 7rem 7.5rem 8rem;
        align-items: center;
        gap: .75rem;
    }
    .sml-columns { padding: .75rem .625rem; border-bottom: 1px solid #d8e2e4; color: #465b60; }
    .sml-title, .sml-row > button { grid-column: auto; }
    .sml-price { justify-self: start; }
}

@media (min-width: 980px) { .sml-jump { display: none; } }

.sml-information {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.sml-information section { display: grid; gap: 1rem; }
.sml-information p { max-width: 76ch; }
.sml-information #lab-prepare,
.sml-information #lab-results {
    padding: clamp(1rem, 3vw, 2rem);
    background: #edf6f7;
    border-radius: 1rem;
}
.sml-info-book { justify-self: start; white-space: normal; text-align: center; }
.sml-information .lab-check-list { display: grid; gap: .65rem; }
.sml-information .lab-check-list label {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    cursor: pointer;
}
.sml-information input[type="checkbox"] { accent-color: #08758b; }
.sml-information .lab-info-cards,
.sml-information .lab-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: .75rem;
}
.sml-information .lab-info-cards > * {
    padding: 1rem;
    background: #fff;
    border: 1px solid #d8e2e4;
    border-radius: .75rem;
}
.sml-information .lab-branches span { display: block; }
.sml-information dt { font-weight: 700; }
.sml-information details {
    border-block-end: 1px solid #d8e2e4;
    padding-block: .75rem;
}
.sml-information summary { cursor: pointer; font-weight: 700; color: #07596b; }
.sml-information details > :not(summary) { margin-block-start: .6rem; }
.sml-information .lab-faq { gap: .4rem; }
.sml-information .lab-note { color: #465b60; font-size: .875rem; }
