/**
 * BLIK Phone Transfer for WooCommerce – style front-endu.
 */

.bptfw-gateway-icon {
	max-height: 28px;
	width: auto;
	max-width: 60px;
	float: right;
	margin-left: 8px;
	vertical-align: middle;
}

.bptfw-blocks-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}

.bptfw-blocks-label .bptfw-gateway-icon {
	float: none;
	margin: 0;
}

/* Ramka z danymi do przelewu (strona podziękowania). */
.bptfw-box {
	--bptfw-accent: #8A1F2E;
	--bptfw-ink: #16181d;
	--bptfw-muted: #6b7280;
	--bptfw-line: rgba(22, 24, 29, 0.1);
	--bptfw-surface: #ffffff;

	box-sizing: border-box;
	margin: 0 0 2.5em;
	padding: 24px 26px 22px;
	background: var(--bptfw-surface);
	border: 1px solid var(--bptfw-line);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(22, 24, 29, 0.07);
	position: relative;
	overflow: hidden;
}

.bptfw-box::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--bptfw-ink) 0%, var(--bptfw-accent) 100%);
}

.bptfw-box *,
.bptfw-box *::before,
.bptfw-box *::after {
	box-sizing: border-box;
}

.bptfw-box__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.bptfw-box__logo {
	height: 34px;
	width: auto;
	display: block;
	border-radius: 6px;
	flex: 0 0 auto;
}

.bptfw-box__title {
	margin: 0;
	padding: 0;
	font-size: 1.15em;
	line-height: 1.3;
	font-weight: 700;
	color: var(--bptfw-ink);
	border: 0;
}

.bptfw-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bptfw-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px dashed var(--bptfw-line);
	list-style: none;
}

.bptfw-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.bptfw-label {
	flex: 0 0 auto;
	min-width: 130px;
	color: var(--bptfw-muted);
	font-size: 0.9em;
	line-height: 1.4;
}

.bptfw-value {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--bptfw-ink);
	font-size: 1.08em;
	font-weight: 700;
	line-height: 1.4;
	word-break: break-word;
}

.bptfw-value .bptfw-phone,
.bptfw-value .bptfw-reference {
	letter-spacing: 0.03em;
	font-variant-numeric: tabular-nums;
}

.bptfw-value .bptfw-amount {
	color: var(--bptfw-accent);
}

.bptfw-value .bptfw-amount .woocommerce-Price-amount,
.bptfw-value .bptfw-amount bdi {
	color: inherit;
	font-weight: inherit;
}

.bptfw-copy {
	flex: 0 0 auto;
	margin: 0;
	padding: 5px 12px;
	font-size: 0.78em;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: var(--bptfw-ink);
	background: transparent;
	border: 1px solid var(--bptfw-line);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	min-height: 0;
	width: auto;
	text-transform: none;
}

.bptfw-copy:hover,
.bptfw-copy:focus {
	background: var(--bptfw-ink);
	border-color: var(--bptfw-ink);
	color: #fff;
}

.bptfw-copy.is-copied,
.bptfw-copy.is-copied:hover {
	background: var(--bptfw-accent);
	border-color: var(--bptfw-accent);
	color: #fff;
}

.bptfw-box__note {
	margin: 18px 0 0;
	padding: 12px 14px;
	background: rgba(138, 31, 46, 0.07);
	border-radius: 10px;
	color: var(--bptfw-muted);
	font-size: 0.88em;
	line-height: 1.55;
}

@media (max-width: 480px) {
	.bptfw-box {
		padding: 20px 18px 18px;
	}

	.bptfw-row {
		align-items: flex-start;
	}

	.bptfw-label {
		flex: 1 0 100%;
		min-width: 0;
	}

	.bptfw-value {
		flex: 1 1 auto;
	}
}
