.neurobit-sidecart-header:has(> .nb-drawer-tools),
.neurobit-wishlist-header:has(> .nb-drawer-tools) { flex-wrap: wrap; }
.nb-drawer-tools { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.nb-drawer-tools > button, .nb-drawer-tools > a { display: flex !important; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px !important; margin: 0 !important; border: 1px solid #dce3e8 !important; border-radius: 4px; background: #fff !important; color: #24282c !important; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none !important; letter-spacing: 0 !important; cursor: pointer; }
.nb-drawer-tools > :hover { background: #edfaff !important; border-color: #01abec !important; }
.nb-drawer-tools i { color: #0083b4; }
.nb-drawer-tools a i { color: #008767; }
.nb-history-dialog { box-sizing: border-box; width: min(860px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #dce3e8; border-radius: 8px; background: #fff; color: #24282c; box-shadow: 0 16px 60px #0003; font-family: inherit; letter-spacing: 0; }
.nb-history-dialog::backdrop { background: #0008; }
.nb-history-dialog[open] { display: flex; flex-direction: column; }
.nb-history-dialog *, .nb-history-dialog *::before { box-sizing: border-box; }
.nb-history-dialog [hidden] { display: none !important; }
.nb-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 3px solid #01abec; flex-shrink: 0; }
.nb-history-dialog h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.nb-history-dialog h3 { margin: 0 0 12px; font-size: 16px; line-height: 1.4; }
.nb-history-dialog button { font-family: inherit; font-size: 14px; line-height: 1.4; letter-spacing: 0; cursor: pointer; }
.nb-history-dialog button:disabled { opacity: .5; cursor: default; }
.nb-history-close { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid #dce3e8; border-radius: 4px; background: #fff; color: #24282c; }
.nb-history-tabs { display: flex; gap: 6px; padding: 14px 22px 0; }
.nb-history-tabs button { min-height: 40px; padding: 8px 24px; background: #fff; color: #24282c; border: 1px solid #dce3e8; border-radius: 4px; }
.nb-history-tabs [aria-selected="true"] { background: #eaf8fd; border-color: #01abec; color: #006d95; font-weight: 700; }
.nb-history-note, .nb-history-status { margin: 10px 22px; font-size: 13px; line-height: 1.5; color: #59616a; }
.nb-history-status:empty { display: none; }
.nb-history-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 160px; overflow: auto; border-top: 1px solid #e4e8ed; }
.nb-history-versions { padding: 12px; border-right: 1px solid #e4e8ed; overflow: auto; max-height: 45dvh; }
.nb-history-version { display: flex; flex-direction: column; text-align: left; gap: 4px; width: 100%; padding: 12px; margin: 0 0 8px; border: 1px solid #dce3e8; border-radius: 4px; background: #fff; color: #24282c; }
.nb-history-version time, .nb-history-version span { font-size: 12px; color: #59616a; }
.nb-history-version[aria-pressed="true"] { border-color: #01abec; background: #edfaff; }
.nb-history-preview { padding: 20px; overflow: auto; max-height: 45dvh; }
.nb-history-product { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e4e8ed; font-size: 13px; line-height: 1.4; }
.nb-history-product img { width: 48px; height: 48px; object-fit: contain; }
.nb-history-product span { overflow-wrap: anywhere; }
.nb-history-product strong { white-space: nowrap; }
.nb-history-dialog footer { padding: 16px 22px; border-top: 1px solid #e4e8ed; background: #f6f8f9; overflow: auto; flex-shrink: 0; }
.nb-history-restore, .nb-history-apply, .nb-history-cancel { min-height: 42px; padding: 10px 16px; border: 1px solid #dce3e8; border-radius: 4px; background: #fff; color: #24282c; }
.nb-history-restore i { margin-right: 8px; }
.nb-history-apply { background: #007ea9; border-color: #007ea9; color: #fff; margin-left: 8px; }
.nb-history-confirm p { margin: 12px 0; font-size: 14px; line-height: 1.5; }
.nb-history-dialog button:focus-visible, .nb-drawer-tools > :focus-visible { outline: 2px solid #007ea9; outline-offset: 3px; }
@media (max-width: 600px) {
	.nb-history-heading { padding: 12px; }
	.nb-history-dialog h2 { font-size: 19px; }
	.nb-history-body { grid-template-columns: 1fr; }
	.nb-history-versions { display: flex; gap: 8px; max-height: 140px; border-right: 0; border-bottom: 1px solid #e4e8ed; }
	.nb-history-version { flex: 0 0 190px; margin: 0; }
	.nb-history-preview { max-height: 34dvh; padding: 12px; }
	.nb-history-dialog footer { padding: 12px; }
	.nb-history-dialog .nb-history-note { font-size: 12px; }
	.nb-history-restore { width: 100%; }
}
