#website-account-area .public-shop-profile{display:grid;gap:12px;margin-top:14px}
#website-account-area .public-shop-profile label{display:grid;gap:5px}
#website-account-area .public-shop-profile input{font:inherit;padding:8px;min-width:0;width:100%;box-sizing:border-box}
#website-account-area [role=alert]{color:#a51922}
#website-account-area details summary{cursor:pointer;padding:12px 0}
#cart-content [data-shop-qty]{width:75px;max-width:100%;font:inherit}

/* Keep the cart outside the horizontally scrolling navigation links. */
.reference-header .public-cart-nav{display:flex;align-items:center;gap:8px;padding-inline:12px}
.reference-header .public-cart-nav .header-nav-inner{flex:1;min-width:0;width:auto}
.reference-header .public-header-cart{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:40px;margin:6px 0;padding:8px 12px;border:1px solid #ffffff45;border-radius:8px;background:var(--red,#bd1f2d);color:#fff;font:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.reference-header .public-header-cart i{display:inline-grid;place-items:center;min-width:24px;min-height:24px;padding-inline:4px;border-radius:12px;background:#fff;color:#a51922;font-style:normal;font-size:12px}
.reference-header .public-header-cart:hover{filter:brightness(1.1)}
.reference-header .public-header-cart:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:760px){.reference-header .public-cart-nav{gap:4px;padding-inline:8px}.reference-header .public-cart-nav .header-nav-inner{padding-inline:0}.reference-header .public-header-cart{gap:5px;padding:7px 9px;font-size:12px}}

/* Authenticated shopkeeper workspace; public catalog and cards stay unchanged. */
.shopkeeper-public .shopkeeper-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 0;direction:rtl}
.shopkeeper-public .shopkeeper-actions button,.shopkeeper-public #website-account-area button{font:inherit;font-size:13px;min-height:40px;padding:8px 12px;border:1px solid #dfe3e8;border-radius:9px;background:#fff;color:#263343;cursor:pointer}
.shopkeeper-public .shopkeeper-actions .action-cart{background:var(--red,#bd1f2d);border-color:transparent;color:#fff;font-weight:700;display:flex;align-items:center;gap:8px}
.shopkeeper-public .shopkeeper-actions .action-cart i{font-style:normal;background:#fff;color:#a51922;border-radius:12px;min-width:24px;padding:2px 5px;text-align:center}
.shopkeeper-public .shopkeeper-actions button:hover,.shopkeeper-public #website-account-area button:hover{border-color:#bd1f2d}
.shopkeeper-public .shopkeeper-actions button[aria-expanded="true"]{background:#fff2f2;border-color:#bd1f2d;color:#a51922}
.shopkeeper-public .shopkeeper-actions button:focus-visible,.shopkeeper-public #website-account-area :focus-visible{outline:2px solid #bd1f2d;outline-offset:3px}
.shopkeeper-public .shopkeeper-actions .auth-logout{margin-inline-start:auto;color:#a51922}
.shopkeeper-public #website-account-area{padding:0 0 12px;display:grid;gap:12px;direction:rtl}
.shopkeeper-public #website-account-area .account-card{padding:16px;border-radius:12px;min-width:0}
.shopkeeper-public #website-account-area .shopkeeper-identity{display:flex;align-items:center;justify-content:space-between;gap:12px}
.shopkeeper-public #website-account-area h2{font-size:17px;margin:4px 0 10px}
.shopkeeper-public #website-account-area .shopkeeper-identity p{margin:0;font-size:12px;color:#667085}
.shopkeeper-public .shopkeeper-caption{font-size:11px;color:#667085}
.shopkeeper-public #website-account-area [data-account-section]{scroll-margin-top:16px}
.shopkeeper-public #website-account-area [hidden],.shopkeeper-public .shopkeeper-actions [hidden]{display:none!important}
.shopkeeper-public #website-account-area .public-shop-profile{grid-template-columns:repeat(2,minmax(0,1fr))}
.shopkeeper-public #website-account-area .public-shop-profile [role="alert"]{grid-column:1/-1;margin:0}
.shopkeeper-public #website-account-area button:disabled{opacity:.5;cursor:default}
.shopkeeper-public #website-account-area [data-shop-orders]>nav{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px}
@media(max-width:600px){
 .shopkeeper-public .shopkeeper-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .shopkeeper-public .shopkeeper-actions button{width:100%;justify-content:center;padding:8px}
 .shopkeeper-public .shopkeeper-actions .auth-logout{margin:0}
 .shopkeeper-public #website-account-area .shopkeeper-identity{align-items:flex-start;flex-direction:column}
 .shopkeeper-public #website-account-area .public-shop-profile{grid-template-columns:minmax(0,1fr)}
}

/* The action bar is the single cart entry for authenticated shopkeepers. */
.shopkeeper-public .reference-header .public-header-cart{display:none}
.shopkeeper-public #website-account-area .shopkeeper-profile-readonly{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 0}
.shopkeeper-public #website-account-area .shopkeeper-profile-readonly dt{font-size:12px;color:#667085}
.shopkeeper-public #website-account-area .shopkeeper-profile-readonly dd{margin:4px 0 0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){.shopkeeper-public #website-account-area .shopkeeper-profile-readonly{grid-template-columns:minmax(0,1fr)}}

.shopkeeper-public #website-account-area .shopkeeper-notes{display:grid;gap:8px;margin-top:16px;padding-top:12px;border-top:1px solid #dfe3e8}
.shopkeeper-public #website-account-area .shopkeeper-notes label{font-size:13px;font-weight:600}
.shopkeeper-public #website-account-area .shopkeeper-notes textarea{box-sizing:border-box;width:100%;min-width:0;resize:vertical;font:inherit;padding:10px;border:1px solid #dfe3e8;border-radius:8px}
.shopkeeper-public #website-account-area .shopkeeper-notes button{justify-self:start}
.shopkeeper-public #website-account-area [data-notes-message]{margin:0;font-size:12px;overflow-wrap:anywhere}
.shopkeeper-public #website-account-area [data-notes-message][data-state="success"]{color:#247047}
.shopkeeper-public #website-account-area [data-notes-message][data-state="error"]{color:#a51922}

.shopkeeper-public [data-shop-ready-count]{display:inline-block;background:#bd1f2d;color:#fff;border-radius:12px;padding:2px 7px;margin-inline-start:5px}
.shopkeeper-public .shopkeeper-ready-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px;margin-bottom:10px;box-sizing:border-box;background:#f0faf4;border:1px solid #b6ddc5;border-radius:10px;font-size:13px}
.shopkeeper-public .shopkeeper-ready-notice button{font:inherit;padding:8px 12px;background:#fff;border:1px solid #b6ddc5;border-radius:8px;cursor:pointer}
.shopkeeper-public .shopkeeper-ready-notice[hidden],.shopkeeper-public [data-shop-ready-count][hidden]{display:none!important}
.shopkeeper-public .shopkeeper-request-ready{border-inline-start:4px solid #247047}

/* Section selection preserves the catalog DOM and its state. */
.shopkeeper-public[data-shop-section]:not([data-shop-section="products"]) main > :not(#shopkeeper-actions):not(#shopkeeper-ready-notice):not(#website-account-area){display:none!important}
.shopkeeper-public #website-account-area[hidden]{display:none!important}
.shopkeeper-public .shopkeeper-actions button[aria-pressed="true"]{background:#fff2f2;border-color:#bd1f2d;color:#a51922;box-shadow:inset 0 -2px #bd1f2d}
.shopkeeper-public[data-shop-section]:not([data-shop-section="products"]) main.catalog-page{min-height:0}
.shopkeeper-public .shopkeeper-actions{flex-wrap:nowrap}
@media(max-width:760px){.shopkeeper-public .shopkeeper-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.shopkeeper-public .shopkeeper-actions button{font-size:12px;white-space:normal;padding:8px 4px}.shopkeeper-public .shopkeeper-actions .auth-logout{margin:0}}

/* Readability polish, scoped to the authenticated shopkeeper experience. */
.shopkeeper-public .header-nav-inner [data-shop-account-nav],.shopkeeper-public .main-nav [data-shop-account-nav]{display:none!important}
.shopkeeper-public .shopkeeper-actions{gap:8px;padding-block:14px;align-items:stretch}
.shopkeeper-public .shopkeeper-actions .auth-logout{margin-inline-start:0}
.shopkeeper-public .shopkeeper-actions button{font-size:14px;line-height:1.7;min-height:44px;border-radius:10px;padding:9px 13px;font-weight:600}
.shopkeeper-public #website-account-area{gap:12px;padding-bottom:16px}
.shopkeeper-public #website-account-area .account-card{border-radius:12px;padding:18px}
.shopkeeper-public #website-account-area h2{font-size:19px;line-height:1.8;margin-bottom:12px}
.shopkeeper-public #website-account-area .shopkeeper-caption,.shopkeeper-public #website-account-area .shopkeeper-profile-readonly dt,.shopkeeper-public #website-account-area .shopkeeper-identity p{font-size:13px;line-height:1.8}
.shopkeeper-public #website-account-area .shopkeeper-profile-readonly dd{font-size:14px;line-height:1.9}
.shopkeeper-public #website-account-area .order-list button{padding:12px 14px;text-align:right;line-height:1.8}
.shopkeeper-public #website-account-area .order-list span{font-size:13px;line-height:1.8}
.shopkeeper-public #website-account-area .shopkeeper-notes label{font-size:14px}
.shopkeeper-public #website-account-area .shopkeeper-notes textarea{font-size:14px;line-height:1.9;border-radius:10px}
.shopkeeper-public #website-account-area [data-notes-message]{font-size:13px;line-height:1.8}
.shopkeeper-public .shopkeeper-ready-notice{font-size:14px;line-height:1.8;border-radius:12px}
.shopkeeper-public .waiting-stock-dialog{font-size:14px;line-height:1.9;border-radius:14px}
.shopkeeper-public .waiting-stock-dialog h2{font-size:20px;margin-block:4px 12px}
.shopkeeper-public .waiting-stock-dialog h3{font-size:16px;line-height:1.8;margin-block:4px 10px}
.shopkeeper-public .waiting-stock-request{border:1px solid #dfe3e8;border-radius:12px;padding:14px;margin-block:12px;background:#fff}
.shopkeeper-public .waiting-stock-request.shopkeeper-request-ready{border-inline-start:4px solid #247047;background:#f7fcf9}
.shopkeeper-public .waiting-stock-dialog button,.shopkeeper-public .waiting-stock-dialog select{min-height:42px;border-radius:10px;font-size:14px}
.shopkeeper-public .waiting-stock-dialog [data-convert]{background:var(--red,#bd1f2d);border-color:transparent;color:white;font-weight:700}
.shopkeeper-public .waiting-stock-dialog li{padding-block:4px}
@media(max-width:760px){.shopkeeper-public .shopkeeper-actions button{font-size:13px;padding:8px 5px}.shopkeeper-public #website-account-area .account-card{padding:14px}.shopkeeper-public .waiting-stock-dialog{padding:14px}.shopkeeper-public .waiting-stock-request{padding:12px}}
