/* V632: one control language for navigation and cart; native permissions and events stay intact. */
@media screen {
 body .sidebar-cart .cart-kicker {display:none}
 body .sidebar-cart .cart-title {display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-bottom:14px;margin-bottom:14px}
 body .sidebar-cart .cart-title>div {flex:1 0 105px;min-width:0}
 body .sidebar-cart .cart-title>div>strong {font-size:22px;line-height:1.2}
 body .sidebar-cart .cart-title :is(#cart-add-cashback,#clear-cart) {display:inline-flex;align-items:center;justify-content:center;min-height:36px;height:auto;padding:7px 10px;box-sizing:border-box;border:1px solid #cbdce8;border-radius:9px;background:#fff;color:#23465e;font:600 12px/1.3 'Segoe UI',Arial,sans-serif;box-shadow:none;white-space:nowrap;cursor:pointer}
 body .sidebar-cart .cart-title #clear-cart {border-color:transparent;color:#9a3b40;background:transparent}
 body .sidebar-cart .cart-title #clear-cart:hover {background:#fff1f1;border-color:#efc9cc;color:#832e33}
 body .sidebar-cart .cart-title #cart-add-cashback:hover {background:#edf4f9;border-color:#a8c1d3}
 body .sidebar-cart .cart-primary-actions {display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;border-bottom:1px solid #e4ebf1;padding-bottom:14px;margin-bottom:14px}
 body .sidebar-cart .cart-primary-actions :is(#save-offer-btn,#save-shop-favorite-btn,#open-offers-btn) {display:inline-flex;align-items:center;justify-content:center;flex:1 1 180px;width:auto;min-width:0;min-height:44px;padding:10px 12px;box-sizing:border-box;border:1px solid #cbdce8;border-radius:10px;background:#fff;color:#173e59;box-shadow:none;font:600 14px/1.35 'Segoe UI',Arial,sans-serif;text-align:center;overflow-wrap:normal;word-break:normal;cursor:pointer;transition:background-color .15s,border-color .15s,box-shadow .15s}
 body .sidebar-cart .cart-primary-actions #save-offer-btn {flex-basis:100%;min-height:46px;background:#173e59;border-color:#173e59;color:#fff;font-weight:650}
 body .sidebar-cart .cart-primary-actions #save-offer-btn:hover {background:#22516e;border-color:#22516e;box-shadow:0 2px 6px #173e5918}
 body .sidebar-cart .cart-primary-actions :is(#save-shop-favorite-btn,#open-offers-btn):hover {background:#edf4f9;border-color:#a8c1d3;color:#173e59}
 body .sidebar-cart :is(#cart-add-cashback,#clear-cart,#save-offer-btn,#save-shop-favorite-btn,#open-offers-btn):focus-visible {outline:3px solid #0785bd;outline-offset:3px}
 body .sidebar-cart .cart-primary-actions button:disabled {cursor:default;opacity:.5;box-shadow:none}
 body.pos-nav-active .pos-primary {gap:5px;padding:8px;min-height:58px}
 body.pos-nav-active .pos-primary>button {min-height:40px;height:40px;padding:0 12px;border-radius:10px;border:1px solid transparent;font:600 14px/1.3 'Segoe UI',Arial,sans-serif;color:#23465e;background:transparent;box-shadow:none}
 body.pos-nav-active .pos-primary>button:hover {background:#edf4f9;border-color:#cbdce8}
 body.pos-nav-active .pos-primary>button[aria-pressed=true] {background:#eaf3f8;border-color:#b8cfdF;color:#173e59;box-shadow:inset 0 -2px #173e59}
 body.pos-nav-active .pos-primary>button[aria-pressed=true]:hover {background:#e2eef5;border-color:#a8c1d3;color:#173e59}
 body.pos-nav-active .pos-primary>button:focus-visible {outline:3px solid #0785bd;outline-offset:3px}
 body.pos-nav-active .pos-compact select {min-height:40px;border-radius:10px;border-color:#b8cfdf;background:#eaf3f8;color:#173e59;font:600 14px/1.3 'Segoe UI',Arial,sans-serif}
}
@media screen and (max-width:420px) {
 body .sidebar-cart .cart-title {gap:6px}
 body .sidebar-cart .cart-title>div {flex:1 1 auto}
 body .sidebar-cart .cart-title>div>strong {font-size:21px}
 body .sidebar-cart .cart-title #cart-add-cashback {min-height:34px;padding:6px;font-size:11px}
 body .sidebar-cart .cart-title #clear-cart {width:30px;min-width:30px;min-height:34px;padding:6px;font-size:0}
 body .sidebar-cart .cart-title #clear-cart::before {content:'';display:block;width:16px;height:16px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M9 6V3h6v3M5 6l1 15h12l1-15M10 10v7M14 10v7'/%3E%3C/svg%3E") center/contain no-repeat}
}

/* V633: semantic icons survive native button loading-label changes. */
:root{--offer-icon-customer:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2013h8M8%2017h6%22%2F%3E%3C%2Fsvg%3E");--offer-icon-favorite:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m12%202.5%202.94%205.96%206.58.96-4.76%204.64%201.12%206.55L12%2017.52l-5.88%203.09%201.12-6.55-4.76-4.64%206.58-.96z%22%2F%3E%3C%2Fsvg%3E");--offer-icon-global:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M3%2012h18M12%203c5%205%205%2013%200%2018-5-5-5-13%200-18%22%2F%3E%3C%2Fsvg%3E");}
@media screen {
 body :is(#save-offer-btn,#save-shop-favorite-btn,#open-offers-btn),body.pos-nav-active .pos-primary>button:is([data-pos-section=shop],[data-pos-section=global]) {gap:8px}
 body :is(#save-offer-btn,#save-shop-favorite-btn,#open-offers-btn)::before,
 body .pos-primary>button:is([data-pos-section=shop],[data-pos-section=global])::before,
 body :is(.shop-offer-copy,.shop-offer-open-own)::before {content:'';display:inline-block;flex:0 0 18px;width:18px;height:18px;background:currentColor;mask:var(--offer-semantic-icon) center/contain no-repeat}
 body :is(#save-offer-btn,#open-offers-btn) {--offer-semantic-icon:var(--offer-icon-customer)}
 body :is(#save-shop-favorite-btn,.shop-offer-copy,.shop-offer-open-own),body .pos-primary>[data-pos-section=shop] {--offer-semantic-icon:var(--offer-icon-favorite)}
 body .pos-primary>[data-pos-section=global] {--offer-semantic-icon:var(--offer-icon-global)}
 body .shop-offer-open-own>span:first-child {display:none}
 body .pos-navigation[data-section=shop] .pos-compact>span {--offer-semantic-icon:var(--offer-icon-favorite)}
 body .pos-navigation[data-section=global] .pos-compact>span {--offer-semantic-icon:var(--offer-icon-global)}
 body .pos-navigation:is([data-section=shop],[data-section=global]) .pos-compact>span {display:flex;align-items:center;gap:6px}
 body .pos-navigation:is([data-section=shop],[data-section=global]) .pos-compact>span::before {content:'';width:17px;height:17px;flex:0 0 17px;background:currentColor;mask:var(--offer-semantic-icon) center/contain no-repeat}
}
@media screen {body .shop-offer-copy {display:inline-flex;align-items:center;justify-content:center;gap:8px}}

/* V634: favorites are a separate concept from customer offer documents. */
@media screen {
 body :is(#save-shop-favorite-btn,.shop-offer-copy,.shop-offer-open-own)::before,body .pos-primary>button[data-pos-section=shop]::before,body .pos-navigation[data-section=shop] .pos-compact>span::before {background:#e2ad16;filter:drop-shadow(0 0 .35px #80600c)}
}

/* V634: customer create/list actions together; reusable favorite below a divider. */
@media screen {
 body .sidebar-cart .cart-primary-actions {display:flex;flex-direction:column;gap:0}
 body .sidebar-cart .cart-primary-actions>div {display:none;min-width:0}
 body .sidebar-cart .cart-customer-actions:has(>button:not([hidden])),body .sidebar-cart .cart-favorite-actions:has(>button:not([hidden])) {display:flex;flex-wrap:wrap;gap:8px}
 body .sidebar-cart .cart-primary-actions :is(#save-offer-btn,#open-offers-btn) {flex:1 1 210px;min-height:46px}
 body .sidebar-cart .cart-primary-actions #save-shop-favorite-btn {flex:1 1 100%}
 body .sidebar-cart .cart-customer-actions:has(>button:not([hidden]))+.cart-favorite-actions:has(>button:not([hidden])) {border-top:1px solid #dce6ee;margin-top:12px;padding-top:12px}
}

@media screen {body .offer-favorite-star {color:#e2ad16}}

/* Empty offer carts and customer mode suppress the entire favorite group. */
@media screen {
 body:has(:is(#tab-popular-new-contracts,#tab-global-offers).active) .sidebar-cart:has(#cart-list>.empty-cart-msg) .cart-favorite-actions,
 body.kunde-mode-active:has(:is(#tab-popular-new-contracts,#tab-global-offers).active) .sidebar-cart .cart-favorite-actions {display:none!important}
}
