/* Shared spacing corrections; product content and operations stay intact. */
/* Archive browsing uses an in-flow desktop navigation; the shelf reset removes
   the page's bottom padding, so restore its gap without moving the navigation. */
@media(min-width:721px){
 body.visual-system.collection-active[data-visual-page="archive"] .collection-page{padding-bottom:40px}
}

/* Keep account verification, destructive action and cancellation distinct. */
.visual-system .account-delete>.checkbox{margin-bottom:20px}
.visual-system .account-delete [data-account-action="cancel-delete"]{display:block;margin-top:12px}
.visual-system .account-page [data-account-action="open-delete"]{margin-top:12px}

/* The memory delivery page retains its review flow, with a separate return. */
.visual-system .memory-workbench .work-delivery>[data-memory-action="back-edit"]{display:block;margin-top:12px}

/* A larger text setting must not put an order heading underneath its close icon. */
.visual-system :is(.id-checkout-dialog,.career-checkout-dialog) .id-checkout-close{
 display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;line-height:1;
}
.visual-system :is(.id-checkout-dialog,.career-checkout-dialog) h2{padding-inline-end:44px;overflow-wrap:anywhere}

/* Generic dialogs sit outside the page-specific typography scopes. */
.visual-system #dialog :is(.primary,.secondary,.text-btn){
 font-size:var(--site-control,.9375rem);line-height:1.6;white-space:normal;overflow-wrap:anywhere;
}
.visual-system #dialog :is(.primary,.secondary){min-height:52px}
.visual-system #dialog .text-btn{min-height:44px}

/* Account/login has no shared service footer; retain room above the fixed nav. */
@media(max-width:720px){
 .visual-system .account-page{padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))}
 .visual-system .account-delete{padding-bottom:12px}
}
