/* DaData tools. Layout only: colours, type and controls come from the theme tokens and calc.css. */
.pkt-dd-combo { position: relative }
.pkt-dd-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 360px; overflow-y: auto; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid #bbb; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .08) }
.pkt-dd-list[hidden] { display: none }
.pkt-dd-option { padding: 11px 14px; min-height: 44px; border-top: 1px solid var(--line); cursor: pointer; font-size: 16px; line-height: 1.45 }
.pkt-dd-option:first-child { border-top: 0 }
.pkt-dd-option[aria-selected=true], .pkt-dd-option:hover { background: #f3f3f1 }
.pkt-dd-option small { display: block; font-size: 13px; color: #6b6b6b; margin-top: 2px }

.pkt-dd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 28px 0 0 }
.pkt-dd-head h3 { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -.02em; line-height: 1.25 }
/* The theme resets .service-landing p margins, so the selector needs the tool wrapper. */
.pkt-tool .pkt-dd-kind { margin: 6px 0 12px; font-size: 14px; color: #6b6b6b }
.pkt-badge.is-warn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.pkt-badge.is-bad { background: var(--ink); border-color: var(--ink); color: #fff }

.pkt-page .pkt-tool .pkt-dd-rows { grid-template-columns: minmax(0, 1fr) }
.pkt-page .pkt-tool .pkt-dd-rows dt { padding: 14px 0 0; font-size: 14px; color: #666666 }
.pkt-page .pkt-tool .pkt-dd-rows dd { border-top: 0; padding: 2px 0 14px; text-align: left; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-variant-numeric: normal }
.pkt-dd-rows dd span { min-width: 0; overflow-wrap: anywhere }
.pkt-dd-copy { flex: none; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; padding: 0; background: transparent; border: 0; border-bottom: 1px solid currentColor; font-size: 14px; color: #555; cursor: pointer }
.pkt-dd-copy:focus-visible { outline: 2px solid #202020; outline-offset: 3px }

/* tools-ui.css sizes .pkt-calc-table columns for the margin calculator; the branch list needs its own widths. */
.pkt-page .pkt-tool .pkt-dd-branches { min-width: 560px; table-layout: auto }
.pkt-page .pkt-tool .pkt-dd-branches th, .pkt-page .pkt-tool .pkt-dd-branches td { width: auto; text-align: left; vertical-align: top }
.pkt-page .pkt-tool table.pkt-dd-branches th:first-child { width: 40% }
.pkt-page .pkt-tool table.pkt-dd-branches th:nth-child(2) { width: 112px }
.pkt-page .pkt-tool table.pkt-dd-branches th:last-child { width: auto }
.pkt-dd-branches button { padding: 0; min-height: 44px; background: transparent; border: 0; border-bottom: 1px solid currentColor; font: inherit; text-align: left; cursor: pointer }
.pkt-dd-source { margin-top: 14px !important }
.pkt-dd-source a { color: inherit }
@media (max-width: 800px) { .pkt-dd-head h3 { font-size: 21px } }

/* D7: the visitor's list of codes and the collections under the tool. */
.pkt-okved-basket { margin: 28px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line) }
.pkt-okved-basket ol { margin: 8px 0 0; padding: 0 0 0 1.6em; font-size: 15px; line-height: 1.5 }
.pkt-okved-basket li { padding: 6px 0 }
.pkt-okved-basket li .pkt-dd-copy { margin: 0 0 0 8px; min-height: 32px }
.pkt-okved-basket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 0 }
.pkt-okved-basket-actions .pkt-calc-add { margin: 0 }
.pkt-okved-basket-actions span { font-size: 14px; color: #555 }
.pkt-okved-add { display: block; margin-top: 18px }
.pkt-okved-sets details { border-top: 1px solid var(--line) }
.pkt-okved-sets details:last-of-type { border-bottom: 1px solid var(--line) }
.pkt-okved-sets summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 10px 0; font-size: 18px; line-height: 1.4; cursor: pointer }
.pkt-okved-sets summary span { flex: none; font-size: 14px; color: #666666 }
.pkt-okved-sets summary:focus-visible { outline: 2px solid #202020; outline-offset: 3px }
.pkt-okved-sets ul { list-style: none; margin: 0; padding: 0 0 8px }
.pkt-okved-sets li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 0; font-size: 15px; line-height: 1.5 }
.pkt-okved-sets li b { font-weight: 500; font-variant-numeric: tabular-nums }
.pkt-okved-sets li .pkt-dd-copy { margin: 0; min-height: 32px }
.pkt-okved-sets li .pkt-dd-copy:disabled { color: #6b6b6b; border-bottom-color: transparent; cursor: default }
.pkt-okved-set-actions { margin: 0 0 16px }
.pkt-okved-set-actions .pkt-calc-add { margin: 0 }
@media (max-width: 600px) { .pkt-okved-sets li { grid-template-columns: 64px minmax(0, 1fr) } .pkt-okved-sets li .pkt-dd-copy { grid-column: 2; justify-self: start } }

/* Links under a card: to neighbouring tools, the map or an OKVED collection. One per line on phones. */
.pkt-dd-link { display: inline-block; margin: 16px 20px 0 0 }
