/* t208u: save / load basket modals and the Saved Baskets account pages */
.svb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.svb-actions .button, .svb-actions .btn-cta { display: inline-flex; align-items: center; gap: 6px; }
.svb-actions .material-icons { font-size: 18px; }
.svb-actions--empty { margin: 16px 0 0; justify-content: center; }
.basket-toolbar .js-svb-open-save,
.basket-toolbar .js-svb-open-load { display: inline-flex; align-items: center; gap: 6px; }
.basket-toolbar .material-icons { font-size: 18px; }

.svb-modal { position: fixed; inset: 0; z-index: 13000; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.svb-modal[hidden] { display: none; }
.svb-modal__backdrop { position: absolute; inset: 0; background: rgba(16, 24, 32, .45); }
.svb-modal__dialog {
    position: relative; z-index: 1; width: 100%; max-width: 440px; max-height: 84vh; overflow: auto;
    background: #fff; border-radius: 10px; box-shadow: 0 16px 48px rgba(16, 24, 32, .22);
}
.svb-modal__dialog--wide { max-width: 640px; }
.svb-modal__head {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    background: var(--brand-primary, #1b365d); color: #fff; border-radius: 10px 10px 0 0;
}
.svb-modal__badge { font-size: 22px; color: #fff; }
.svb-modal__title { margin: 0; flex: 1; font-size: 1.1rem; font-weight: 700; color: #fff; }
.svb-modal__close { margin-left: auto; border: 0; background: transparent; color: #fff; cursor: pointer; padding: 4px; line-height: 1; }
.svb-modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.svb-modal__body { padding: 16px; }
.svb-field { display: block; font-weight: 700; margin: 0 0 4px; }
.svb-field .req { color: var(--brand-accent, #c00); }
.svb-optional { font-weight: 400; color: #5b6673; }
.svb-input { display: block; width: 100%; margin: 0 0 12px; padding: 8px 10px; border: 1px solid #c7ccd1; border-radius: 6px; font: inherit; }
.svb-input:focus { outline: 2px solid var(--brand-accent, #de1912); outline-offset: 1px; }
.svb-check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0 0 8px; }
.svb-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.svb-modal__msg { margin: 0 0 12px; padding: 8px 10px; border-radius: 6px; background: #f4f5f6; }
.svb-modal__msg.is-error { background: #fdecea; color: #8a1c12; }
.svb-modal__msg.is-ok { background: #e8f6ee; color: #146c36; }
.svb-empty { margin: 0 0 12px; color: #5b6673; }
.svb-list { list-style: none; margin: 0; padding: 0; }
.svb-list__item { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid #e6e8eb; }
.svb-list__item:first-child { border-top: 0; }
.svb-list__name { display: block; }
.svb-list__sub { display: block; color: #5b6673; font-size: .85rem; margin-top: 2px; }
.svb-snap { color: #8a9299; }
.svb-list__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.svb-modal__foot { margin: 12px 0 0; font-size: .9rem; }

.svb-account__search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.svb-account__search .svb-input { width: auto; min-width: 140px; margin: 0; }
.svb-account__search input[type=search] { min-width: 200px; flex: 1; }
.svb-notes { color: #5b6673; font-size: .85rem; margin-top: 2px; }
.svb-table__actions { white-space: nowrap; }
.svb-detail__meta, .svb-detail__notes, .svb-hint { color: #5b6673; }

/* t209u: one 44px row for Replace / Add / Print / Delete, including the Print <a>
   (otherwise .account-view a turns it into a red text link) and the wrapping <form>s. */
.svb-detail__actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0;
}
.svb-detail__actions form { display: inline-flex; align-items: center; margin: 0; }
.svb-detail__actions .btn-cta,
.svb-detail__actions .button {
    box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; min-height: 44px; margin: 0; padding: 0 16px;
    font-size: .95rem; font-weight: 700; line-height: 1; border-radius: 6px;
    text-decoration: none !important;
}
.svb-detail__actions .btn-cta { font-size: .95rem; padding: 0 16px; box-shadow: 0 1px 0 #005a28, 0 3px 8px rgba(0, 135, 60, .22); }
.svb-detail__actions .btn-cta .material-icons { font-size: 20px; line-height: 1; }
.account-view .svb-detail__actions a.button,
.account-view .svb-detail__actions a.button:visited {
    color: var(--brand-primary, #1b365d); background: var(--surface, #fff);
    border: 1px solid var(--brand-primary, #1b365d);
}
.account-view .svb-detail__actions a.button:hover,
.account-view .svb-detail__actions a.button:focus-visible {
    color: var(--brand-primary, #1b365d); background: var(--surface-muted, #f4f5f6);
    border-color: var(--brand-primary, #1b365d); text-decoration: none;
}

/* Rename / Notes / Save name: labels on one line, controls all 44px and bottom-aligned */
.svb-rename {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px;
    margin: 0 0 16px; padding: 12px; background: rgba(255,255,255,.6); border-radius: 8px;
}
.svb-rename__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; min-width: 160px; margin: 0; }
.svb-rename__field .svb-field { margin: 0; line-height: 1.2; }
.svb-rename__submit { display: flex; align-items: flex-end; margin: 0; }
.svb-rename .svb-input,
.svb-rename .button {
    box-sizing: border-box; height: 44px; min-height: 44px; margin: 0; padding: 0 12px;
    font-size: .95rem; line-height: 1; border-radius: 6px;
}
.svb-rename .button {
    display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; font-weight: 700;
}
.svb-unavail { color: #8a1c12; font-size: .85rem; }
.svb-table tr.is-unavailable td { color: #5b6673; }

@media (max-width: 700px) {
    .svb-list__item { align-items: stretch; flex-direction: column; }
    .svb-list__actions { width: 100%; }
    .svb-list__actions .button { flex: 1; }
    .svb-detail__actions form,
    .svb-detail__actions > a { flex: 1 1 calc(50% - 8px); }
    .svb-detail__actions .btn-cta,
    .svb-detail__actions .button { width: 100%; }
    .svb-rename__field { flex: 1 1 100%; }
    .svb-rename__submit { flex: 1 1 100%; }
    .svb-rename .button { width: 100%; }
    .svb-modal { padding: 0; align-items: flex-end; }
    .svb-modal__dialog { max-width: none; max-height: 92vh; border-radius: 12px 12px 0 0; }
    .svb-modal__head { border-radius: 12px 12px 0 0; }
    .ukps-account-tabs li a { padding: 6px 8px; font-size: .8rem; }
}
@media print {
    .svb-detail__actions, .svb-rename, .svb-account__search, .no-print { display: none !important; }
    .acct-tabs, .acct-area__signout, .site-header, .site-footer, .sb-dock { display: none !important; }
    .account-view { background: #fff; }
}
