/**
 * Solidarity Certificates — order popup.
 * Brand red #FF3131, navy #1c3a5e.
 */

.sol-cert-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(16, 24, 40, 0.62);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	overflow-y: auto;
	animation: sol-cert-fade 0.18s ease-out;
}

.sol-cert-overlay[hidden] {
	display: none;
}

@keyframes sol-cert-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

body.sol-cert-open {
	overflow: hidden;
}

.sol-cert-dialog {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 0.85fr;
	width: 100%;
	max-width: 880px;
	margin: auto;
	background: #fff;
	border-radius: 16px;
	max-height: calc(100vh - 40px);
	box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28);
	overflow: hidden;
	font-family: inherit;
	animation: sol-cert-rise 0.22s ease-out;
}

@keyframes sol-cert-rise {
	from { transform: translateY(14px); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

/* ------------------------------------------------------------------ */
/* left — the form                                                     */
/* ------------------------------------------------------------------ */

.sol-cert-form-side {
	order: 1;
	padding: 30px 30px 26px;
	overflow-y: auto;
}

.sol-cert-title {
	margin: 0 0 4px;
	font-size: 21px;
	line-height: 1.25;
	font-weight: 700;
	color: #1c3a5e;
}

.sol-cert-subtitle {
	margin: 0 0 16px;
	font-size: 14px;
	color: #7a869a;
}

.sol-cert-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.sol-cert-row {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
}

.sol-cert-row--half {
	grid-column: span 1;
}

.sol-cert-dialog .sol-cert-label {
	margin-bottom: 5px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #1c3a5e;
}

.sol-cert-dialog .sol-cert-input {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	line-height: 1.3;
	color: #1c3a5e;
	background: #fff;
	border: 1px solid #d8dee9;
	border-radius: 9px;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.sol-cert-dialog .sol-cert-input:focus {
	outline: none;
	border-color: #ff3131;
	box-shadow: 0 0 0 3px rgba(255, 49, 49, 0.14);
}

.sol-cert-hint {
	margin-top: 5px;
	font-size: 11.5px;
	color: #98a2b3;
}

.sol-cert-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sol-cert-error {
	grid-column: span 2;
	min-height: 0;
	font-size: 13px;
	color: #ff3131;
}

.sol-cert-error:empty {
	display: none;
}

.sol-cert-dialog .sol-cert-submit {
	grid-column: span 2;
	width: 100%;
	margin-top: 4px;
	padding: 13px 18px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.09em;
	color: #fff;
	background: #ff3131;
	border: 0;
	border-radius: 9px;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
}

.sol-cert-dialog .sol-cert-submit:hover:not(:disabled) {
	background: #e02424;
}

.sol-cert-dialog .sol-cert-submit:disabled {
	opacity: 0.42;
	cursor: not-allowed;
}

.sol-cert-note {
	grid-column: span 2;
	margin: 2px 0 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: #98a2b3;
}

/* ------------------------------------------------------------------ */
/* right — the chosen certificate                                      */
/* ------------------------------------------------------------------ */

.sol-cert-product {
	order: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 30px 28px;
	text-align: center;
	background: #f7f8fa;
	border-left: 1px solid #edf0f4;
}

.sol-cert-figure {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	margin-bottom: 16px;
}

.sol-cert-image {
	max-width: 100%;
	max-height: 190px;
	height: auto;
	border-radius: 6px;
}

.sol-cert-price {
	font-size: 25px;
	font-weight: 700;
	line-height: 1.2;
	color: #1c3a5e;
}

.sol-cert-desc {
	margin-top: 8px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #667085;
}

/* ------------------------------------------------------------------ */
/* close button                                                        */
/* ------------------------------------------------------------------ */

.sol-cert-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 26px;
	line-height: 1;
	color: #667085;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.sol-cert-close:hover {
	color: #1c3a5e;
	background: rgba(16, 24, 40, 0.06);
}

/* ------------------------------------------------------------------ */
/* confirmation screen                                                 */
/* ------------------------------------------------------------------ */

.sol-cert-dialog--message {
	display: block;
	max-width: 460px;
}

.sol-cert-message {
	padding: 44px 36px 34px;
	text-align: center;
}

.sol-cert-check {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	font-size: 28px;
	line-height: 56px;
	color: #fff;
	background: #ff3131;
	border-radius: 50%;
}

.sol-cert-message-text {
	margin: 10px 0 24px;
	font-size: 14.5px;
	line-height: 1.6;
	color: #667085;
}

.sol-cert-message .sol-cert-submit {
	max-width: 200px;
	margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* button we add where the page has none (jp)                          */
/* ------------------------------------------------------------------ */

.sol-cert-injected {
	margin-top: 18px;
	text-align: center;
}

a.sol-cert-button {
	display: inline-block;
	padding: 12px 30px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: #fff !important;
	background: #ff3131;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
}

a.sol-cert-button:hover {
	background: #e02424;
	color: #fff !important;
}

/* ------------------------------------------------------------------ */
/* mobile                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.sol-cert-overlay {
		padding: 0;
		align-items: flex-start;
	}

	.sol-cert-dialog {
		grid-template-columns: 1fr;
		min-height: 100%;
		max-height: none;
		border-radius: 0;
	}

	.sol-cert-dialog .sol-cert-input {
		font-size: 16px;
	}

	.sol-cert-form-side {
		overflow-y: visible;
	}

	.sol-cert-product {
		order: 1;
		padding: 26px 22px 20px;
		border-left: 0;
		border-bottom: 1px solid #edf0f4;
	}

	.sol-cert-figure {
		min-height: 0;
		margin-bottom: 12px;
	}

	.sol-cert-image {
		max-height: 150px;
	}

	.sol-cert-price {
		font-size: 23px;
	}

	.sol-cert-form-side {
		order: 2;
		padding: 24px 22px 34px;
	}

	.sol-cert-dialog--message {
		min-height: 0;
		margin: auto;
	}
}

/* ------------------------------------------------------------------ */
/* per-field validation                                                */
/* ------------------------------------------------------------------ */

.sol-cert-field-error {
	margin-top: 5px;
	font-size: 11.5px;
	line-height: 1.4;
	color: #ff3131;
}

.sol-cert-field-error:empty {
	display: none;
}

.sol-cert-dialog .sol-cert-input--error {
	border-color: #ff3131;
}

.sol-cert-dialog .sol-cert-input--error:focus {
	box-shadow: 0 0 0 3px rgba(255, 49, 49, 0.14);
}
