#antivol-results .antivol-list {
    --antivol-card-gap: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(240px, calc((100% - 2 * var(--antivol-card-gap)) / 3))), 1fr));
    gap: var(--antivol-card-gap);
}

#antivol-results .antivol {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    padding: 15px;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 14px;
    overflow-wrap: anywhere;
}

#antivol-comparator .antivol-identity h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 4px;
}

#antivol-results .antivol p {
    line-height: 1.4;
    margin: 0 0 4px;
}

#antivol-comparator .antivol-brand {
    margin: 0;
    line-height: 1.4;
}

#antivol-comparator .antivol-specs {
    display: grid;
    gap: 0;
    margin: 12px 0;
    padding: 0;
}

#antivol-comparator .antivol-specs > div {
    padding: 6px 0;
    border-top: 1px solid var(--theme-border-color, #ddd);
}

#antivol-comparator .antivol-specs dt {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

#antivol-comparator .antivol-specs dd {
    margin: 0;
    line-height: 1.4;
}

#antivol-comparator .antivol-specs dd span {
    display: block;
}

#antivol-results .antivol-card-actions {
    margin-top: auto;
    padding-top: 8px;
}

#antivol-results .antivol-toggle-comparison {
    width: 100%;
}

#antivol-comparison-bar[hidden],
#antivol-results .antivol-toggle-comparison[hidden] {
    display: none;
}

#antivol-comparator .antivol-compare-button {
    min-height: 44px;
    padding: 7px 12px;
    border: 1px solid #a8424e;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    box-shadow: none;
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    cursor: pointer;
}

#antivol-comparator .antivol-compare-button[aria-pressed="true"],
#antivol-comparator #antivol-open-comparison:enabled {
    background: #bc2d39;
    color: #fff;
}

#antivol-comparator .antivol-compare-button:enabled:hover {
    background: #962431;
    color: #fff;
}

#antivol-comparator .antivol-compare-button:focus-visible {
    outline: 2px solid var(--theme-text-color, #202632);
    outline-offset: 2px;
}

#antivol-comparator .antivol-compare-button:disabled {
    opacity: 0.6;
    cursor: default;
}

#antivol-comparator .antivol-toggle-comparison[aria-pressed="true"]::before {
    display: inline-block;
    width: 6px;
    height: 10px;
    margin-inline-end: 8px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
    content: "";
}

#antivol-comparison-bar:not([hidden]) {
    position: sticky;
    z-index: 2;
    inset-block-start: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid var(--theme-border-color, #ddd);
    border-radius: 8px;
    background: var(--theme-palette-color-8, #fff);
}

#antivol-comparison-status {
    flex: 1 1 130px;
    margin: 0;
    line-height: 1.4;
}

#antivol-comparison:not([open]) {
    display: none;
}

#antivol-comparison[open] {
    position: fixed;
    inset: 0;
    width: min(94vw, 1040px);
    max-width: none;
    max-height: 88vh;
    max-height: 88dvh;
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--theme-border-color, #ddd);
    border-radius: 12px;
    background: var(--theme-palette-color-8, #fff);
    color: var(--theme-text-color, #202632);
    box-sizing: border-box;
}

#antivol-comparison::backdrop {
    background: rgb(17 24 39 / 65%);
}

#antivol-comparison .antivol-comparison-heading {
    position: sticky;
    inset-block-start: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--theme-border-color, #ddd);
    background: inherit;
}

#antivol-comparison-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

#antivol-comparison .antivol-comparison-note {
    margin: 12px 16px 0;
    font-size: 14px;
    line-height: 1.4;
}

#antivol-compared-locks {
    display: grid;
    grid-template-columns: repeat(var(--antivol-compared-count, 1), minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

#antivol-compared-locks .antivol-compared-lock {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--theme-border-color, #ddd);
    border-radius: 10px;
    overflow-wrap: anywhere;
}

@supports (grid-template-rows: subgrid) {
    @media (min-width: 701px) {
        #antivol-compared-locks {
            row-gap: 0;
        }

        #antivol-compared-locks .antivol-compared-lock {
            display: grid;
            grid-row: span 7;
            grid-template-rows: subgrid;
        }

        #antivol-compared-locks .antivol-specs {
            grid-row: span 5;
            grid-template-rows: subgrid;
        }
    }
}

@media (max-width: 700px) {
    #antivol-compared-locks {
        grid-template-columns: minmax(0, 1fr);
    }
}

#antivol-filter-form {
    margin: 0 0 20px;
    padding: clamp(12px, 2.5vw, 22px);
    border: 1px solid #d5c9ca;
    border-radius: 12px;
}

#antivol-filter-form .antivol-presets {
    min-width: 0;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

#antivol-filter-form legend {
    margin: 0 0 8px;
    padding: 0;
    font-weight: 700;
}

#antivol-filter-form .antivol-preset-options,
#antivol-filter-form .antivol-fields {
    display: grid;
    gap: 10px;
}

#antivol-filter-form .antivol-preset-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#antivol-filter-form .antivol-fields {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
    align-items: end;
}

#antivol-filter-form label {
    display: grid;
    min-width: 0;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

#antivol-filter-form :is(select, input[type="number"]) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    font-size: 16px;
}

#antivol-filter-form button {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #a8424e;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    cursor: pointer;
}

#antivol-filter-form .antivol-submit,
#antivol-filter-form .antivol-preset[aria-pressed="true"] {
    background: #bc2d39;
    color: #fff;
}

#antivol-filter-form button:hover {
    background: #962431;
    color: #fff;
}

#antivol-filter-form :is(button, select, input):focus-visible {
    outline: 2px solid var(--theme-text-color, #202632);
    outline-offset: 2px;
}

#antivol-filter-form .antivol-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#antivol-measurement-note {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

#antivol-preset-description {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.4;
}

#antivol-result-status {
    margin: 0 0 10px;
    font-weight: 700;
}

#antivol-results .antivol-empty {
    margin: 0 0 20px;
}

@media (max-width: 600px) {
    #antivol-filter-form .antivol-preset-options {
        grid-template-columns: minmax(0, 1fr);
    }

    #antivol-filter-form .antivol-preset {
        text-align: left;
    }

    #antivol-filter-form .antivol-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #antivol-filter-form .antivol-fub-field {
        grid-column: 1 / -1;
    }
}

#antivol-comparator .antivol-source {
    color: #962431;
    text-decoration: underline;
}

#antivol-results .antivol-shops {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

#antivol-results .antivol-shops .shop-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    padding: 8px;
    text-align: center;
    background-color: #BC2D39;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    line-height: 1.25;
}

#antivol-results .antivol-shops .shop-button:only-child {
    grid-column: 1 / -1;
}

#antivol-results .antivol-shops .shop-button:hover {
    background-color: #962431;
    color: #FFFFFF;
}

#antivol-results .antivol-shops .shop-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

@media (max-width: 360px) {
    #antivol-results .antivol-shops {
        grid-template-columns: minmax(0, 1fr);
    }
}
