/* VMH Tarjoa tuotteesta – etusivun tyylit */

.vmh-tarjoa-overlay[hidden],
.vmh-tarjoa-dialog [hidden],
.vmh-tarjoa-hint[hidden] {
	display: none !important;
}

.vmh-tarjoa-button {
	display: inline-block;
	cursor: pointer;
}

.woocommerce ul.products li.product .vmh-tarjoa-button--loop {
	margin-top: .35em;
}

.vmh-tarjoa-single {
	margin: 1em 0 1.5em;
}

.vmh-tarjoa-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 16px;
	background: rgba(0, 0, 0, .6);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.vmh-tarjoa-overlay[hidden] {
	display: none;
}

.vmh-tarjoa-dialog {
	position: relative;
	width: 100%;
	max-width: 480px;
	background: #fff;
	color: #23282d;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
	padding: 28px 26px 22px;
	font-size: 15px;
	line-height: 1.5;
}

.vmh-tarjoa-dialog h2 {
	margin: 0 0 .35em;
	font-size: 1.5em;
	line-height: 1.2;
}

.vmh-tarjoa-close {
	position: absolute;
	top: 6px;
	right: 10px;
	background: none;
	border: 0;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	color: #777;
	padding: 4px 8px;
}

.vmh-tarjoa-close:hover {
	color: #000;
}

.vmh-tarjoa-product {
	margin: 0 0 .6em;
	padding: 10px 12px;
	background: #f6f7f7;
	border-radius: 4px;
	font-size: .95em;
}

.vmh-tarjoa-product-name {
	display: block;
}

.vmh-tarjoa-product-price {
	display: block;
	color: #555;
}

.vmh-tarjoa-intro {
	margin: 0 0 1.1em;
	font-size: .92em;
	color: #555;
}

.vmh-tarjoa-field {
	margin: 0 0 .9em;
}

.vmh-tarjoa-field label {
	display: block;
	font-weight: 600;
	margin-bottom: .25em;
	font-size: .92em;
}

.vmh-tarjoa-field input[type="text"],
.vmh-tarjoa-field input[type="email"],
.vmh-tarjoa-field input[type="tel"],
.vmh-tarjoa-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 16px;
	background: #fff;
	color: #23282d;
}

.vmh-tarjoa-field--amount input {
	font-size: 20px !important;
	font-weight: 700;
}

.vmh-tarjoa-field input:focus,
.vmh-tarjoa-field textarea:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
	border-color: #2271b1;
}

.vmh-tarjoa-field .required {
	color: #b32d2e;
}

.vmh-tarjoa-hint {
	display: block;
	margin-top: .3em;
	font-size: .82em;
	color: #666;
	font-weight: 400;
}

.vmh-tarjoa-field--consent label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-weight: 400;
	font-size: .85em;
	line-height: 1.45;
}

.vmh-tarjoa-field--consent input {
	margin-top: 3px;
	flex: 0 0 auto;
}

.vmh-tarjoa-binding {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 .9em;
	padding: 11px 13px;
	background: #fff8e5;
	border: 1px solid #f0c36d;
	border-radius: 5px;
}

.vmh-tarjoa-binding p {
	margin: 0;
	font-size: .88em;
	line-height: 1.45;
	color: #6b4e00;
}

.vmh-tarjoa-binding-icon {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #d9a12b;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	line-height: 19px;
	text-align: center;
}

.vmh-tarjoa-field--binding {
	padding: 9px 11px;
	background: #f6f7f7;
	border-radius: 5px;
}

.vmh-tarjoa-field--binding label {
	font-size: .88em;
}

.vmh-tarjoa-actions {
	margin: 1.2em 0 0;
}

.vmh-tarjoa-actions .button {
	width: 100%;
	text-align: center;
}

.vmh-tarjoa-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

.vmh-tarjoa-notice {
	margin-top: 1em;
	padding: 10px 12px;
	border-left: 4px solid #b32d2e;
	background: #fcf0f1;
	font-size: .9em;
}

.vmh-tarjoa-success p {
	margin: 0 0 1em;
}

.vmh-tarjoa-invalid {
	border-color: #b32d2e !important;
}

body.vmh-tarjoa-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.vmh-tarjoa-dialog {
		padding: 24px 18px 18px;
	}
}

/* Julkinen tarjoussivu */
.vmh-offer-page {
	max-width: 640px;
	margin: 0 auto;
	padding: 32px 20px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #23282d;
	line-height: 1.55;
}
