/* Bio Young POS skin - login, choose-location and till screens. Loaded by includes/pos.php on the POS page only. */
:root {
	--byw-blue: #1B82C5;
	--byw-teal: #1D7A77;
	--byw-teal-dark: #16625F;
	--byw-ink: #232A2E;
	--byw-muted: #66717A;
	--byw-line: #D7E6F0;
	--byw-field: #F7FAFC;
	--byw-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.yith-pos-page:has(#login),
body.yith-pos-page:has(#yith-pos-store-register-form) {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background-color: #EEF6FB !important;
	background-image:
		radial-gradient(900px 520px at 105% -10%, rgba(27, 130, 197, .18), transparent 62%),
		radial-gradient(760px 480px at -10% 110%, rgba(29, 122, 119, .16), transparent 62%) !important;
	background-attachment: fixed !important;
	color: var(--byw-ink);
	-webkit-font-smoothing: antialiased;
}

#login, #login input, #login button, #login label, #login h1, #login p, #login a,
.yith-pos-form, .yith-pos-form select, .yith-pos-form button, .yith-pos-form label, .yith-pos-form h1, .yith-pos-form p, .yith-pos-form a {
	font-family: var(--byw-font) !important;
}

/* Full-screen centred stage, card inside */
#login,
.yith-pos-form {
	min-height: 100vh !important;
	min-height: 100dvh !important;
	display: flex !important;
	flex-direction: column;
	align-items: center !important;
	justify-content: center !important;
	padding: 24px 16px !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

#login .pos-login-wrapper,
.yith-pos-form-wrap {
	width: 100% !important;
	max-width: 420px !important;
	box-sizing: border-box;
	margin: 0 auto !important;
	padding: 36px 32px 26px !important;
	background: #fff !important;
	border: 1px solid #E1EDF5 !important;
	border-radius: 20px !important;
	box-shadow: 0 1px 2px rgba(16, 42, 60, .05), 0 24px 56px -16px rgba(27, 130, 197, .28) !important;
}

#login .pos-login-wrapper::after,
.yith-pos-form-wrap::after {
	content: "Staff only \00B7  Bio Young Wellness";
	display: block;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #EDF3F7;
	text-align: center;
	font: 500 12px/1.4 var(--byw-font);
	color: #8A949B;
	letter-spacing: .02em;
}

/* Heading */
#login h1,
.yith-pos-form h1 {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 0 6px !important;
	font-size: 21px !important;
	font-weight: 700 !important;
	line-height: 1.3;
	color: var(--byw-ink) !important;
	letter-spacing: -.01em;
}
#login h1 img,
.yith-pos-form h1 img {
	max-width: 190px !important;
	max-height: 60px !important;
	width: auto !important;
	height: auto;
	margin: 0 auto 20px !important;
	display: block;
}
.byw-pos-sub {
	margin: 0 0 24px !important;
	text-align: center;
	font-size: 14px !important;
	line-height: 1.5;
	color: var(--byw-muted) !important;
}

/* Forms */
#login .yith-pos-login-form,
.yith-pos-form form {
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
	overflow: visible !important;
}
#login .yith-pos-login-form-row,
.yith-pos-form-row {
	position: relative;
	margin-bottom: 14px !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

#login .input-login,
.yith-pos-form select {
	height: 58px;
	padding: 24px 44px 8px 15px !important;
	font-size: 16px !important; /* 16px stops iOS zooming into the field */
	font-weight: 500;
	color: var(--byw-ink) !important;
	background: var(--byw-field) !important;
	border: 1.5px solid var(--byw-line) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
#login .input-login { padding-right: 15px !important; cursor: text; }
#login .input-login:hover,
.yith-pos-form select:hover { border-color: #B9D3E4 !important; }
#login .input-login:focus,
.yith-pos-form select:focus {
	outline: none;
	background: #fff !important;
	border-color: var(--byw-blue) !important;
	box-shadow: 0 0 0 4px rgba(27, 130, 197, .14) !important;
}

#login label.float-label,
.yith-pos-form label.float-label {
	left: 16px !important;
	top: 19px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: var(--byw-muted) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
#login .input-login:focus + label.float-label,
#login .input-login:valid + label.float-label,
.yith-pos-form select + label.float-label {
	top: 9px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	color: var(--byw-teal) !important;
	text-transform: uppercase !important;
	letter-spacing: .07em !important;
}
#login label .required { color: #C2410C; }

.yith-pos-form .yith-pos-form-row.with-select::after {
	right: 18px !important;
	color: var(--byw-muted) !important;
	font-size: 11px !important;
	z-index: 2 !important;
}

/* Remember me */
#login label.yith-pos-login-__rememberme {
	display: inline-flex !important;
	align-items: center;
	min-height: 44px;
	position: static !important;
	font-size: 14px !important;
	color: var(--byw-ink) !important;
	cursor: pointer;
}
#login input[type=checkbox] + span::before {
	width: 22px !important;
	height: 22px !important;
	line-height: 20px !important;
	margin-right: 10px !important;
	border: 1.5px solid var(--byw-line) !important;
	border-radius: 6px !important;
	background: var(--byw-field) !important;
	color: #fff !important;
	font-size: 13px;
	box-sizing: border-box;
}
#login input[type=checkbox]:checked + span::before {
	background: var(--byw-teal) !important;
	border-color: var(--byw-teal) !important;
}
#login input[type=checkbox] + span { display: inline-flex !important; align-items: center; }

/* Primary button */
#login .login-submit,
.yith-pos-form .submit {
	height: 54px;
	margin-top: 6px;
	padding: 0 20px !important;
	background: var(--byw-teal) !important;
	border: 0 !important;
	border-radius: 12px !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	letter-spacing: .01em !important;
	text-transform: none !important;
	box-shadow: 0 8px 18px -8px rgba(29, 122, 119, .7) !important;
	cursor: pointer;
	transition: background .15s, transform .1s, box-shadow .15s;
}
#login .login-submit:hover,
.yith-pos-form .submit:hover { background: var(--byw-teal-dark) !important; }
#login .login-submit:active,
.yith-pos-form .submit:active { transform: translateY(1px); box-shadow: 0 4px 10px -6px rgba(29, 122, 119, .7) !important; }
#login .login-submit:focus-visible,
.yith-pos-form .submit:focus-visible { outline: 3px solid rgba(27, 130, 197, .45); outline-offset: 2px; }

/* Log out link and "in use" message */
#yith-pos-store-register-form .yith-pos-logout-row { margin: 6px 0 0 !important; text-align: center; }
#yith-pos-store-register-form a.logout {
	display: inline-block;
	padding: 10px 14px;
	color: var(--byw-muted) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-decoration: none;
	border-radius: 8px;
}
#yith-pos-store-register-form a.logout:hover { color: #B42318 !important; background: #FEF3F2; }
.yith-pos-change-register-or-take-over {
	padding: 12px 14px !important;
	background: #FFF8E6 !important;
	border: 1px solid #F3D58B !important;
	border-radius: 12px !important;
	font-size: 14px;
	line-height: 1.5;
	color: #6B4E00;
}
.yith-pos-change-register-or-take-over a { color: var(--byw-blue) !important; font-weight: 700; }

.byw-pos-forgot {
	margin: 14px 0 0 !important;
	text-align: center;
	font-size: 13px !important;
	line-height: 1.5;
	color: var(--byw-muted) !important;
}

/* Notices (wrong password etc.) */
#login .woocommerce-error,
#login .woocommerce-info,
#login .woocommerce-message {
	margin: 0 0 16px !important;
	border-radius: 12px !important;
	font-size: 14px !important;
	line-height: 1.45;
}

/* Phones */
@media (max-width: 480px) {
	#login, .yith-pos-form { justify-content: flex-start !important; padding-top: max(32px, 8vh) !important; }
	#login .pos-login-wrapper,
	.yith-pos-form-wrap { padding: 28px 20px 20px !important; border-radius: 18px !important; }
	#login h1 img, .yith-pos-form h1 img { max-height: 52px !important; margin-bottom: 16px !important; }
	#login h1, .yith-pos-form h1 { font-size: 19px !important; }
}

@media (prefers-reduced-motion: reduce) {
	#login *, .yith-pos-form * { transition: none !important; }
}
/* ==========================================================================
   Till screen (React app in #yith-pos-root)
   ========================================================================== */
:root:root {
	--primary: #1D7A77 !important;
	--dark_primary: #16625F !important;
	--darker_primary: #0F4F4C !important;
	--secondary: #B42318 !important;
	--tertiary: #EEF3F6 !important;
	--tertiary_hover: #E3ECF1 !important;
	--tertiary_contrast: #232A2E !important;
	--dark: #1D3F4F !important;
	--header_bar_background: #1D3F4F !important;
	--pay_button_background: #1B82C5 !important;
	--save_cart_background: #D9922E !important;
	--note_button_background: #3C4A52 !important;
	--products_background: #F1F6F9 !important;
	--products_title_background: rgba(29, 63, 79, .82) !important;
	--border_color: #DCE7EE !important;
	--border-grey: #DCE7EE !important;
	--light-grey: #EDF3F7 !important;
	--dropdown_highlight: #EAF4FA !important;
	--in-stock: #1D7A77 !important;
	--green: #1D7A77 !important;
	--red: #B42318 !important;
}
.yith-pos, .yith-pos button, .yith-pos input, .yith-pos textarea, .yith-pos select, .modal-wrap, .modal-wrap button, .modal-wrap input, .modal-wrap textarea {
	font-family: var(--byw-font) !important;
}
.yith-pos { color: var(--byw-ink); -webkit-font-smoothing: antialiased; }

/* Header bar */
.yith-pos-header { box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 4px 14px -6px rgba(16, 42, 60, .5); }
.yith-pos-header .register-info span { font-size: 14px; }
.yith-pos-header .register-info strong, .yith-pos-header .register-info b { font-weight: 700; color: #9FD3F3; }

/* Left panel: logo, search, filters */
.yith-pos-product-list { background: #fff; }
.yith-pos-product-list__logo { padding: 6px 4px 6px 16px !important; margin: 0 !important; }
.yith-pos-product-list__logo img { max-height: 24px !important; max-width: 72px !important; }
.yith-pos-product-list__search { margin: 14px 12px 14px 0 !important; }
.yith-pos-product-list__search input.product-search {
	height: 46px !important;
	padding: 0 16px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: var(--byw-ink) !important;
	background: var(--byw-field) !important;
	border: 1.5px solid var(--byw-line) !important;
	border-radius: 12px !important;
}
.yith-pos-product-list__search input.product-search:focus {
	outline: none;
	background: #fff !important;
	border-color: var(--byw-blue) !important;
	box-shadow: 0 0 0 4px rgba(27, 130, 197, .14);
}
.yith-pos-product-list__search .search-result { border-radius: 10px; }

.yith-pos-product__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.yith-pos-product__actions .nav-item,
.yith-pos-product-list__filters span {
	padding: 9px 18px !important;
	background: #fff !important;
	color: var(--byw-ink) !important;
	border: 1.5px solid var(--byw-line);
	border-radius: 999px;
	font-size: 14px !important;
	font-weight: 600;
	filter: none !important;
}
.yith-pos-product__actions .nav-item:hover { border-color: var(--byw-teal); color: var(--byw-teal) !important; }
.yith-pos-product__actions .nav-item.active {
	background: var(--byw-teal) !important;
	border-color: var(--byw-teal);
	color: #fff !important;
}
.yith-pos-product__actions .nav-item__scan-product { border-color: rgba(27, 130, 197, .45); color: var(--byw-blue) !important; }
.yith-pos-product__actions .nav-item__icon { margin-left: 0 !important; }

/* Product grid */
.yith-pos-product-list__list,
.yith-pos-product-category-list__list,
.yith-pos-scanner-tab {
	padding: 16px !important;
	grid-gap: 14px !important;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
	background: var(--products_background) !important;
	border-top: 1px solid var(--light-grey);
}
.yith-pos-product-list__list .product,
.yith-pos-product-category-list__list .product-cat {
	height: auto !important;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1.5px solid transparent !important;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(16, 42, 60, .06), 0 6px 18px -10px rgba(16, 42, 60, .25);
	transition: transform .15s, box-shadow .15s, border-color .15s !important;
}
.yith-pos-product-list__list .product:hover,
.yith-pos-product-category-list__list .product-cat:hover {
	border-color: var(--byw-blue) !important;
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(16, 42, 60, .06), 0 14px 26px -12px rgba(27, 130, 197, .45);
}
.yith-pos-product-list__list .product:active { transform: scale(.98); }
.yith-pos-product-list__list .product-image,
.yith-pos-product-category-list__list .product-cat-image {
	height: auto !important;
	aspect-ratio: 4 / 3;
	margin: 10px 10px 0;
	border-radius: 12px;
	background-color: #F7FAFC;
	background-size: contain !important;
	background-repeat: no-repeat;
}
.yith-pos-product-list__list .product-heading,
.yith-pos-product-category-list__list .product-cat-heading,
.yith-pos-product-list__list .product:hover .product-heading,
.yith-pos-product-category-list__list .product-cat:hover .product-cat-heading {
	position: static !important;
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 10px 14px 14px !important;
	background: none !important;
	opacity: 1 !important;
	color: var(--byw-ink) !important;
	font-size: 14px !important;
}
.yith-pos-product-list__list .product-title,
.yith-pos-product-list__list .product-heading .product-title {
	text-align: left !important;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.yith-pos-product-list__list .product-heading .product-price {
	text-align: left !important;
	padding-left: 0 !important;
	color: var(--byw-teal);
	font-size: 15px;
	font-weight: 700;
}
.yith-pos-product-list__list .product .stock-badge {
	top: 16px !important;
	left: 16px !important;
	right: auto !important;
	height: 24px !important;
	line-height: 24px !important;
	padding: 0 10px !important;
	border-radius: 999px;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: .02em;
	box-shadow: 0 2px 6px rgba(16, 42, 60, .18);
}

/* Right panel: cart */
.yith-pos-cart { background: #fff; border-left: 1px solid var(--light-grey) !important; padding: 0 16px 16px !important; }
.yith-pos-cart__buttons.nav {
	background: #fff !important;
	margin: 0 -16px 0 -16px !important;
	padding: 8px 12px;
	gap: 6px;
	border-bottom: 1px solid var(--light-grey);
}
.yith-pos-cart__buttons .nav-item { border-radius: 10px; padding: 8px 14px !important; }
.yith-pos-cart__buttons .nav-item.active { background: #EAF4FA !important; color: var(--byw-blue) !important; }
.yith-pos-cart__buttons .nav-item__saved-carts { border-radius: 10px; }
.empty-cart .cart-empty-box .cart-empty-svg { opacity: .07 !important; height: 70% !important; }
.empty-cart .cart-empty-box span { opacity: .45 !important; font-weight: 600 !important; font-size: 15px !important; }
.cart-item { border-bottom: 1px solid var(--light-grey) !important; }
.cart-total { font-size: 15px; }
.cart-total__label { letter-spacing: .04em; }
.cart-total--total { font-size: 24px !important; font-weight: 800 !important; color: var(--byw-teal) !important; border-top: 1px solid var(--light-grey) !important; }
.cart-total.cart-total--subtotal.cart-total-subtotal { border-bottom: 1px solid var(--light-grey) !important; }

/* Cart action buttons */
.cart-actions { grid-row-gap: 10px !important; grid-column-gap: 10px !important; }
.cart-action {
	min-height: 78px !important;
	border-radius: 14px;
	text-transform: none !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .01em;
	line-height: 1.25;
	filter: none !important;
	transition: background .15s, transform .1s, opacity .15s;
}
.cart-action:hover { filter: brightness(1.08) !important; }
.cart-action:active { transform: scale(.98); }
.cart-action__icon { margin: 16px auto 6px !important; font-size: 18px !important; }
.cart-action.disabled { opacity: .38 !important; filter: grayscale(.3) !important; cursor: not-allowed; }
.cart-action--pay {
	justify-content: center;
	font-size: 26px !important;
	font-weight: 800 !important;
	letter-spacing: .04em !important;
	box-shadow: 0 10px 22px -10px rgba(27, 130, 197, .8);
}
.cart-action--empty-cart { border-radius: 12px; }

/* Shared controls in modals and forms */
.yith-pos button.button, .modal-wrap button.button, .yith-pos .button, .modal-wrap .button { border-radius: 10px !important; }
.modal-wrap .modal { border-radius: 18px !important; overflow: hidden; }
.modal-wrap .modal__title { font-weight: 700 !important; }
.pos-input-field, .pos-select-field__toggle { border-radius: 10px !important; }
#pos-shadow.active { background: rgba(16, 42, 60, .45) !important; backdrop-filter: blur(2px); }
/* Cart action buttons: wrap instead of YITH's fixed grid (the hidden admin-only buttons left gaps) */
.cart-actions { display: flex !important; flex-wrap: wrap; gap: 10px !important; padding-top: 6px; }
.cart-actions > .cart-action {
	flex: 1 1 90px;
	min-width: 0;
	grid-area: auto !important;
	grid-column: auto !important;
	margin: 0 !important;
	display: flex; /* no !important: the admin-only buttons are hidden with display:none!important */
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 8px !important;
}
.cart-actions > .cart-action .cart-action__icon { margin: 0 !important; width: auto !important; }
.cart-actions > .cart-action .cart-action__label { width: auto !important; }
.cart-actions > .cart-action--pay { flex: 1 1 100%; order: 99; min-height: 66px !important; flex-direction: row; }

/* Phones and tablets held upright: YITH rotates the whole page sideways; undo that and size to the real screen */
@media screen and (min-width: 320px) and (max-width: 1200px) and (orientation: portrait) {
	html { transform: none !important; width: auto !important; position: static !important; top: auto !important; left: auto !important; }
	.yith-pos, .yith-pos-logger { height: calc(100vh - var(--top-offset)) !important; height: calc(100dvh - var(--top-offset)) !important; }
	.yith-pos-product-list, .yith-pos-cart, .yith-pos-order-details { height: calc(100dvh - 50px - var(--top-offset)) !important; }
	.yith-pos-product-variation-selector__list { max-height: calc(100dvh - 200px - var(--top-offset)) !important; }
	.yith-pos__order-list { height: calc(100dvh - 170px - var(--top-offset)) !important; }
	.yith-pos { grid-template-columns: 46% 54% !important; }
}
@media screen and (max-width: 1023px) {
	.yith-pos-product-list__logo { display: none; }
	.yith-pos-product-list__search { margin-left: 12px !important; }
	.yith-pos-header .audio-player, .yith-pos-header .full-screen { display: none !important; }
	#user-view { width: auto !important; }
	#user-view .dropdown-toggle span { display: none; }
	#user-view .dropdown-menu { right: 0 !important; }
}

/* Phones: one column, Products / Cart switched by the bottom bar */
.byw-pos-tabbar { display: none; }
@media screen and (max-width: 767px) {
	.yith-pos {
		grid-template-columns: 100% !important;
		grid-template-rows: 50px 1fr !important;
		grid-template-areas: "header" "main" !important;
		font-size: 15px !important;
	}
	.yith-pos-product-list, .yith-pos-cart, .yith-pos-order-details {
		grid-area: main !important;
		width: 100% !important;
		height: calc(100dvh - 50px - 64px - env(safe-area-inset-bottom) - var(--top-offset)) !important;
	}
	body.byw-view-products .yith-pos-cart { display: none !important; }
	body.byw-view-cart .yith-pos-product-list { display: none !important; }

	.yith-pos-header .register-info span + span { display: none; }
	.yith-pos-header .register-info span { margin-right: 8px !important; font-size: 13px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.yith-pos-header i.yith-pos-icon-store { margin: auto 8px auto 12px !important; width: 20px !important; }
	#user-view .dropdown-toggle { margin: 0 10px !important; }

	.yith-pos-product-list__search_section { padding-right: 8px; }
	.yith-pos-product-list__search { margin: 12px 8px 12px 12px !important; }
	.yith-pos-product-list__search_section .search-wrapper { width: 100% !important; }
	.yith-pos-product__actions { padding: 0 12px 12px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.yith-pos-product__actions .nav-item { white-space: nowrap; padding: 8px 14px !important; }
	.yith-pos-product-list__list, .yith-pos-product-category-list__list, .yith-pos-scanner-tab {
		padding: 12px !important;
		grid-gap: 10px !important;
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
	}
	.yith-pos-product-list__list .product-heading { padding: 8px 12px 12px !important; font-size: 13px !important; }

	.yith-pos-cart { padding: 0 12px 12px !important; border-left: 0 !important; }
	.yith-pos-cart__buttons.nav { margin: 0 -12px !important; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.yith-pos-cart__buttons .nav-item { white-space: nowrap; flex: 0 0 auto; }
	.cart-item__name, .cart-saved__name { width: auto !important; min-width: 0 !important; flex: 1; }
	.quantity { transform: none !important; }
	.cart-item__qty { margin: 0 !important; }
	.cart-total--total { padding: 12px 0 !important; font-size: 21px !important; }
	.cart-actions > .cart-action { flex: 1 1 70px; min-height: 62px !important; font-size: 12px !important; }
	.cart-actions > .cart-action--pay { flex: 1 1 100%; min-height: 58px !important; font-size: 22px !important; }


	.modal-wrap .modal { width: auto !important; max-width: calc(100vw - 20px) !important; max-height: calc(100dvh - 20px) !important; overflow: auto !important; }
	.customer-controller { min-width: 0 !important; }

	.byw-pos-tabbar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		height: calc(64px + env(safe-area-inset-bottom));
		padding: 0 8px env(safe-area-inset-bottom);
		gap: 8px;
		background: #fff;
		border-top: 1px solid var(--light-grey);
		box-shadow: 0 -8px 20px -12px rgba(16, 42, 60, .3);
		z-index: 50;
		box-sizing: border-box;
	}
	.byw-pos-tabbar button {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		margin: 8px 0;
		padding: 0 10px;
		background: none;
		border: 0;
		border-radius: 12px;
		color: var(--byw-muted);
		font: 700 14px/1.2 var(--byw-font);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.byw-pos-tabbar button.is-active { background: #E8F3F2; color: var(--byw-teal); }
	.byw-pos-tabbar svg { width: 22px; height: 22px; flex: 0 0 auto; }
	.byw-pos-tabbar .byw-tab-ico { position: relative; display: inline-flex; }
	.byw-pos-tabbar .byw-tab-badge {
		position: absolute;
		top: -7px;
		right: -9px;
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		box-sizing: border-box;
		border-radius: 999px;
		background: var(--byw-blue);
		color: #fff;
		font: 700 11px/18px var(--byw-font);
		text-align: center;
	}
	.byw-pos-tabbar .byw-tab-badge.bump { animation: byw-bump .35s ease; }
	.byw-pos-tabbar .byw-tab-total { font-weight: 800; color: var(--byw-ink); }
	body:has(#pos-shadow.active) .byw-pos-tabbar, body:has(.modal-wrap) .byw-pos-tabbar { display: none; }
}
@keyframes byw-bump { 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .byw-pos-tabbar .byw-tab-badge.bump { animation: none; } }
/* Narrow cart column (tablets and phones): name on top, quantity and line total underneath */
@media screen and (max-width: 1200px) {
	.cart-item { padding: 10px 0 !important; }
	.cart-item__row {
		display: grid !important;
		grid-template-columns: 26px 52px minmax(0, 1fr) auto;
		grid-template-areas: "rm img name name" "rm img qty total";
		align-items: center;
		column-gap: 10px;
		row-gap: 6px;
	}
	.cart-item__remove { grid-area: rm; padding: 8px !important; }
	.cart-item__image { grid-area: img; width: 52px !important; height: 52px !important; object-fit: contain; border-radius: 10px; background: var(--byw-field); }
	.cart-item__row > .yith-pos-icon-item-note { grid-area: rm; align-self: end; }
	.cart-item__name { grid-area: name; width: auto !important; min-width: 0 !important; padding-right: 0 !important; }
	.cart-item__name__title { white-space: normal !important; font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.cart-item__qty { grid-area: qty; justify-self: start; }
	.cart-item__price { display: none !important; }
	.cart-item__total { grid-area: total; min-width: 0 !important; width: auto !important; text-align: right; font-weight: 700; font-size: 15px; }
	.quantity { width: auto !important; }
	.quantity__minus, .quantity__plus { width: 36px !important; height: 36px !important; line-height: 36px !important; border-radius: 10px; }
	.quantity__qty { width: 44px !important; height: 36px !important; text-align: center; font-size: 16px !important; }
}

/* Product cards size to their content (YITH fixes the row height) */
.yith-pos-product-list__list, .yith-pos-product-category-list__list { grid-auto-rows: auto !important; align-items: stretch !important; padding-bottom: 24px !important; }
.yith-pos-product-list__list .product, .yith-pos-product-list__list .product:last-child, .yith-pos-product-category-list__list .product-cat:last-child { margin-bottom: 0 !important; } /* YITH adds 20px to the last card only */
.yith-pos-product-list__list .product-image, .yith-pos-product-category-list__list .product-cat-image { aspect-ratio: auto !important; height: 150px !important; flex: 0 0 auto; }
@media screen and (max-width: 1200px) {
	.yith-pos-product-list__list, .yith-pos-product-category-list__list { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important; }
	.yith-pos-product-list__list .product-image, .yith-pos-product-category-list__list .product-cat-image { height: 120px !important; }
	.yith-pos-product-list__list .product-heading { display: flex !important; }
}

/* ==========================================================================
   Polish pass (Impeccable): menus, header, empty cart, dialogs, browser surfaces
   ========================================================================== */
.yith-pos ::selection, .modal-wrap ::selection { background: rgba(27, 130, 197, .2); color: inherit; }
.yith-pos *, .modal-wrap * { scrollbar-width: thin; scrollbar-color: #C9D9E4 transparent; }
.yith-pos ::-webkit-scrollbar, .modal-wrap ::-webkit-scrollbar { width: 8px; height: 8px; }
.yith-pos ::-webkit-scrollbar-thumb, .modal-wrap ::-webkit-scrollbar-thumb { background: #C9D9E4; border-radius: 8px; }
.yith-pos :focus-visible, .modal-wrap :focus-visible { outline: 2px solid var(--byw-blue); outline-offset: 2px; }
.yith-pos input { caret-color: var(--byw-blue); }

/* Header: quiet controls on the dark bar */
#dropdown-main-view { background: transparent !important; margin-right: 6px !important; border-radius: 0; }
#main-view:hover, #main-view.enabled { filter: none !important; }
#main-view:hover #dropdown-main-view, .dropdown.enabled #dropdown-main-view { background: rgba(255, 255, 255, .08) !important; }
.yith-pos-animated-hamburger-menu span { width: 22px !important; margin-bottom: 5px !important; border-radius: 2px; }
.dropdown.enabled #dropdown-main-view .yith-pos-animated-hamburger-menu span { transform: translateX(4px) rotate(45deg) !important; }
.dropdown.enabled #dropdown-main-view .yith-pos-animated-hamburger-menu span:nth-child(3) { transform: translateX(4px) rotate(-45deg) !important; }
.yith-pos-header .register-info span { color: #fff; font-weight: 500; }
.yith-pos-header .register-info strong { font-weight: 600 !important; color: rgba(255, 255, 255, .62) !important; margin-right: 2px; }
.yith-pos-header i.yith-pos-icon-store { color: rgba(255, 255, 255, .7); }
#dropdown-user-view img { width: 30px !important; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
#dropdown-user-view span { font-size: 14px; font-weight: 600; }
#user-view.enabled { background: rgba(255, 255, 255, .08) !important; filter: none !important; }
.yith-pos-header .logout { background: transparent !important; padding: 0 6px 0 2px !important; }
.yith-pos-header .logout a {
	flex-direction: row !important;
	gap: 8px !important;
	height: 36px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	color: rgba(255, 255, 255, .85) !important;
	border: 1px solid rgba(255, 255, 255, .16);
	transition: background .15s, border-color .15s;
}
.yith-pos-header .logout a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff !important; }
.yith-pos-header .logout i { font-size: 15px !important; }

/* Dropdown menus: white popover instead of solid teal blocks */
.yith-pos-header .dropdown .dropdown-menu {
	top: 54px !important;
	background: #fff !important;
	border-radius: 14px;
	min-width: 240px !important;
	box-shadow: 0 2px 6px rgba(16, 42, 60, .08), 0 20px 44px -12px rgba(16, 42, 60, .35);
	transition: max-height .28s cubic-bezier(.16, 1, .3, 1), opacity .2s !important;
	opacity: 0;
}
.yith-pos-header .dropdown.enabled .dropdown-menu { opacity: 1; padding: 6px; border: 1px solid #E4EDF3; }
#main-view .dropdown-menu { left: 8px !important; }
#user-view .dropdown-menu { right: 6px !important; left: auto !important; }
.yith-pos-header .dropdown .dropdown-menu > div,
.yith-pos-header .dropdown .dropdown-menu a {
	min-height: 44px;
	padding: 10px 12px !important;
	border-radius: 10px;
	color: var(--byw-ink) !important;
	text-transform: none !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	gap: 12px !important;
	background: transparent !important;
	filter: none !important;
	margin: 0 !important;
}
.yith-pos-header .dropdown .dropdown-menu i { font-size: 17px !important; color: var(--byw-muted); width: 20px; text-align: center; }
.yith-pos-header .dropdown.enabled .dropdown-item:hover,
.yith-pos-header .dropdown.enabled .dropdown-menu a:hover { background: #F1F6F9 !important; filter: none !important; }
.yith-pos-header .dropdown.enabled .dropdown-item:hover i { color: var(--byw-teal); }
#main-view .dropdown-item.register-close {
	background: transparent !important;
	color: #B42318 !important;
	margin-top: 6px !important;
	position: relative;
}
#main-view .dropdown-item.register-close::before {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	top: -4px;
	border-top: 1px solid #EDF2F6;
}
#main-view .dropdown-item.register-close i { color: #B42318 !important; }
.yith-pos-header .dropdown.enabled .dropdown-item.register-close:hover { background: #FEF3F2 !important; }
#user-view .dropdown-menu .dropdown-item { cursor: default; }
#user-view .dropdown-menu .dropdown-item__title { color: var(--byw-muted); font-size: 13px !important; }
#user-view .dropdown-menu .dropdown-item__content { color: var(--byw-ink); font-weight: 600; font-size: 13px !important; text-transform: none; }
#user-view.dropdown .dropdown-menu div:first-child { margin-top: 0 !important; }
#user-view.dropdown .dropdown-menu div.download-csv {
	background: transparent !important;
	text-transform: none !important;
	color: var(--byw-blue) !important;
	margin-top: 6px !important;
	cursor: pointer;
	position: relative;
}
#user-view.dropdown .dropdown-menu div.download-csv::before { content: ""; position: absolute; left: 8px; right: 8px; top: -4px; border-top: 1px solid #EDF2F6; }
#user-view.dropdown .dropdown-menu div.download-csv i, #user-view.dropdown .dropdown-menu div.download-csv .dropdown-item__title { color: var(--byw-blue) !important; font-weight: 600; }
.yith-pos-header .skeleton { background: #E6EEF3 !important; }

/* Search row: calculator as a soft icon button */
a.yith-pos-calculator-button {
	width: 46px !important;
	height: 46px !important;
	padding: 0 !important;
	justify-content: center;
	border-radius: 12px;
	background: #EEF4F8 !important;
	color: var(--byw-ink) !important;
	font-size: 24px !important;
	border: 1.5px solid var(--byw-line);
}
a.yith-pos-calculator-button:hover, .yith-pos-calculator-wrapper.active a.yith-pos-calculator-button { background: #E3EEF5 !important; border-color: #B9D3E4; color: var(--byw-teal) !important; }

/* Empty cart: calm, compact state instead of the giant sad cart */
.empty-cart .cart-empty-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 24px !important;
	box-sizing: border-box;
}
.empty-cart .cart-empty-box .cart-empty-svg {
	width: 64px !important;
	height: 64px !important;
	flex: 0 0 auto;
	margin-bottom: 10px;
	border-radius: 20px;
	opacity: 1 !important;
	background: #EEF5F9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D7A77' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3.5h2.6l2.5 11a2 2 0 0 0 2 1.5h7.6a2 2 0 0 0 1.9-1.4L21 8H6.2'/%3E%3C/svg%3E") no-repeat center / 30px 30px !important;
}
.empty-cart .cart-empty-box span {
	opacity: 1 !important;
	color: var(--byw-ink) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	margin: 0 !important;
}
.empty-cart .cart-empty-box::after {
	content: "Tap a product, or scan its barcode.";
	color: var(--byw-muted);
	font-size: 13px;
}

/* Cart tabs: saved carts as a quiet chip */
.yith-pos-cart__buttons .nav-item__saved-carts { background: #FFF5E6 !important; color: #B26B00 !important; padding: 8px 14px !important; }
.yith-pos-cart__buttons .nav-item__saved-carts.disabled { background: #F4F6F8 !important; color: #A6B1B9 !important; }
.yith-pos-cart__buttons .nav-item__description { color: var(--byw-muted); font-weight: 500; }

/* Buttons and dialogs: sentence case, clear primary vs secondary */
.button, button.button { text-transform: none !important; font-weight: 700 !important; border-radius: 10px !important; letter-spacing: 0; }
.button.button--outlined, button.button.button--outlined { border: 1.5px solid var(--byw-line) !important; color: var(--byw-ink) !important; }
.modal-wrap .modal { box-shadow: 0 24px 60px -16px rgba(16, 42, 60, .45) !important; }
.modal__title { padding-bottom: 12px !important; margin-bottom: 18px !important; border-bottom: 1px solid #EDF2F6 !important; font-size: 17px; font-weight: 700 !important; color: var(--byw-ink); }
.modal__title .modal__close {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0 !important;
	border-radius: 10px;
	font-size: 11px !important;
	color: var(--byw-muted);
	box-sizing: border-box !important;
}
.modal__title .modal__close:hover { background: #F1F6F9; color: var(--byw-ink); }
.confirm { width: 340px !important; max-width: 100%; padding: 8px 8px 4px !important; }
.confirm__message { margin-bottom: 20px !important; font-size: 15px; line-height: 1.5; color: var(--byw-ink); }
.confirm__confirm, .confirm__cancel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 10px !important;
	border-radius: 12px;
	text-transform: none !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	filter: none !important;
	transition: background .15s, border-color .15s;
}
.confirm__confirm { background: var(--byw-teal) !important; color: #fff !important; }
.confirm__confirm:hover { background: var(--byw-teal-dark) !important; }
.confirm__cancel { background: #fff !important; color: var(--byw-ink) !important; border: 1.5px solid var(--byw-line); }
.confirm__cancel:hover { background: #F4F8FB !important; border-color: #B9D3E4; }
.list-selector .list-selector__item { border-radius: 12px; border: 1.5px solid var(--byw-line) !important; min-height: 52px; color: var(--byw-ink) !important; }
.list-selector .list-selector__item:hover, .list-selector .list-selector__item.selected { border-color: var(--byw-teal) !important; color: var(--byw-teal) !important; background: #F3F9F8 !important; }

/* Pay dialog */
.payment-modal .payment-totals { border-radius: 14px 0 0 14px; }
.payment-modal .payment-totals .label { color: var(--byw-muted); font-weight: 600; }
.payment-modal .payment-totals .amount { font-weight: 800; font-variant-numeric: tabular-nums; }
.payment-modal .calculator-buttons button, .payment-modal .presets-buttons button { font-family: var(--byw-font) !important; font-variant-numeric: tabular-nums; }
.payment-modal .presets-buttons button { border-radius: 10px; }
.payment-modal .calculator-buttons button.submit-button { font-weight: 800; }
.cart-total__price, .cart-item__total, .product-price { font-variant-numeric: tabular-nums; }
/* Search field: icon and hint (placeholder set in pos.php footer script) */
.yith-pos-product-list__search input.product-search {
	padding-left: 42px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366717A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: 14px center !important;
	background-size: 18px 18px !important;
}
.yith-pos-product-list__search input.product-search::placeholder { color: #8A949B; font-weight: 500; }

/* Phone header: icon-only log out */
@media screen and (max-width: 767px) {
	.yith-pos-header .logout a { font-size: 0 !important; gap: 0 !important; width: 40px; padding: 0 !important; justify-content: center; }
	.yith-pos-header .logout i { font-size: 17px !important; }
}

/* Equal cards: every product card the same height, prices on one line */
.yith-pos-product-list__list .product, .yith-pos-product-category-list__list .product-cat { height: 100% !important; }
.yith-pos-product-list__list .product-heading { flex: 1 1 auto; }
.yith-pos-product-list__list .product-heading .product-title { height: 2.7em; min-height: 0; overflow: hidden; }
.yith-pos-product-list__list .product-heading .product-price { margin-top: auto; }

/* Choose variation: clean rows with a small stock chip */
.yith-pos-product-variation-selector__list { display: flex; flex-direction: column; gap: 8px; }
.yith-pos-product-variation-selector__list .product {
	display: flex !important;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 10px 14px !important;
	border: 1.5px solid var(--byw-line) !important;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.yith-pos-product-variation-selector__list .product:hover { border-color: var(--byw-teal) !important; background: #F3F9F8; }
.yith-pos-product-variation-selector__list .product-image { width: 40px !important; height: 40px !important; max-width: 40px !important; border-radius: 8px; background-size: contain !important; background-repeat: no-repeat; background-color: var(--byw-field) !important; margin: 0 !important; flex: 0 0 auto; }
.yith-pos-product-variation-selector__list .product-title { flex: 1 1 auto !important; width: auto !important; font-weight: 600; color: var(--byw-ink); margin: 0 !important; }
.yith-pos-product-variation-selector__list .product-price { order: 2; flex: 0 0 auto !important; width: auto !important; font-weight: 700; color: var(--byw-teal); font-variant-numeric: tabular-nums; }
.yith-pos-product-variation-selector__list .product .stock-badge {
	position: static !important;
	order: 3;
	flex: 0 0 auto !important;
	width: auto !important;
	height: 22px !important;
	line-height: 22px !important;
	padding: 0 8px !important;
	border-radius: 999px;
	font-size: 11px !important;
	font-weight: 600 !important;
	background: #E8F3F2 !important;
	color: var(--byw-teal) !important;
	box-shadow: none !important;
	white-space: nowrap;
}
.yith-pos-product-variation-selector__list .product .stock-badge.out-of-stock { background: #FEF3F2 !important; color: #B42318 !important; }
.yith-pos-product-variation-selector__list .product .stock-badge.on-backorder { background: #FFF5E6 !important; color: #B26B00 !important; }

/* Customer search results: name and email, then phone and member since */
.customer-selector__search input, .customer-search input { font-size: 16px !important; }
.customer-selector__results { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.customer-selector__result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1.5px solid var(--byw-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.customer-selector__result:hover { border-color: var(--byw-teal); background: #F3F9F8; }
.customer-selector__result__image { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; }
.customer-selector__result__name { font-size: 14px; line-height: 1.35; color: var(--byw-ink); }
.customer-selector__result__name strong { color: var(--byw-teal); }
.customer-selector__result .byw-cust-line { display: block; margin-top: 2px; font-size: 12.5px; color: var(--byw-muted); font-weight: 500; }
.customer-selector__message { margin-top: 10px; font-size: 13px; color: var(--byw-muted); }
/* Member gate: nothing can be sold until a member is loaded */
.byw-member-gate { display: none; }
body.byw-no-member .byw-member-gate {
	display: flex;
	position: fixed;
	z-index: 40;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	background: rgba(241, 246, 249, .72);
	backdrop-filter: blur(3px);
}
body.byw-no-member:has(#pos-shadow.active) .byw-member-gate, body.byw-no-member:has(.modal-wrap) .byw-member-gate { display: none; }
.byw-member-gate__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 340px;
	padding: 28px 24px 24px;
	text-align: center;
	background: #fff;
	border: 1px solid #E1EDF5;
	border-radius: 18px;
	box-shadow: 0 20px 48px -16px rgba(16, 42, 60, .35);
	font-family: var(--byw-font);
}
.byw-member-gate__ico { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 16px; background: #E8F3F2; color: var(--byw-teal); margin-bottom: 6px; }
.byw-member-gate__ico svg { width: 26px; height: 26px; }
.byw-member-gate__card strong { font-size: 18px; color: var(--byw-ink); }
.byw-member-gate__card span:not(.byw-member-gate__ico) { font-size: 14px; line-height: 1.5; color: var(--byw-muted); }
.byw-member-gate__card button {
	margin-top: 10px;
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 12px;
	background: var(--byw-teal);
	color: #fff;
	font: 700 15px/1 var(--byw-font);
	cursor: pointer;
	box-shadow: 0 8px 18px -8px rgba(29, 122, 119, .7);
}
.byw-member-gate__card button:hover { background: var(--byw-teal-dark); }
body.byw-no-member .cart-actions > .cart-action:not(.cart-action--empty-cart) { opacity: .35 !important; pointer-events: none !important; filter: grayscale(.4) !important; }
body.byw-no-member .yith-pos-cart__buttons .nav-item__customer {
	background: var(--byw-teal) !important;
	color: #fff !important;
	box-shadow: 0 0 0 4px rgba(29, 122, 119, .18);
}
body.byw-no-member .yith-pos-cart__buttons .nav-item__customer .nav-item__description { color: rgba(255, 255, 255, .8) !important; }
/* Payment proofs link in the main menu */
#main-view .dropdown-menu .byw-proofs-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #FFF5E6; color: #B26B00; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; box-sizing: border-box; }

/* Variation list fits the screen (YITH fixes it at 420px / 400px wide) */
.yith-pos-product-variation-selector__list { width: min(440px, 100%) !important; max-width: 100%; justify-content: stretch !important; box-sizing: border-box; }
.yith-pos-product-variation-selector__list .product { width: 100% !important; margin-bottom: 0 !important; box-sizing: border-box; }
.yith-pos-product-variation-selector__list .product-heading { display: flex; align-items: center; gap: 10px; flex: 1 1 auto !important; min-width: 0; }
@media screen and (max-width: 767px) {
	.modal-wrap .modal:has(.yith-pos-product-variation-selector__list) { width: calc(100vw - 20px) !important; padding: 18px 14px !important; box-sizing: border-box; }
	.yith-pos-product-variation-selector__list .product { gap: 10px; padding: 10px 12px !important; flex-wrap: wrap; }
	.yith-pos-product-variation-selector__list .product-heading { flex-wrap: wrap; row-gap: 2px; }
	.yith-pos-product-variation-selector__list .product-title { flex: 1 1 100% !important; }
	.yith-pos-product-variation-selector__list .product .stock-badge { order: 4; }
}
/* ==========================================================================
   Pay screen rebuild (YITH uses fixed 220px / 215px desktop widths)
   ========================================================================== */
.payment-modal .modal { padding: 22px 24px !important; }
.payment-modal .modal__title { font-size: 18px; }
.payment-modal .modal__title .modal__title-price { font-size: 22px !important; font-weight: 800; color: var(--byw-teal) !important; font-variant-numeric: tabular-nums; }
.payment-modal .payment-totals { background: #F1F6F9 !important; }
.payment-modal .total.total-payable { visibility: hidden; } /* sits behind the title row; the amount due is already in the title */
.payment-modal .total { border-bottom: 1px solid #fff !important; }
.payment-modal .total span.amount { font-size: 22px !important; color: var(--byw-ink); }
.payment-modal .total.balance .amount { color: #B42318 !important; }
.payment-method-label { padding-left: 0 !important; }
.payment-method-label span { color: var(--byw-muted); font-size: 12px !important; text-transform: uppercase; letter-spacing: .05em; }
.payment-method { padding: 6px 0 !important; border-radius: 12px; gap: 10px !important; }
.payment-method:hover, .payment-method.current { background: transparent !important; }
.payment-method .pos-input-field, .payment-method .pos-select-field__toggle { min-height: 48px; border: 1.5px solid var(--byw-line) !important; border-radius: 12px !important; background: #fff; }
.payment-method.current .pos-input-field { border-color: var(--byw-blue) !important; box-shadow: 0 0 0 4px rgba(27, 130, 197, .12); }
.payment-method input { font-size: 18px !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; border: 0 !important; }
.payment-method__remove.first { width: 0 !important; }
.add-payment-method { margin: 12px 0 16px !important; min-height: 46px; background: #fff !important; color: var(--byw-teal) !important; border: 1.5px dashed #9CC7C4 !important; }
.add-payment-method:hover { background: #F3F9F8 !important; filter: none !important; }
.numeric-register-controller .labelPresets { padding: 0 0 8px !important; color: var(--byw-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.presets-buttons { gap: 8px; margin-bottom: 12px !important; flex-wrap: wrap; }
.presets-buttons button {
	flex: 1 1 0 !important;
	min-width: 0;
	height: 46px !important;
	max-height: none !important;
	margin: 0 !important;
	border: 1.5px solid var(--byw-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: var(--byw-ink) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
}
.presets-buttons button:hover { border-color: var(--byw-teal) !important; color: var(--byw-teal) !important; }
.numeric-register-controller .calculator-buttons {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 8px;
	width: 100%;
	max-width: none !important;
	border: 0 !important;
	background: none !important;
}
.numeric-register-controller .calculator-buttons button,
.numeric-register-controller .calculator-buttons button.large {
	width: auto !important;
	height: 58px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: #F2F6F9 !important;
	color: var(--byw-ink) !important;
	font-size: 22px !important;
	font-weight: 600 !important;
	transition: background .12s, transform .08s !important;
}
.numeric-register-controller .calculator-buttons button:hover { background: #E6EEF3 !important; color: var(--byw-ink) !important; }
.numeric-register-controller .calculator-buttons button:active { transform: scale(.97); }
.numeric-register-controller .calculator-buttons button small { font-size: 15px !important; color: var(--byw-muted) !important; font-weight: 600; }
.numeric-register-controller .calculator-buttons button i { color: var(--byw-muted) !important; font-size: 18px; }
.numeric-register-controller .calculator-buttons button.undo.large { background: #fff !important; border: 1.5px solid var(--byw-line) !important; color: var(--byw-muted) !important; font-size: 15px !important; letter-spacing: 0 !important; text-transform: none !important; }
.payment-modal .numeric-register-controller button.submit-button.large {
	background: var(--byw-blue) !important;
	color: #fff !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	text-transform: none !important;
	box-shadow: 0 8px 18px -8px rgba(27, 130, 197, .8);
}
.payment-modal .disableSubmit .numeric-register-controller button.submit-button.large { opacity: .4 !important; box-shadow: none; }

@media screen and (max-width: 767px) {
	.modal-wrap.payment-modal { align-items: stretch !important; }
	.payment-modal .modal {
		width: 100vw !important;
		max-width: 100vw !important;
		height: 100dvh !important;
		max-height: 100dvh !important;
		border-radius: 0 !important;
		padding: 14px 16px calc(16px + env(safe-area-inset-bottom)) !important;
		overflow-y: auto !important;
		box-sizing: border-box;
	}
	.payment-modal .modal__title { margin: 0 0 12px !important; padding: 4px 40px 12px 0 !important; flex-wrap: wrap; }
	.payment-modal .modal__title > span { flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
	.payment-modal .modal__title .modal__close { top: 4px !important; margin: 0 !important; transform: none !important; }
	.payment-modal .modal__content { flex-direction: column !important; }
	.payment-modal .payment-totals {
		width: auto !important;
		margin: 0 0 14px !important;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		border-radius: 14px !important;
		overflow: hidden;
	}
	.payment-modal .total.total-payable { display: none !important; }
	.payment-modal .total { padding: 10px 12px !important; text-align: left !important; border-bottom: 0 !important; border-right: 1px solid #fff; }
	.payment-modal .total:last-child { border-right: 0; }
	.payment-modal .total span, .payment-modal .total span.amount { padding: 0 !important; }
	.payment-modal .total span.label { font-size: 11px !important; text-transform: uppercase; letter-spacing: .05em; }
	.payment-modal .total span.amount { font-size: 16px !important; margin-top: 2px; white-space: nowrap; }
	.payment-methods { width: 100%; }
	.payment-method .pos-field-root { min-width: 0; }
	.numeric-register-controller .calculator-buttons button,
	.numeric-register-controller .calculator-buttons button.large { height: 64px !important; }
}
/* Coupon box: the member's vouchers as tappable cards */
.byw-coupons { margin: 12px 0 4px; }
.byw-coupons__label { margin-bottom: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--byw-muted); }
.byw-coupons__list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.byw-coupons__empty { font-size: 14px; color: var(--byw-muted); }
.byw-coupon {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "name code" "detail code";
	align-items: center;
	column-gap: 12px;
	padding: 10px 14px;
	text-align: left;
	background: #fff;
	border: 1.5px dashed #9CC7C4;
	border-radius: 12px;
	cursor: pointer;
	font-family: var(--byw-font);
	transition: background .15s, border-color .15s;
}
.byw-coupon:hover { background: #F3F9F8; }
.byw-coupon.is-picked { border-style: solid; border-color: var(--byw-teal); background: #E8F3F2; }
.byw-coupon strong { grid-area: name; font-size: 14px; color: var(--byw-ink); }
.byw-coupon span { grid-area: detail; font-size: 12.5px; color: var(--byw-muted); }
.byw-coupon code { grid-area: code; padding: 4px 8px; border-radius: 8px; background: #F1F6F9; color: var(--byw-teal); font: 700 12px/1.2 var(--byw-font); letter-spacing: .04em; }
/* After a DuitNow / bank transfer sale: payment proof reminder */
.byw-proof-toast {
	position: fixed;
	z-index: 10000;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	width: min(520px, calc(100vw - 24px));
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #F3D58B;
	border-radius: 16px;
	box-shadow: 0 20px 44px -14px rgba(16, 42, 60, .4);
	font-family: var(--byw-font);
}
.byw-proof-toast strong { display: block; font-size: 15px; color: var(--byw-ink); }
.byw-proof-toast span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--byw-muted); }
.byw-proof-toast__actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.byw-proof-toast__actions a { padding: 10px 14px; border-radius: 10px; background: var(--byw-teal); color: #fff !important; font-weight: 700; font-size: 14px; text-align: center; text-decoration: none; white-space: nowrap; }
.byw-proof-toast__actions button { padding: 6px; border: 0; background: none; color: var(--byw-muted); font: 600 13px var(--byw-font); cursor: pointer; }
@media screen and (max-width: 767px) { .byw-proof-toast { flex-direction: column; align-items: stretch; bottom: calc(76px + env(safe-area-inset-bottom)); } .byw-proof-toast__actions { flex-direction: row; } .byw-proof-toast__actions a { flex: 1; } }
/* Receipts box (Pay screen and Sales & orders) */
.byw-receipts { margin: 14px; padding: 12px; background: #fff; border: 1px solid #E1EDF5; border-radius: 14px; text-align: left; font-family: var(--byw-font); }
.yith-pos-order-details__actions { flex-wrap: wrap; }
.yith-pos-order-details__actions .byw-receipts { flex: 1 1 100%; order: -1; margin: 0 0 16px; }
.byw-receipts.is-needed { background: #FFF8E6; border-color: #F3D58B; }
.byw-receipts__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.byw-receipts__head strong { font-size: 14px; color: var(--byw-ink); }
.byw-receipts__add { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; background: var(--byw-teal); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.byw-receipts__add:hover { background: var(--byw-teal-dark); }
.byw-receipts__hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--byw-muted); }
.byw-receipts.is-needed .byw-receipts__hint { color: #6B4E00; }
.byw-receipts__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.byw-receipts__list:empty { display: none; }
.byw-rcpt { position: relative; }
.byw-rcpt__thumb { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 10px; border: 1px solid #DCE7EE; background: #F1F6F9 center / cover no-repeat; color: var(--byw-teal); font-size: 12px; font-weight: 800; text-decoration: none; }
.byw-rcpt__x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--byw-ink); color: #fff; font-size: 14px; line-height: 22px; cursor: pointer; padding: 0; }
/* Sales & orders: on-hold orders stand out */
.yith-pos__order-list-item .order-status.on-hold { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #FFF5E6; color: #B26B00 !important; font-weight: 700; }
.yith-pos__order-list-item:has(.order-status.on-hold) { background: #FFFCF5; }
@media screen and (max-width: 767px) { .payment-modal .payment-totals .byw-receipts { grid-column: 1 / -1; margin: 0; border-radius: 0; border: 0; border-top: 1px solid #fff; background: #F7FAFC; } }
.payment-modal .payment-totals .byw-receipts__head { flex-wrap: wrap; }
.payment-modal .payment-totals .byw-receipts__add { flex: 1 1 100%; justify-content: center; }
@media screen and (max-width: 767px) { .payment-modal .payment-totals .byw-receipts__add { flex: 0 0 auto; } }

/* Header: who is signed in */
#dropdown-user-view span.byw-whoami { display: flex; flex-direction: column; line-height: 1.2; }
#dropdown-user-view span.byw-whoami b { font-size: 14px; font-weight: 600; color: #fff; }
#dropdown-user-view span.byw-whoami small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .7); }
#dropdown-user-view span.byw-whoami.is-email-only small { font-size: 13.5px; font-weight: 600; color: #fff; }

/* ==========================================================================
   My sales dashboard (menu → My sales)
   ========================================================================== */
.byw-dash { display: none; position: fixed; z-index: 995; top: 50px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: #F4F7F9; font-family: var(--byw-font); color: #17212B; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
.byw-dash.is-open { display: block; }
.byw-dash svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.byw-dash__inner { max-width: 1160px; margin: 0 auto; padding: 28px 28px 48px; box-sizing: border-box; transition: opacity .15s; }
.byw-dash__inner.is-loading { opacity: .5; pointer-events: none; }
.byw-dash__msg { padding: 56px 0; text-align: center; color: #5F6B76; font-size: 15px; }
.byw-dash__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.byw-dash__title h2 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.byw-dash__title p { margin: 6px 0 0; font-size: 14px; color: #5F6B76; }
.byw-dash__close { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border: 1px solid #D5DEE5; border-radius: 10px; background: #fff; color: #17212B; font: 600 14px var(--byw-font); cursor: pointer; }
.byw-dash__close svg { width: 18px; height: 18px; }
.byw-dash__close:hover { background: #F7FAFC; }
.byw-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.byw-seg { display: inline-flex; padding: 3px; gap: 2px; background: #E8EEF2; border-radius: 10px; }
.byw-seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: #46525D; font: 500 14px var(--byw-font); cursor: pointer; }
.byw-seg button:hover { color: #17212B; }
.byw-seg button.is-active { background: #fff; color: #17212B; font-weight: 600; box-shadow: 0 1px 2px rgba(16, 32, 48, .12); }
.byw-dates { display: inline-flex; align-items: center; gap: 6px; padding: 3px 3px 3px 10px; background: #fff; border: 1px solid #D5DEE5; border-radius: 10px; }
.byw-dates.is-active { border-color: var(--byw-teal); box-shadow: 0 0 0 3px rgba(29, 122, 119, .12); }
.byw-dates label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #5F6B76; }
.byw-dates input { height: 32px; padding: 0 6px; border: 0; background: none; font: 500 14px var(--byw-font); color: #17212B; }
.byw-dates input:focus { outline: 2px solid var(--byw-blue); outline-offset: 0; border-radius: 6px; }
.byw-dates__apply { min-height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: #17212B; color: #fff; font: 600 13px var(--byw-font); cursor: pointer; }
.byw-dates__apply:hover { background: #2B3742; }
.byw-alert { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; background: #FFF7E6; border: 1px solid #F2D59A; border-radius: 12px; }
.byw-alert > svg { width: 20px; height: 20px; color: #A15C00; flex: 0 0 auto; }
.byw-alert div { flex: 1; min-width: 0; }
.byw-alert strong { display: block; font-size: 14px; font-weight: 600; }
.byw-alert span { display: block; margin-top: 2px; font-size: 13px; color: #7A5200; }
.byw-alert a { flex: 0 0 auto; padding: 8px 12px; border-radius: 8px; background: #17212B; color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.byw-alert.is-info { background: #EEF6FB; border-color: #CFE2EF; }
.byw-alert.is-info > svg { color: var(--byw-blue); }
.byw-alert.is-info span { color: #46525D; }
.byw-summary { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; background: #fff; border: 1px solid #E1E8EE; border-radius: 14px; margin-bottom: 16px; }
.byw-metric { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; min-width: 0; }
.byw-metric + .byw-metric { border-left: 1px solid #EDF1F4; }
.byw-metric__label { font-size: 13px; font-weight: 500; color: #5F6B76; }
.byw-metric__value { font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.byw-metric.is-lead .byw-metric__value { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.byw-delta { font-size: 13px; font-weight: 600; color: #5F6B76; }
.byw-delta em { font-style: normal; font-weight: 400; color: #5F6B76; }
.byw-delta.is-up { color: #12805C; }
.byw-delta.is-down { color: #B42318; }
.byw-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-bottom: 16px; }
.byw-row--even { grid-template-columns: 1fr 1fr; }
.byw-panel { background: #fff; border: 1px solid #E1E8EE; border-radius: 14px; padding: 18px 20px; min-width: 0; }
.byw-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.byw-panel__head h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.byw-panel__head span, .byw-panel__head a { font-size: 13px; color: #5F6B76; text-decoration: none; }
.byw-panel__head a:hover { color: var(--byw-blue); }
.byw-chartwrap { position: relative; }
.byw-chart { display: block; width: 100%; height: auto; overflow: visible; }
.byw-chart .byw-grid { stroke: #EDF1F4; stroke-width: 1; }
.byw-chart .byw-ax { stroke: #C9D3DB; stroke-width: 1; }
.byw-chart .byw-tick { fill: #7A8691; stroke: none; font: 500 11px var(--byw-font); }
.byw-chart .byw-peak { fill: #17212B; stroke: none; font: 600 11px var(--byw-font); }
.byw-chart .byw-col { fill: #8FC3C0; stroke: none; transition: fill .12s; }
.byw-chart .byw-col.is-last { fill: var(--byw-teal); }
.byw-chart .byw-hit { fill: transparent; stroke: none; cursor: pointer; }
.byw-chart .byw-hit:hover { fill: rgba(29, 122, 119, .06); }
.byw-tip { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; background: #17212B; color: #fff; border-radius: 8px; font-size: 12px; pointer-events: none; box-shadow: 0 8px 20px -8px rgba(16, 32, 48, .5); white-space: nowrap; }
.byw-tip[hidden] { display: none; }
.byw-tip b { font-weight: 500; color: rgba(255, 255, 255, .7); }
.byw-tip span { font-size: 15px; font-weight: 700; }
.byw-tip small { color: rgba(255, 255, 255, .7); }
.byw-stack { display: flex; gap: 2px; height: 12px; margin: 4px 0 16px; border-radius: 6px; overflow: hidden; }
.byw-stack span { min-width: 3px; }
.byw-legend { list-style: none; margin: 0; padding: 0; }
.byw-legend li { display: grid; grid-template-columns: 10px 1fr auto 44px; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; border-top: 1px solid #F0F3F6; }
.byw-legend li:first-child { border-top: 0; }
.byw-legend i { width: 10px; height: 10px; border-radius: 3px; }
.byw-legend b { font-weight: 600; }
.byw-legend em { font-style: normal; text-align: right; color: #5F6B76; font-size: 13px; }
.byw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.byw-table th { padding: 0 0 8px; text-align: left; font-size: 12px; font-weight: 500; color: #7A8691; border-bottom: 1px solid #EDF1F4; }
.byw-table td { padding: 10px 0; border-bottom: 1px solid #F0F3F6; vertical-align: top; }
.byw-table tr:last-child td { border-bottom: 0; }
.byw-table td + td, .byw-table th + th { padding-left: 12px; }
.byw-table .num { text-align: right; white-space: nowrap; }
.byw-table td.num:last-child { font-weight: 600; }
.byw-table small { display: block; margin-top: 2px; font-size: 12px; color: #7A8691; }
.byw-chip { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: #E7F4F1; color: #0E6B52; vertical-align: 1px; }
.byw-chip--on-hold { background: #FFF1D6; color: #8A5300; }
.byw-chip--processing { background: #E6F1FA; color: #145F92; }
.byw-none { margin: 0; padding: 14px 0; font-size: 14px; color: #7A8691; }
@media screen and (max-width: 1023px) {
	.byw-summary { grid-template-columns: repeat(3, 1fr); }
	.byw-metric.is-lead { grid-column: 1 / -1; border-bottom: 1px solid #EDF1F4; }
	.byw-metric.is-lead + .byw-metric { border-left: 0; }
	.byw-row, .byw-row--even { grid-template-columns: 1fr; }
}
@media screen and (max-width: 767px) {
	.byw-dash { bottom: calc(64px + env(safe-area-inset-bottom)); }
	.byw-dash__inner { padding: 18px 14px 28px; }
	.byw-dash__title h2 { font-size: 22px; }
	.byw-dash__close { padding: 0 10px; font-size: 0; gap: 0; }
	.byw-dash__close svg { width: 20px; height: 20px; }
	.byw-seg { width: 100%; } .byw-seg button { flex: 1; padding: 0 6px; font-size: 13px; }
	.byw-dates { width: 100%; flex-wrap: wrap; padding: 6px 6px 6px 10px; } .byw-dates label { flex: 1 1 40%; } .byw-dates input { flex: 1; min-width: 0; } .byw-dates__apply { flex: 1 1 100%; min-height: 38px; }
	.byw-alert { flex-wrap: wrap; } .byw-alert a { width: 100%; text-align: center; }
	.byw-metric { padding: 14px 16px; } .byw-metric__value { font-size: 21px; } .byw-metric.is-lead .byw-metric__value { font-size: 28px; }
	.byw-panel { padding: 16px; }
}
body:has(.byw-dash.is-open) .yith-pos-calculator-wrapper { visibility: hidden; }

/* Team dashboard (owners / HQ Boss) */
.byw-seg--view button.is-active { background: #17212B; color: #fff; }
.byw-storesel { height: 40px; padding: 0 32px 0 12px; border: 1px solid #D5DEE5; border-radius: 10px; background: #fff; font: 500 14px var(--byw-font); color: #17212B; }
.byw-staff { display: flex; align-items: flex-start; gap: 10px; }
.byw-rankno { display: inline-flex; width: 24px; height: 24px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 7px; background: #EEF3F6; color: #46525D; font-size: 12px; font-weight: 700; }
.byw-staff b { font-weight: 600; }
.byw-share { display: block; width: 120px; height: 6px; margin: 6px 0 3px; border-radius: 99px; background: #EEF3F6; overflow: hidden; }
.byw-share i { display: block; height: 100%; border-radius: 99px; background: var(--byw-teal); }
.byw-table--staff td { vertical-align: middle; }
.byw-comm { list-style: none; margin: 0; padding: 0; }
.byw-comm li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #F0F3F6; font-size: 14px; }
.byw-comm li:first-child { border-top: 0; padding-top: 0; }
.byw-comm li:first-child b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--byw-teal); }
.byw-comm small { display: block; margin-top: 2px; font-size: 12px; color: #7A8691; }
.byw-comm b { font-weight: 600; white-space: nowrap; }
.byw-foot { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #F0F3F6; font-size: 12.5px; line-height: 1.5; color: #5F6B76; }
@media screen and (max-width: 767px) {
	.byw-seg--view { width: 100%; } .byw-seg--view button { flex: 1; }
	.byw-storesel { width: 100%; }
	.byw-table--staff th:nth-child(3), .byw-table--staff td:nth-child(3), .byw-table--staff th:nth-child(4), .byw-table--staff td:nth-child(4) { display: none; }
	.byw-share { width: 90px; }
}
body:has(.byw-dash.is-open) .yith-pos-calculator-wrapper, body:has(.byw-dash.is-open) a.yith-pos-calculator-button { visibility: hidden !important; }
#user-view { min-width: 0; flex: 0 1 auto; }
#dropdown-user-view { min-width: 0; margin: 0 12px !important; }
#dropdown-user-view span.byw-whoami { min-width: 0; max-width: 220px; overflow: hidden; }
#dropdown-user-view span.byw-whoami small, #dropdown-user-view span.byw-whoami b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yith-pos-header .logout { flex: 0 0 auto; }

/* Instalment plan picker in the Pay screen */
.byw-plan { margin: 14px; padding: 12px; background: #fff; border: 1.5px solid var(--byw-blue); border-radius: 14px; font-family: var(--byw-font); text-align: left; }
.byw-plan strong { font-size: 14px; color: var(--byw-ink); }
.byw-plan__opts { display: flex; gap: 8px; margin-top: 10px; }
.byw-plan__opts button { flex: 1; min-height: 40px; border: 1.5px solid var(--byw-line); border-radius: 10px; background: #fff; font: 600 14px var(--byw-font); color: var(--byw-ink); cursor: pointer; }
.byw-plan__opts button.is-active { background: var(--byw-blue); border-color: var(--byw-blue); color: #fff; }
.byw-plan p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--byw-muted); }
@media screen and (max-width: 767px) { .payment-modal .payment-totals .byw-plan { grid-column: 1 / -1; margin: 0; border-radius: 0; border-width: 0 0 1px; } }

/* Team view tabs, orders table, activity timeline, order drawer */
.byw-tabs2 { display: flex; gap: 4px; margin: -4px 0 18px; border-bottom: 1px solid #DDE5EB; }
.byw-tabs2 button { position: relative; padding: 10px 14px; border: 0; background: none; color: #5F6B76; font: 600 14px var(--byw-font); cursor: pointer; }
.byw-tabs2 button.is-active { color: #17212B; }
.byw-tabs2 button.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--byw-teal); }
.byw-tf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.byw-tf select { height: 38px; padding: 0 30px 0 10px; border: 1px solid #D5DEE5; border-radius: 10px; background: #fff; font: 500 14px var(--byw-font); color: #17212B; }
.byw-tf__sum { margin-left: auto; font-size: 13px; color: #5F6B76; }
.byw-panel--flush { padding: 0; overflow: hidden; }
.byw-scroll { overflow-x: auto; }
.byw-table--orders { min-width: 860px; }
.byw-table--orders th, .byw-table--orders td { padding: 12px 14px !important; }
.byw-table--orders th { background: #F7F9FB; }
.byw-table--orders tbody tr { cursor: pointer; }
.byw-table--orders tbody tr:hover, .byw-table--orders tbody tr:focus-visible { background: #F4F8FB; outline: none; }
.byw-rc { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.byw-rc--ok { background: #E7F4F1; color: #0E6B52; }
.byw-rc--warn { background: #FFF1D6; color: #8A5300; }
.byw-rc--bad { background: #FDE8E6; color: #A11E14; }
.byw-rc--none { color: #9AA6B2; padding-left: 0; }
.byw-chip--cancelled, .byw-chip--refunded { background: #F1F3F5; color: #5F6B76; }
.byw-legend2 { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 4px; font-size: 12.5px; color: #5F6B76; }
.byw-legend2 i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.byw-day { margin: 18px 0 6px; font-size: 13px; font-weight: 600; color: #5F6B76; }
.byw-tl { list-style: none; margin: 0; padding: 0; }
.byw-tl li { display: grid; grid-template-columns: 72px 10px 1fr; align-items: baseline; gap: 12px; padding: 9px 8px; border-radius: 8px; font-size: 14px; line-height: 1.45; }
.byw-tl li.is-link { cursor: pointer; }
.byw-tl li.is-link:hover, .byw-tl li.is-link:focus-visible { background: #F4F8FB; outline: none; }
.byw-tl__time { font-size: 12.5px; color: #7A8691; white-space: nowrap; }
.byw-tl i { width: 8px; height: 8px; border-radius: 50%; background: #B0BAC3; transform: translateY(-1px); }
.byw-tl b { font-weight: 600; }
.byw-tl--tight li { grid-template-columns: 96px 10px 1fr; padding: 6px 0; font-size: 13.5px; }
.byw-drawer { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(16, 32, 48, .35); }
.byw-drawer.is-open { display: block; }
.byw-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); overflow-y: auto; background: #fff; box-shadow: -16px 0 40px -16px rgba(16, 32, 48, .4); font-family: var(--byw-font); color: #17212B; font-feature-settings: "tnum" 1; }
.byw-dr__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: #fff; border-bottom: 1px solid #EDF1F4; }
.byw-dr__head h3 { display: inline; margin: 0 8px 0 0; font-size: 20px; font-weight: 700; }
.byw-drawer__x { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #F1F5F8; font-size: 20px; cursor: pointer; color: #17212B; }
.byw-dr__body { padding: 8px 20px 28px; }
.byw-dr__body h4 { margin: 22px 0 8px; font-size: 13px; font-weight: 600; color: #5F6B76; text-transform: uppercase; letter-spacing: .05em; }
.byw-dl { display: grid; grid-template-columns: 100px 1fr; gap: 8px 12px; margin: 14px 0 0; font-size: 14px; }
.byw-dl dt { color: #5F6B76; }
.byw-dl dd { margin: 0; font-weight: 500; }
.byw-dl small { display: block; font-weight: 400; color: #5F6B76; font-size: 12.5px; }
.byw-tot td { font-weight: 700; border-top: 1px solid #DDE5EB !important; }
.byw-dr__sub { margin: 8px 0 0; font-size: 13px; color: #5F6B76; }
@media screen and (max-width: 767px) {
	.byw-tabs2 { overflow-x: auto; }
	.byw-tf select { flex: 1; min-width: 0; }
	.byw-tf__sum { width: 100%; margin: 0; }
	.byw-tl li { grid-template-columns: 58px 10px 1fr; gap: 8px; padding: 8px 4px; }
	.byw-drawer__panel { width: 100%; }
}