/* V280: the compact account menu preserves the original action handlers. */
#customer-account-menu{display:flex;flex-direction:column;gap:0;padding:10px;max-height:min(78dvh,700px);overflow:auto;overscroll-behavior:contain;border-color:#dfdbd1;border-radius:16px;background:#fff;}
#customer-account-menu[hidden]{display:none!important;}
#customer-account-menu>.account-identity{padding:10px 10px 14px;border-bottom:1px solid #e7e3da;margin-bottom:4px;overflow-wrap:anywhere;font-size:14px;line-height:1.5;color:#585d58;}
#customer-account-menu>.sfm-account-action{box-sizing:border-box;display:block;flex:none;width:100%;min-height:46px;margin:0;padding:12px 10px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#26382e;font:600 15px/1.4 system-ui,sans-serif;text-align:left;cursor:pointer;}
#customer-account-menu>.sfm-account-action:hover{background:#f6f4ed;}
#customer-account-menu>.sfm-account-action:focus-visible{outline:2px solid #8f7948;outline-offset:-2px;background:#f6f4ed;}
#customer-account-menu>.sfm-account-signout{margin-top:5px;border-top:1px solid #ece8df;border-radius:0 0 8px 8px;}
#customer-account-menu>.sfm-account-signout-all{color:#656b65;font-weight:500;}
/* The visible, accessible entry is in the account menu. The existing launcher
   remains as an internal integration hook; app.js removes it from the tab order. */
body[data-view="customer"] .sfm-header-messages{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;}
#customer-account-trigger{position:relative;}
.sfm-account-unread{display:inline-grid;place-items:center;box-sizing:border-box;margin-left:5px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#8a342b;color:#fff;font:700 11px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;}

/* Matching contact options keep comfortable tap targets at narrow widths. */
.sfm-contact-preferences .sfm-contact-chips{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.sfm-contact-preferences .sfm-contact-chips label{min-height:54px!important;border-color:#ddd9cf!important;border-radius:12px!important;box-shadow:none!important;}
.sfm-contact-preferences .sfm-contact-chips label:has(input:checked){background:#f5f2e9!important;border-color:#b5a478!important;color:#363d32!important;}
.sfm-contact-preferences .sfm-contact-chips label span{white-space:normal;overflow-wrap:normal;}
.sfm-contact-preferences .sfm-contact-chips label:last-child{grid-column:1/-1;}
.sfm-contact-preferences fieldset{min-width:0;}

/* Billing remains compact; the separate sender/pickup fields follow its switch. */
.sfm-billing-summary{background:#f7f6f2;border-color:#dedbd1;color:#29362d;line-height:1.6;}
.sfm-billing-edit>summary{color:#5d614f;line-height:1.5;}
.sfm-pickup-address .sfm-address-copy{align-items:flex-start;}
.sfm-pickup-address .sfm-address-copy span{min-width:0;overflow-wrap:anywhere;}
.sfm-profile-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-height:90dvh;overscroll-behavior:contain;scrollbar-gutter:stable;}
.sfm-profile-dialog [hidden],.sfm-shipping-choice [hidden]{display:none!important;}
.sfm-profile-dialog .sfm-profile-head{position:sticky;top:0;z-index:2;background:#fff;padding:8px 0 12px;border-bottom:1px solid #e9e5dc;}
.sfm-profile-dialog .sfm-profile-head .button{flex:none;min-height:40px;padding:8px 12px;font-size:14px;}
.sfm-profile-form[aria-busy="true"] input{color:#59615a;background:#f4f4f0;}
.sfm-profile-dialog[aria-label="Passwort ändern"] .sfm-profile-form>fieldset{display:grid;gap:14px;margin:0;}
.sfm-profile-status{font-size:14px;line-height:1.5;overflow-wrap:anywhere;}

/* One postage value, also visible alongside the customer's own price proposal. */
.sfm-shipping-choice[hidden],.sfm-counter-postage[hidden],.sfm-counter-postage-note[hidden]{display:none!important;}
.sfm-shipping-choice>label,.sfm-counter-postage{display:grid!important;gap:7px;max-width:22rem;}
.sfm-shipping-choice input,.sfm-counter-postage input{box-sizing:border-box;width:100%;max-width:22rem;min-height:46px;}
.sfm-counter-postage{margin:16px 0 4px!important;}
.sfm-counter-postage-note{display:block;font-size:13px;line-height:1.5;color:#667065;margin:0 0 14px;}
.sfm-shipping-confirmation{color:#626a60;line-height:1.5;}
.sfm-zero-postage{padding:11px 13px;border-left:3px solid #b6a06a;background:#f8f5ec;color:#5b5138;border-radius:0 8px 8px 0;}
.sfm-shipping-status{min-height:1.4em;font-variant-numeric:tabular-nums;}

/* Totals and long addresses share one aligned grid without detached labels. */
.sfm-checkout .sfm-order-recap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:baseline;column-gap:18px;row-gap:14px;}
.sfm-checkout .sfm-order-recap>dt,.sfm-checkout .sfm-order-recap>dd{min-width:0;box-sizing:border-box;margin:0;line-height:1.55;overflow-wrap:anywhere;}
.sfm-checkout .sfm-order-recap>dt{text-align:left;font-weight:400;}
.sfm-checkout .sfm-order-recap>dd{text-align:right;font-weight:600;font-variant-numeric:tabular-nums;}
.sfm-checkout .sfm-order-recap>dt[data-cost-row],.sfm-checkout .sfm-order-recap>dd[data-cost-row]{border-top:1px solid #e6e2d8;padding-top:12px;}
.sfm-checkout .sfm-order-recap>dt.sfm-recap-total,.sfm-checkout .sfm-order-recap>dd.sfm-recap-total{font-weight:700;border-top:1px solid #d7d1c2;padding-top:14px;}
@media(max-width:420px){
 .sfm-checkout .sfm-order-recap{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);column-gap:12px;row-gap:12px;padding:14px;font-size:13px;}
 .sfm-profile-dialog{padding:16px;}
 .sfm-profile-head h2{font-size:20px;}
 .sfm-profile-actions .button{flex:1 1 100%;min-height:44px;}
}
@media(max-width:330px){.sfm-contact-preferences .sfm-contact-chips{grid-template-columns:1fr!important;}}

/* V293: clear but compact identification question before price research. */
.sfm-identity-family{margin:12px 0 4px;font-weight:700;font-size:15px;color:#234c3b;overflow-wrap:anywhere;}
.sfm-identity-guidance{margin:7px 0 14px;padding:12px 14px;background:#f5f6f2;border-left:3px solid #94a69a;border-radius:0 8px 8px 0;font-size:14px;line-height:1.55;color:#43564b;overflow-wrap:anywhere;}
.sfm-price-facts .button{min-height:44px;}
