.btp-standalone,
.btp-upload-panel {
	--btp-black: #0a0a0a;
	--btp-white: #fff;
	--btp-soft: #f7f7f7;
	--btp-line: #d2d2d2;
	--btp-muted: #5f5f5f;
	--btp-radius: 14px;
	color: var(--btp-black);
	font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
	font-size: 14px;
	line-height: 1.5;
}

.btp-standalone *,
.btp-upload-panel *,
.btp-standalone *::before,
.btp-standalone *::after,
.btp-upload-panel *::before,
.btp-upload-panel *::after {
	box-sizing: border-box;
}

.btp-standalone {
	min-height: 50vh;
	padding: 28px 14px 44px;
	background: #fff;
}

.btp-page-shell {
	width: min(820px, 100%);
	margin: 0 auto;
}

.btp-page-title {
	margin: 0 0 14px;
}

.btp-page-title span,
.btp-kicker {
	display: block;
	margin: 0;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.btp-page-title h1 {
	margin: 4px 0 0 !important;
	padding: 0 !important;
	font: 500 clamp(22px, 4vw, 32px)/1.08 "IBM Plex Mono", monospace !important;
	letter-spacing: -.045em;
}

.btp-order-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	overflow: hidden;
	margin: 0 0 12px;
	border: 1px solid var(--btp-black);
	border-radius: var(--btp-radius);
	background: #fff;
}

.btp-order-summary > div {
	display: flex;
	min-width: 0;
	padding: 9px 10px;
	border-right: 1px solid var(--btp-line);
	flex-direction: column;
	gap: 3px;
}

.btp-order-summary > div:last-child {
	border-right: 0;
}

.btp-order-summary span,
.btp-bank-account span {
	margin: 0;
	color: var(--btp-muted);
	font-size: 10px;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.btp-order-summary strong {
	overflow-wrap: anywhere;
	font-size: 13px;
	line-height: 1.4;
}

.btp-bank-details {
	margin: 12px 0 0;
	padding: 14px;
	border: 1px solid var(--btp-line);
	border-radius: var(--btp-radius);
	background: #fff;
}

.btp-bank-details__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 8px;
}

.btp-bank-details__header h2 {
	margin: 0 !important;
	padding: 0 !important;
	font: 600 17px/1.25 "IBM Plex Mono", monospace !important;
	letter-spacing: -.02em;
}

.btp-bank-account {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.btp-bank-account + .btp-bank-account {
	margin-top: 7px;
	padding-top: 7px;
	border-top: 1px solid var(--btp-line);
}

.btp-bank-account > div {
	display: flex;
	min-width: 0;
	min-height: 50px;
	padding: 9px 10px;
	border: 1px solid var(--btp-line);
	border-radius: 10px;
	background: var(--btp-soft);
	flex-direction: column;
	justify-content: center;
	gap: 3px;
}

.btp-bank-account strong {
	overflow-wrap: anywhere;
	font-size: 12px;
	line-height: 1.4;
}

.btp-upload-panel {
	width: 100%;
	max-width: 820px;
	margin: 18px 0;
	padding: 16px;
	border: 1px solid var(--btp-line);
	border-radius: var(--btp-radius);
	background: var(--btp-white);
	box-shadow: none;
}

.btp-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--btp-line);
}

.btp-panel-header > div {
	min-width: 0;
}

.btp-panel-header h2 {
	margin: 4px 0 0 !important;
	padding: 0 !important;
	font: 600 19px/1.25 "IBM Plex Mono", monospace !important;
	letter-spacing: -.025em;
}

.btp-status {
	display: inline-flex;
	width: auto;
	min-height: 28px;
	margin: 0;
	padding: 5px 10px;
	border: 1px solid var(--btp-black);
	border-radius: 999px;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .05em;
	white-space: nowrap;
}

.btp-status--submitted,
.btp-status--approved {
	background: #000;
	color: #fff;
}

.btp-status--invalid {
	border-style: dashed;
}

.btp-panel-copy {
	max-width: 680px;
	margin: 12px 0 !important;
	padding: 0 !important;
	font-size: 13px;
	line-height: 1.55;
}

.btp-example {
	margin: 0 0 11px;
	padding: 10px 12px;
	border: 1px solid var(--btp-line);
	border-radius: 10px;
	background: var(--btp-soft);
	font-size: 12px;
	line-height: 1.45;
}

.btp-example summary {
	cursor: pointer;
	font-weight: 700;
	line-height: 1.3;
}

.btp-example p {
	margin: 7px 0 0 !important;
	padding: 0 !important;
	color: var(--btp-muted);
	font-size: 12px;
	line-height: 1.5;
}

.btp-notice {
	margin: 11px 0;
	padding: 10px 12px;
	border: 1px solid var(--btp-black);
	border-radius: 10px;
	font-size: 12px;
	line-height: 1.5;
}

.btp-notice--success {
	background: #000;
	color: #fff;
}

.btp-notice--error {
	border-style: dashed;
}

.btp-current {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	margin: 12px 0;
	padding: 10px;
	border: 1px solid var(--btp-line);
	border-radius: 11px;
	background: var(--btp-soft);
}

.btp-current__preview,
.btp-current__preview a {
	display: block;
	width: 72px;
	height: 64px;
	margin: 0;
	padding: 0;
}

.btp-current__preview img,
.btp-pdf {
	display: block !important;
	width: 72px !important;
	height: 64px !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 9px;
	object-fit: cover;
}

.btp-current__preview img,
.btp-receipt-modal__image {
	filter: none !important;
}

.btp-pdf {
	display: flex !important;
	border: 1px solid #111;
	background: #fff;
	color: #111;
	text-decoration: none !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
}

.btp-pdf strong {
	font-size: 16px;
	line-height: 1;
}

.btp-pdf span {
	font-size: 9px;
	line-height: 1.2;
}

.btp-current__details {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	font-size: 11px;
	line-height: 1.45;
}

.btp-current__details strong {
	font-size: 13px;
	line-height: 1.4;
}

.btp-view-receipt {
	width: fit-content;
	margin-top: 3px;
	color: #111 !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.btp-modal-open {
	overflow: hidden;
}

.btp-receipt-modal {
	--btp-line: #d2d2d2;
	display: none;
	position: fixed;
	z-index: 999999;
	inset: 0;
	padding: 24px;
	align-items: center;
	justify-content: center;
	font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.btp-receipt-modal.is-open {
	display: flex;
}

.btp-receipt-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .76);
	backdrop-filter: blur(3px);
}

.btp-receipt-modal__dialog {
	display: flex;
	position: relative;
	width: min(920px, 100%);
	height: min(86vh, 820px);
	overflow: hidden;
	border: 1px solid #2a2a2a;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
	flex-direction: column;
}

.btp-receipt-modal__header {
	display: flex;
	min-height: 66px;
	padding: 13px 14px 13px 18px;
	border-bottom: 1px solid var(--btp-line);
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.btp-receipt-modal__header h2 {
	margin: 3px 0 0 !important;
	padding: 0 !important;
	color: #111 !important;
	font: 600 18px/1.25 "IBM Plex Mono", monospace !important;
	letter-spacing: -.025em;
}

.btp-receipt-modal button.btp-receipt-modal__close {
	appearance: none !important;
	display: inline-flex !important;
	width: 38px !important;
	min-width: 38px !important;
	max-width: 38px !important;
	height: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #111 !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #111 !important;
	cursor: pointer;
	align-items: center !important;
	justify-content: center !important;
	font: 400 25px/1 "IBM Plex Mono", monospace !important;
}

.btp-receipt-modal button.btp-receipt-modal__close:hover {
	background: #111 !important;
	color: #fff !important;
}

.btp-receipt-modal button.btp-receipt-modal__close::before,
.btp-receipt-modal button.btp-receipt-modal__close::after {
	display: none !important;
	content: none !important;
}

.btp-receipt-modal__body {
	display: flex;
	min-height: 0;
	padding: 14px;
	overflow: auto;
	background: #f2f2f2;
	flex: 1;
	align-items: center;
	justify-content: center;
}

.btp-receipt-modal__image {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: auto !important;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
	object-fit: contain;
}

.btp-receipt-modal__pdf {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: 0;
	border-radius: 12px;
	background: #fff;
}

.btp-receipt-modal__footer {
	display: flex;
	min-height: 52px;
	padding: 9px 14px;
	border-top: 1px solid var(--btp-line);
	background: #fff;
	align-items: center;
	justify-content: flex-end;
}

.btp-receipt-modal__open {
	display: inline-flex;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid #111;
	border-radius: 9px;
	background: #fff;
	color: #111 !important;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	text-transform: uppercase;
}

.btp-receipt-modal__open:hover {
	background: #111;
	color: #fff !important;
}

.btp-upload-panel button.btp-form-toggle,
.btp-upload-panel button.btp-submit {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-flex !important;
	position: static !important;
	width: auto !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	margin: 9px 0 0 !important;
	padding: 0 14px !important;
	border: 1px solid #000 !important;
	border-radius: 10px !important;
	background: #000 !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	transform: none !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: "IBM Plex Mono", monospace !important;
	font-size: 11px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: .04em !important;
	text-align: center !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;
}

.btp-upload-panel button.btp-form-toggle::before,
.btp-upload-panel button.btp-form-toggle::after,
.btp-upload-panel button.btp-submit::before,
.btp-upload-panel button.btp-submit::after {
	display: none !important;
	content: none !important;
}

.btp-upload-panel button.btp-form-toggle:hover,
.btp-upload-panel button.btp-form-toggle.is-open,
.btp-upload-panel button.btp-submit:hover {
	background: #fff !important;
	color: #000 !important;
}

.btp-upload-panel button.btp-form-toggle:focus-visible,
.btp-upload-panel button.btp-submit:focus-visible {
	outline: 2px solid #000 !important;
	outline-offset: 2px;
}

.btp-form-reveal {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--btp-line);
}

.btp-form-reveal[hidden] {
	display: none !important;
}

.btp-upload-form {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

.btp-file-field {
	display: flex;
	width: 100%;
	min-height: 76px;
	margin: 0;
	padding: 12px 14px;
	border: 1px dashed #8c8c8c;
	border-radius: 11px;
	background: #fafafa;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.btp-file-field:hover {
	border-color: #000;
	background: #f2f2f2;
}

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

.btp-file-field__title {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.btp-file-field__help {
	color: var(--btp-muted);
	font-size: 11px;
	line-height: 1.4;
}

.btp-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.btp-fields label {
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
	flex-direction: column;
	gap: 5px;
	color: #333;
	font-size: 11px;
	line-height: 1.35;
	letter-spacing: .01em;
}

.btp-fields input:not([type="hidden"]),
.btp-fields textarea {
	appearance: none !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 9px 10px !important;
	border: 1px solid #aaa !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #111 !important;
	font-family: "IBM Plex Mono", monospace !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	text-transform: none !important;
}

.btp-fields input:focus,
.btp-fields textarea:focus {
	border-color: #000 !important;
	outline: 1px solid #000 !important;
	outline-offset: 0;
}

.btp-fields textarea {
	min-height: 64px !important;
	resize: vertical;
}

.btp-field-wide {
	grid-column: 1 / -1;
}

.btp-privacy,
.btp-closed {
	margin: 9px 0 0 !important;
	padding: 0 !important;
	color: var(--btp-muted);
	font-size: 11px;
	line-height: 1.5;
}

.btp-upload-panel button.btp-submit {
	margin-top: 10px !important;
}

@media (max-width: 700px) {
	.btp-receipt-modal {
		padding: 10px;
	}

	.btp-receipt-modal__dialog {
		height: min(92vh, 760px);
		border-radius: 15px;
	}

	.btp-receipt-modal__header {
		min-height: 60px;
		padding: 11px 11px 11px 14px;
	}

	.btp-receipt-modal__body {
		padding: 9px;
	}

	.btp-receipt-modal__pdf {
		min-height: 360px;
	}

	.btp-standalone {
		padding: 18px 9px 32px;
	}

	.btp-upload-panel {
		margin: 14px 0;
		padding: 14px;
	}

	.btp-order-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.btp-order-summary > div:nth-child(2) {
		border-right: 0;
	}

	.btp-order-summary > div:nth-child(-n + 2) {
		border-bottom: 1px solid var(--btp-line);
	}

	.btp-panel-header {
		align-items: flex-start;
	}

	.btp-panel-header h2 {
		font-size: 18px !important;
	}

	.btp-bank-account {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.btp-fields {
		grid-template-columns: 1fr;
	}

	.btp-field-wide {
		grid-column: auto;
	}

	.btp-upload-panel button.btp-form-toggle,
	.btp-upload-panel button.btp-submit {
		height: 36px !important;
		min-height: 36px !important;
		max-height: 36px !important;
	}
}

@media (max-width: 390px) {
	.btp-bank-account {
		grid-template-columns: 1fr;
	}

	.btp-status {
		max-width: 112px;
		white-space: normal;
		text-align: center;
	}
}
