/**
 * Xorro Wallet Payments frontend styles.
 */

.xdwp-gateway-icon {
	width: 32px;
	height: 32px;
	max-width: 32px;
	max-height: 32px;
	object-fit: contain;
	vertical-align: middle;
	display: inline-block;
}

.payment_method_xdwp img.xdwp-gateway-icon {
	max-width: 48px;
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
}

.payment_method_xdwp .xdwp-coin-option img {
	max-width: none;
}

.xdwp-blocks-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.xdwp-desc {
	margin: 0 0 12px;
	line-height: 1.4;
}

/* —— Checkout coin picker (Cryptoniq icon tiles) —— */

.xdwp-coins {
	border: 0;
	margin: 0;
	padding: 0;
}

.xdwp-coins legend {
	padding: 0;
	margin: 0 0 8px;
	font-weight: 600;
}

.xdwp-coin-grid {
	display: flex;
	flex-wrap: wrap;
	margin: -5px;
}

.xdwp-coin-option {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 48px;
	height: 54px;
	margin: 5px;
	padding: 0;
	cursor: pointer;
	border: 1px solid #ddd;
	border-radius: 5px;
	background-color: #f7f7f7;
	background-image: none;
	overflow: hidden;
	transition: border-color 0.35s ease, background-color 0.35s ease;
}

.xdwp-coin-option input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	appearance: none;
}

.xdwp-coin-option:hover,
.xdwp-coin-option:has(input:checked),
.xdwp-coin-option.is-selected {
	border-color: #000;
}

.xdwp-coin-option__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.xdwp-coin-option__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.xdwp-coin-option__icon img {
	width: 28px !important;
	height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	object-fit: contain !important;
	display: block;
}

.xdwp-coin-option__badge {
	position: absolute;
	top: -1px;
	right: -1px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px 0 5px 0;
	pointer-events: none;
	z-index: 1;
}

.xdwp-coin-option__badge img {
	width: 14px !important;
	height: 14px !important;
	max-width: 14px !important;
	max-height: 14px !important;
	object-fit: contain !important;
	display: block;
}

.xdwp-coin-option--text {
	width: auto;
	min-width: 48px;
	height: auto;
	min-height: 54px;
	padding: 8px 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
	color: #111;
}

.xdwp-coin-option__text {
	display: block;
	pointer-events: none;
}

.xdwp-quote {
	margin-top: 15px;
	font-weight: 700;
}

/* —— Payment details box (classic layout) —— */

.xdwp-box {
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #fafbfc;
	max-width: 640px;
	box-sizing: border-box;
}

.xdwp-box__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.xdwp-box__header h2 {
	margin: 0;
	font-size: 1.25rem;
}

.xdwp-box__timer {
	margin: 0;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: #b54708;
}

.xdwp-box__steps {
	margin: 0 0 1rem 1.1rem;
	padding: 0;
}

.xdwp-box__row {
	display: grid;
	gap: 1rem;
}

.xdwp-box__field {
	display: grid;
	gap: 0.35rem;
}

.xdwp-box__label {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.7;
}

.xdwp-box__value {
	display: inline-block;
	padding: 0.45rem 0.6rem;
	background: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 4px;
	word-break: break-all;
	font-size: 0.95rem;
}

.xdwp-box__address {
	font-size: 0.85rem;
}

.xdwp-box__fiat {
	font-size: 0.9rem;
	opacity: 0.8;
}

.xdwp-box__qr {
	margin-top: 1.25rem;
	text-align: center;
}

#xdwp-qrcode {
	display: inline-block;
	padding: 0.75rem;
	background: #fff;
	border-radius: 8px;
}

#xdwp-qrcode img,
#xdwp-qrcode canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

.xdwp-box__uri {
	margin: 0.5rem 0 0;
}

.xdwp-box__hint {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	opacity: 0.7;
}

.xdwp-box__status {
	margin-top: 1rem;
	font-weight: 600;
}

.xdwp-box__success {
	color: #027a48;
	font-weight: 600;
}

.xdwp-box__error {
	color: #b42318;
	font-weight: 600;
}

.xdwp-copy {
	justify-self: start;
	cursor: pointer;
}

.xdwp-copy.is-copied {
	opacity: 0.85;
}
