html:has(#amd-driver-dialog[open]), .amd-page:has(#amd-driver-dialog[open]) { overflow: hidden; }
#amd-driver-dialog { width: 840px; overscroll-behavior: contain; }
.amd-browser .nv-products { width: fit-content; max-width: 100%; }
.amd-table-wrap { overflow-x: auto; }
.amd-table { width: auto; text-align: left; }
.amd-table th { padding: 12px 20px; color: #465b80; font-weight: 700; background: #f3f6fc; white-space: nowrap; }
.amd-table td { padding: 14px 20px; border-top: 1px solid #edf0f7; vertical-align: middle; }
.amd-table td:first-child, .amd-table td:nth-child(2) { color: #4b5870; }
.amd-table td:nth-child(3) { font-weight: 700; color: #263e70; }
.amd-table th:last-child, .amd-table td:last-child { text-align: right; white-space: nowrap; }
.amd-table tbody tr:hover { background: #fafbff; }
#amd-driver-dialog .nv-close { flex-shrink: 0; }
#amd-driver-dialog .nv-driver-facts td:first-child { overflow-wrap: anywhere; }
#amd-driver-dialog .nv-driver-facts td:nth-child(2), #amd-driver-dialog .nv-driver-facts td:nth-child(3), #amd-driver-dialog .nv-driver-actions { white-space: nowrap; }
#amd-driver-fallback { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#amd-driver-content:focus-visible { outline: 3px solid #9bb6ff; outline-offset: 3px; }

@media (min-width: 641px) {
    #amd-driver-dialog .nv-driver-facts { table-layout: fixed; }
    #amd-driver-dialog .nv-driver-facts th:nth-child(2) { width: 120px; }
    #amd-driver-dialog .nv-driver-facts th:nth-child(3) { width: 100px; }
    #amd-driver-dialog .nv-driver-facts th:last-child { width: 104px; }
}

@media (max-width: 640px) {
    .amd-browser .nv-products { width: 100%; }
    .amd-table, .amd-table tbody, .amd-table tr, .amd-table td { display: block; width: 100%; }
    .amd-table thead { display: none; }
    .amd-table tr { padding: 16px; border-top: 1px solid #dfe5f1; }
    .amd-table td { border: none; padding: 0; }
    .amd-table td:nth-child(3) { margin: 4px 0 12px; }
    #amd-driver-dialog .nv-driver-facts, #amd-driver-dialog .nv-driver-facts tbody, #amd-driver-dialog .nv-driver-facts tr { display: block; }
    #amd-driver-dialog .nv-driver-facts thead { display: none; }
    #amd-driver-dialog .nv-driver-facts td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
    #amd-driver-dialog .nv-driver-facts td[data-label]::before { content: attr(data-label); color: #4b5870; font-weight: 400; white-space: nowrap; }
    #amd-driver-dialog .nv-driver-facts .nv-driver-actions { justify-content: flex-end; margin-top: 8px; }
}
