/* OutreachXXL feedback button (XXL Tools). Own file: works with every design, takes the heading font of design M. */
.xt-fb {
	--xt-fb-blue: #1F4E9C;
	--xt-fb-blue-d: #173d7a;
	--xt-fb-yellow: #FFD23F;
	--xt-fb-ink: #14161e;
	--xt-fb-ink2: #4a5262;
	--xt-fb-line: #dfe3ea;
	--xt-fb-font: var(--xr-head-font, 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif);
	--xt-fb-b: 120px;
	font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--xt-fb-ink);
}
.xt-fb *, .xt-fb *::before, .xt-fb *::after { box-sizing: border-box; }

/* The tab: on the right edge, small; shifts up when something else sits at the bottom. */
.xt-fb-tab {
	position: fixed; right: 0; bottom: var(--xt-fb-b); z-index: 99980;
	display: flex; align-items: center; gap: 7px;
	writing-mode: vertical-rl; transform: rotate(180deg);
	margin: 0; padding: 12px 7px 11px; border: 0; border-radius: 0 9px 9px 0;
	background: var(--xt-fb-blue); color: #fff; cursor: pointer;
	font: 600 13px/1 var(--xt-fb-font); letter-spacing: .02em; text-transform: none;
	box-shadow: 0 4px 14px rgba(20, 22, 30, .18); opacity: .9;
	transition: opacity .15s, padding .15s, bottom .2s ease, background .15s;
	-webkit-tap-highlight-color: transparent;
}
.xt-fb-tab:hover { opacity: 1; padding-bottom: 14px; background: var(--xt-fb-blue-d); }
.xt-fb-tab:focus-visible { opacity: 1; outline: 3px solid var(--xt-fb-yellow); outline-offset: 2px; }
.xt-fb-ico { transform: rotate(180deg); flex: 0 0 auto; }
.xt-fb.xt-fb-away .xt-fb-tab, .xt-fb.is-open .xt-fb-tab { opacity: 0; pointer-events: none; visibility: hidden; }

/* The panel */
.xt-fb-panel {
	position: fixed; right: 16px; bottom: 16px; z-index: 99981;
	width: 372px; max-width: calc(100vw - 24px); max-height: calc(100vh - 32px); overflow: auto;
	background: #fff; color: var(--xt-fb-ink);
	border: 1px solid var(--xt-fb-line); border-radius: 16px;
	box-shadow: 0 18px 50px rgba(20, 22, 30, .22), 0 2px 6px rgba(20, 22, 30, .08);
	font-size: 14px; line-height: 1.45; text-align: left;
	animation: xt-fb-in .16s ease-out;
}
.xt-fb-panel[hidden] { display: none; }
@keyframes xt-fb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .xt-fb-panel { animation: none; } .xt-fb-tab { transition: none; } }

.xt-fb-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 0 18px; }
.xt-fb .xt-fb-title { margin: 0; padding: 0; font: 800 18px/1.2 var(--xt-fb-font); color: var(--xt-fb-ink); letter-spacing: -.01em; }
.xt-fb-x {
	display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--xt-fb-ink2); cursor: pointer;
}
.xt-fb-x:hover { background: #f1f3f7; color: var(--xt-fb-ink); }
.xt-fb-x:focus-visible, .xt-fb-send:focus-visible, .xt-fb-close2:focus-visible { outline: 3px solid var(--xt-fb-blue); outline-offset: 2px; }

.xt-fb-form { padding: 4px 18px 18px; margin: 0; }
.xt-fb-form[hidden] { display: none; }
.xt-fb .xt-fb-intro { margin: 2px 0 12px; color: var(--xt-fb-ink2); font-size: 13.5px; }
.xt-fb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.xt-fb-types { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.xt-fb-chip { position: relative; margin: 0; cursor: pointer; }
.xt-fb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.xt-fb-chip span {
	display: inline-block; padding: 7px 12px; border: 1px solid var(--xt-fb-line); border-radius: 999px;
	background: #fff; color: var(--xt-fb-ink); font: 600 13px/1.2 var(--xt-fb-font); transition: background .12s, border-color .12s;
}
.xt-fb-chip:hover span { border-color: var(--xt-fb-blue); }
.xt-fb-chip input:checked + span { background: var(--xt-fb-blue); border-color: var(--xt-fb-blue); color: #fff; }
.xt-fb-chip input:focus-visible + span { outline: 3px solid var(--xt-fb-yellow); outline-offset: 2px; }

.xt-fb-label { display: block; margin: 0 0 5px; font: 700 13px/1.3 var(--xt-fb-font); color: var(--xt-fb-ink); }
.xt-fb-opt { font-weight: 500; color: var(--xt-fb-ink2); }
.xt-fb textarea, .xt-fb input[type="email"] {
	display: block; width: 100%; margin: 0 0 12px; padding: 9px 11px;
	border: 1px solid #c9cfd9; border-radius: 10px; background: #fff; color: var(--xt-fb-ink);
	font: 400 14px/1.45 'Open Sans', system-ui, sans-serif; box-shadow: none; min-height: 0; height: auto;
}
.xt-fb textarea { resize: vertical; min-height: 92px; }
.xt-fb textarea:focus, .xt-fb input[type="email"]:focus { outline: 0; border-color: var(--xt-fb-blue); box-shadow: 0 0 0 3px rgba(31, 78, 156, .18); }
.xt-fb .xt-fb-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.xt-fb-shot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 6px; }
.xt-fb-switch { display: inline-flex; align-items: center; gap: 9px; margin: 0; cursor: pointer; font: 600 13px/1.3 var(--xt-fb-font); color: var(--xt-fb-ink); }
.xt-fb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.xt-fb-knob { position: relative; flex: 0 0 auto; width: 36px; height: 21px; border-radius: 999px; background: #c3c9d4; transition: background .15s; }
.xt-fb-knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.xt-fb-switch input:checked + .xt-fb-knob { background: var(--xt-fb-blue); }
.xt-fb-switch input:checked + .xt-fb-knob::after { transform: translateX(15px); }
.xt-fb-switch input:focus-visible + .xt-fb-knob { outline: 3px solid var(--xt-fb-yellow); outline-offset: 2px; }

.xt-fb-thumb {
	position: relative; flex: 0 0 auto; width: 92px; height: 58px; overflow: hidden;
	border: 1px solid var(--xt-fb-line); border-radius: 8px; background: #f3f5f8;
	display: flex; align-items: center; justify-content: center; text-align: center;
}
.xt-fb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; cursor: zoom-in; }
.xt-fb-thumb-msg { font-size: 10.5px; line-height: 1.2; color: var(--xt-fb-ink2); padding: 3px; }
.xt-fb-thumb.is-ok .xt-fb-thumb-msg { display: none; }
.xt-fb-thumb.is-busy::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%) #eef1f5; background-size: 200% 100%; animation: xt-fb-sh 1.1s linear infinite; }
.xt-fb-thumb.is-busy .xt-fb-thumb-msg { position: relative; }
.xt-fb-thumb.is-fail { width: 150px; height: auto; min-height: 58px; }
@keyframes xt-fb-sh { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.xt-fb-thumb.is-big { position: fixed; z-index: 99982; inset: 16px; width: auto; height: auto; background: rgba(20, 22, 30, .85); border: 0; border-radius: 12px; }
.xt-fb-thumb.is-big img { object-fit: contain; object-position: center; cursor: zoom-out; }
.xt-fb.xt-fb-noshot .xt-fb-thumb, .xt-fb.xt-fb-noshot .xt-fb-privacy { display: none; }

.xt-fb .xt-fb-privacy { margin: 0 0 12px; font-size: 12px; line-height: 1.4; color: var(--xt-fb-ink2); }
.xt-fb .xt-fb-err { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #fdecec; color: #8a1c1c; font-size: 13px; }
.xt-fb .xt-fb-err[hidden] { display: none; }

.xt-fb-send, .xt-fb-close2 {
	display: block; width: 100%; margin: 0; padding: 11px 16px; border: 0; border-radius: 10px;
	background: var(--xt-fb-blue) !important; color: #fff !important; cursor: pointer;
	font: 800 15px/1.2 var(--xt-fb-font) !important; text-transform: none; letter-spacing: 0; box-shadow: none; height: auto; min-height: 0;
	transition: filter .12s;
}
.xt-fb-send:hover, .xt-fb-close2:hover { filter: brightness(.95); }
.xt-fb-send[disabled] { opacity: .7; cursor: progress; }

.xt-fb-done { padding: 10px 22px 22px; text-align: center; outline: 0; }
.xt-fb-done[hidden] { display: none; }
.xt-fb-done svg { display: block; margin: 6px auto 10px; }
.xt-fb .xt-fb-done-h { margin: 0 0 4px; font: 800 18px/1.25 var(--xt-fb-font); color: var(--xt-fb-ink); }
.xt-fb .xt-fb-done-p { margin: 0 0 16px; color: var(--xt-fb-ink2); }
.xt-fb .xt-fb-close2 { background: #eef1f6 !important; color: var(--xt-fb-ink) !important; }

/* Up to 1100px (phones, tablets, small laptops): a small round icon button bottom-right instead of the
   edge tab, so it never sits over a content column. feedback.js still lifts it above sticky bars
   (product order bar, cart totals, catalogue filter button) through --xt-fb-b. */
@media (max-width: 1100px) {
	.xt-fb-tab {
		writing-mode: horizontal-tb; transform: none;
		right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(var(--xt-fb-b) + env(safe-area-inset-bottom, 0px));
		width: 44px; height: 44px; padding: 0; justify-content: center; gap: 0;
		border-radius: 50%; opacity: .82;
		box-shadow: 0 3px 10px rgba(20, 22, 30, .22);
	}
	.xt-fb-tab:hover { padding: 0; }
	.xt-fb-ico { transform: none; }
	.xt-fb-tab-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Phone: the panel as a sheet from the bottom. */
@media (max-width: 760px) {
	.xt-fb { --xt-fb-b: 16px; }
	.xt-fb-panel { left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 88vh; border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0); }
	.xt-fb textarea { min-height: 84px; font-size: 16px; }
	.xt-fb input[type="email"] { font-size: 16px; }
}
@media print { .xt-fb { display: none !important; } }
