/* Карточки выбора связанных лицензий в форме торгового объекта */
.license-picker > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.license-picker > ul > li { min-width: 0; }

.license-picker > ul label {
    display: grid;
    min-height: 112px;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 16px 17px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--ink-soft);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.license-picker > ul label:hover {
    border-color: #86c8c1;
    background: #fbfefd;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.license-picker > ul label:has(input:checked) {
    border-color: #5bb5ac;
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px rgb(18 135 125 / .08);
}

.license-picker input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 2px solid #aeb8c7;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.license-picker input[type="checkbox"]:checked {
    border-color: var(--primary);
    background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m5 10 3 3 7-7'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px;
}

.license-picker input[type="checkbox"]:focus-visible {
    outline: 3px solid rgb(18 135 125 / .2);
    outline-offset: 2px;
}

.license-choice__copy { display: grid; min-width: 0; gap: 3px; }

.license-choice__number {
    overflow: hidden;
    color: var(--ink);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.license-choice__type {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.license-choice__period { color: var(--muted); font-size: 11px; font-weight: 500; }

@media (max-width: 760px) {
    .license-picker > ul { grid-template-columns: 1fr; }
    .license-picker > ul label { min-height: 100px; }
}
