/* Legal Requisites block — ported from mockup contacts-page design. */

.wdm-requisites {
	margin: 0 0 64px 0;
}

.wdm-requisites .block-heading {
	margin: 0 0 20px 0;
	line-height: 32px;
	font-weight: 700;
	font-size: 32px;
	color: #323232;
	text-align: left;
	text-transform: uppercase;
}

@media screen and (max-width: 768px) {
	.wdm-requisites .block-heading {
		font-size: 26px;
	}
}

.wdm-requisites__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.wdm-requisites-item {
	padding: 20px;
	background-color: #fff;
	border-radius: 8px;
}

.wdm-requisites-item__head {
	display: flex;
	align-items: center;
	gap: 0 8px;
	padding: 0 0 12px 0;
	margin-bottom: 12px;
	border-bottom: 1px solid #E6E6E6;
}

.wdm-requisites-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: url('../images/icons/contacts-item-icon-frame.svg') center center no-repeat;
}

.wdm-requisites-item__company,
.wdm-requisites-item__subtitle {
	display: block;
	line-height: normal;
	font-size: 14px;
	color: #878484;
}

.wdm-requisites-item__subtitle {
	margin-top: 2px;
	font-size: 16px;
	font-weight: 600;
	color: #323232;
}

.wdm-requisites-item__row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0 30px;
}

.wdm-requisites-item__row:not(:last-child) {
	margin-bottom: 14px;
}

.wdm-requisites-item__field {
	display: flex;
	flex-direction: column;
	gap: 4px 0;
	line-height: normal;
	font-size: 14px;
	color: #323232;
}

.wdm-requisites-item__label {
	margin: 0 0 2px 0;
	font-weight: 600;
}

.wdm-requisites-item__copy {
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: url('../images/icons/copy-icon.svg') center center no-repeat;
	transition: opacity 0.3s ease-in-out;
}

.wdm-requisites-item__copy::after {
	content: "Nokopēts!";
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	padding: 4px 8px;
	background-color: #005CA9;
	color: #fff;
	font-size: 12px;
	opacity: 0;
	white-space: nowrap;
	pointer-events: none;
	border-radius: 4px;
	transition: opacity 0.15s ease;
	transform: translateX(-50%);
}

.wdm-requisites-item__copy.is-copied::after {
	opacity: 1;
}

.wdm-requisites-item__copy:hover {
	opacity: 0.7;
}

@media screen and (max-width: 768px) {
	.wdm-requisites {
		margin: 0 0 32px 0;
	}

	.wdm-requisites__grid {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 575px) {
	.wdm-requisites__grid {
		gap: 8px 0;
	}
}
