/**
 * Customer widget styles are fully prefixed to avoid inheriting legacy theme
 * component rules. Typography intentionally inherits the storefront font.
 */
.bhor-root {
	--bhor-accent: #b8ff24;
	--bhor-accent-foreground: #14200f;
	--bhor-accent-strong: color-mix(in srgb, var(--bhor-accent) 78%, black);
	--bhor-ink: #151a16;
	--bhor-muted: #667069;
	--bhor-surface: #ffffff;
	--bhor-line: #dfe5df;
	--bhor-mobile-bottom-gap: 0px;
	position: relative;
	z-index: 2147483000;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.35;
}

.bhor-widget,
.bhor-widget * {
	box-sizing: border-box;
}

.bhor-launcher {
	position: fixed;
	right: max(24px, env(safe-area-inset-right));
	bottom: max(22px, env(safe-area-inset-bottom));
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 292px;
	min-height: 62px;
	padding: 10px 14px 10px 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 17px;
	background: var(--bhor-ink);
	box-shadow: 0 14px 34px rgba(10, 16, 11, 0.28);
	color: #ffffff;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.bhor-launcher:hover {
	border-color: color-mix(in srgb, var(--bhor-accent) 60%, transparent);
	box-shadow: 0 16px 38px rgba(10, 16, 11, 0.34);
}

.bhor-launcher:focus-visible,
.bhor-close:focus-visible,
.bhor-copy:focus-visible,
.bhor-action:focus-visible,
.bhor-file-picker:focus-within {
	outline: 3px solid #1473e6;
	outline-offset: 3px;
}

.bhor-icon {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 12px;
	background: var(--bhor-accent-strong);
	color: var(--bhor-accent-foreground);
}

.bhor-icon svg {
	width: 21px;
	height: 21px;
}

.bhor-launcher-copy {
	min-width: 0;
	flex: 1;
}

.bhor-launcher-title,
.bhor-launcher-status {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bhor-launcher-title {
	font-size: 14px;
	font-weight: 800;
}

.bhor-launcher-status {
	margin-top: 2px;
	color: #c6cec7;
	font-size: 12px;
}

.bhor-chevron {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--bhor-accent);
	transition: transform 180ms ease;
}

.bhor-launcher[aria-expanded="true"] .bhor-chevron {
	transform: rotate(180deg);
}

.bhor-panel {
	position: fixed;
	right: max(24px, env(safe-area-inset-right));
	bottom: calc(max(22px, env(safe-area-inset-bottom)) + 74px);
	z-index: 3;
	width: min(370px, calc(100vw - 32px));
	padding: 20px;
	border: 1px solid var(--bhor-line);
	border-radius: 20px;
	background: var(--bhor-surface);
	box-shadow: 0 24px 60px rgba(17, 28, 19, 0.24);
	color: var(--bhor-ink);
	opacity: 1;
	transform-origin: bottom right;
	transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.bhor-panel[hidden] {
	display: block;
	pointer-events: none;
	opacity: 0;
	transform: translateY(8px) scale(0.98);
	visibility: hidden;
}

.bhor-panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.bhor-eyebrow {
	margin: 0;
	color: var(--bhor-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.bhor-order-number {
	margin: 4px 0 0;
	font-size: 21px;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.bhor-close {
	display: grid;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 11px;
	background: #f0f3f0;
	color: var(--bhor-ink);
	cursor: pointer;
	transition: background-color 180ms ease;
}

.bhor-close:hover {
	background: #e3e8e3;
}

.bhor-close svg {
	width: 20px;
	height: 20px;
}

.bhor-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 15px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #eff8df;
	color: #35510b;
	font-size: 12px;
	font-weight: 800;
}

.bhor-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #8ccf16;
	box-shadow: 0 0 0 3px #dff1be;
}

.bhor-track {
	display: flex;
	align-items: center;
	margin: 22px 4px 18px;
}

.bhor-track-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--bhor-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--bhor-accent) 24%, white);
}

.bhor-track-dot:last-child {
	background: #dfe4df;
	box-shadow: none;
}

.bhor-track-line {
	height: 2px;
	flex: 1;
	background: linear-gradient(90deg, var(--bhor-accent) 56%, #dfe4df 56%);
}

.bhor-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding-top: 16px;
	border-top: 1px solid #edf0ed;
}

.bhor-meta-label {
	display: block;
	color: var(--bhor-muted);
	font-size: 12px;
}

.bhor-meta-value {
	display: block;
	margin-top: 3px;
	font-size: 15px;
	font-weight: 800;
}

.bhor-requisite {
	margin: 15px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f4f6f3;
	color: #3f4941;
	font-size: 13px;
}

.bhor-requisite-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bhor-requisite-label {
	color: var(--bhor-muted);
	font-size: 12px;
	font-weight: 700;
}

.bhor-payment-details {
	margin: 10px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bhor-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
	user-select: text;
}

.bhor-copy {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 7px;
	padding: 8px 10px;
	border: 1px solid #d8ded8;
	border-radius: 10px;
	background: #ffffff;
	color: var(--bhor-ink);
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.bhor-copy:hover,
.bhor-copy[data-copied="true"] {
	border-color: var(--bhor-accent);
	background: color-mix(in srgb, var(--bhor-accent) 16%, white);
}

.bhor-copy:disabled {
	cursor: wait;
	opacity: 0.8;
}

.bhor-copy svg {
	width: 17px;
	height: 17px;
}

.bhor-copy-targets {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 11px;
}

.bhor-copy-target {
	width: 100%;
	min-width: 0;
	justify-content: flex-start;
	text-align: left;
}

.bhor-copy-target span {
	min-width: 0;
	line-height: 1.35;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.bhor-copy-status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bhor-copy-field {
	position: fixed;
	top: -1000px;
	left: -1000px;
	opacity: 0;
}

.bhor-actions {
	display: grid;
	grid-template-columns: 0.9fr 1.25fr;
	gap: 9px;
	margin-top: 17px;
}

.bhor-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid #dce1dc;
	border-radius: 11px;
	background: #ffffff;
	color: var(--bhor-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.bhor-action:hover {
	border-color: #b7c0b8;
	background: #f7f9f7;
	color: var(--bhor-ink);
}

.bhor-action-primary {
	border-color: var(--bhor-accent-strong);
	background: var(--bhor-accent-strong);
	color: var(--bhor-accent-foreground);
}

.bhor-action-primary:hover {
	border-color: color-mix(in srgb, var(--bhor-accent) 70%, black);
	background: color-mix(in srgb, var(--bhor-accent) 70%, black);
	color: var(--bhor-accent-foreground);
}

.bhor-action:only-child {
	grid-column: 1 / -1;
}

.bhor-action[hidden] {
	display: none;
}

.bhor-uploader {
	display: grid;
	gap: 9px;
	margin-top: 12px;
	padding: 13px;
	border: 1px solid var(--bhor-line);
	border-radius: 12px;
	background: #f7f9f7;
}

.bhor-uploader[hidden] {
	display: none;
}

.bhor-file-picker {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 11px 13px;
	border: 1px dashed color-mix(in srgb, var(--bhor-accent) 62%, #808880);
	border-radius: 11px;
	background: #ffffff;
	color: var(--bhor-ink);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.bhor-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bhor-file-selected,
.bhor-upload-status,
.bhor-receipt-success {
	margin: 0;
	font-size: 12px;
}

.bhor-file-selected {
	color: var(--bhor-muted);
	overflow-wrap: anywhere;
}

.bhor-upload-status {
	min-height: 16px;
	color: #9c2e24;
	font-weight: 700;
}

.bhor-upload-progress {
	width: 100%;
	height: 7px;
	accent-color: var(--bhor-accent-strong);
}

.bhor-upload-submit {
	width: 100%;
}

.bhor-action:disabled,
.bhor-file-picker:has(+ .bhor-file-input:disabled) {
	cursor: wait;
	opacity: 0.65;
}

.bhor-receipt-success {
	margin-top: 14px;
	padding: 11px 13px;
	border-radius: 11px;
	background: #eff8df;
	color: #35510b;
	font-weight: 800;
	text-align: center;
}

.bhor-backdrop {
	display: none;
}

@media (max-width: 600px) {
	.bhor-launcher {
		right: max(12px, env(safe-area-inset-right));
		bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--bhor-mobile-bottom-gap));
		left: max(12px, env(safe-area-inset-left));
		width: auto;
		min-width: 0;
	}

	.bhor-backdrop {
		position: fixed;
		inset: 0;
		z-index: 2;
		display: block;
		background: rgba(11, 17, 12, 0.34);
		opacity: 1;
		transition: opacity 200ms ease-out;
	}

	.bhor-backdrop[hidden] {
		pointer-events: none;
		opacity: 0;
		visibility: hidden;
	}

	.bhor-panel {
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: min(86vh, 620px);
		padding: 12px 18px calc(20px + env(safe-area-inset-bottom));
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 24px 24px 0 0;
		overflow-y: auto;
		transform-origin: bottom center;
	}

	.bhor-panel::before {
		content: "";
		display: block;
		width: 42px;
		height: 4px;
		margin: 0 auto 15px;
		border-radius: 999px;
		background: #d9ded9;
	}

	.bhor-panel[hidden] {
		transform: translateY(102%);
	}

	.bhor-actions {
		grid-template-columns: 1fr;
	}

	.bhor-requisite-head {
		align-items: flex-start;
	}

	.bhor-copy-targets {
		grid-template-columns: 1fr;
	}

	.bhor-actions > .bhor-action-primary {
		order: -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhor-launcher,
	.bhor-chevron,
	.bhor-panel,
	.bhor-close,
	.bhor-action,
	.bhor-file-picker,
	.bhor-backdrop {
		scroll-behavior: auto;
		transition: none;
	}
}
