/* OVAN Order Form — frontend */

:root {
	--ovan-of-accent: #F5821F;
	--ovan-of-button: #7B0D1D;
	--ovan-of-text: #111111;
	--ovan-of-panel: #FFFFFF;
	--ovan-of-radius: 999px;
}

/* ---------- Butoane ---------- */

.ovan-of-actions {
	margin: 1.25em 0;
}

.ovan-of-btn,
.ovan-of-loop-btn {
	display: inline-block;
	background: var(--ovan-of-button);
	color: #fff;
	border: 0;
	border-radius: var(--ovan-of-radius);
	padding: 1em 2.4em;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, filter .15s ease;
}

.ovan-of-btn:hover,
.ovan-of-btn:focus,
.ovan-of-loop-btn:hover,
.ovan-of-loop-btn:focus {
	background: var(--ovan-of-button);
	color: #fff;
	filter: brightness(1.15);
	transform: translateY(-1px);
}

.ovan-of-btn:focus-visible,
.ovan-of-loop-btn:focus-visible {
	outline: 3px solid var(--ovan-of-text);
	outline-offset: 3px;
}

.ovan-of-warning {
	background: #fff3cd;
	border-left: 4px solid #b32d2e;
	padding: .75em 1em;
	font-size: .9em;
}

/* ---------- Ascunde selectorul de bucati ---------- */

.ovan-of-hide-qty .single-product .quantity,
.ovan-of-hide-qty .product .summary .quantity,
.ovan-of-hide-qty .wc-block-components-quantity-selector,
.ovan-of-hide-qty .single_add_to_cart_button {
	display: none !important;
}

/* ---------- Blocksy: actiuni pe cardul de produs ---------- */

/* Ascunde iconita de cos din hover-ul cardului si din quick view. */
.ovan-of-product .ct-woo-card-actions [data-cart],
.ovan-of-product .ct-cart-actions,
.ovan-of-product .ct-product-add-to-cart,
.ovan-of-product .add_to_cart_button.ajax_add_to_cart,
.ovan-of-product .ct-quick-view-modal form.cart,
.ovan-of-product .quantity {
	display: none !important;
}

/* Butonul din card sa preia stilul modulului. */
.ovan-of-product .ovan-of-loop-btn {
	padding: .85em 1.9em;
	font-size: .95rem;
}

/* ---------- Modal ---------- */

.ovan-of-modal[hidden] {
	display: none;
}

.ovan-of-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 16px;
	overflow-y: auto;
}

.ovan-of-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, .68);
	backdrop-filter: blur(2px);
}

.ovan-of-modal__panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	background: var(--ovan-of-panel);
	color: var(--ovan-of-text);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	animation: ovan-of-in .22s ease-out;
}

@keyframes ovan-of-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ovan-of-modal__panel { animation: none; }
}

.ovan-of-modal__head {
	background: var(--ovan-of-accent);
	padding: 18px 56px 18px 26px;
	position: relative;
}

.ovan-of-modal__title {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.2;
	font-weight: 800;
	color: var(--ovan-of-text);
}

.ovan-of-modal__close {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 17, 17, .12);
	color: var(--ovan-of-text);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.ovan-of-modal__close:hover {
	background: rgba(17, 17, 17, .22);
}

.ovan-of-modal__body {
	padding: 24px 26px 28px;
}

.ovan-of-modal__intro {
	margin: 0 0 18px;
	font-size: .95rem;
	opacity: .8;
}

/* ---------- Contact Form 7 in modal ---------- */

.ovan-of-modal__body .wpcf7 p {
	margin: 0 0 14px;
}

.ovan-of-modal__body .wpcf7 label {
	display: block;
	font-weight: 600;
	font-size: .9rem;
	margin-bottom: 6px;
}

.ovan-of-modal__body .wpcf7 input[type="text"],
.ovan-of-modal__body .wpcf7 input[type="email"],
.ovan-of-modal__body .wpcf7 input[type="tel"],
.ovan-of-modal__body .wpcf7 input[type="number"],
.ovan-of-modal__body .wpcf7 select,
.ovan-of-modal__body .wpcf7 textarea {
	width: 100%;
	border: 2px solid rgba(17, 17, 17, .15);
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 1rem;
	background: #fff;
	color: var(--ovan-of-text);
	box-sizing: border-box;
}

.ovan-of-modal__body .wpcf7 input:focus,
.ovan-of-modal__body .wpcf7 select:focus,
.ovan-of-modal__body .wpcf7 textarea:focus {
	border-color: var(--ovan-of-accent);
	outline: none;
}

.ovan-of-modal__body .wpcf7 input[readonly] {
	background: rgba(17, 17, 17, .05);
	cursor: default;
}

.ovan-of-modal__body .wpcf7 textarea {
	min-height: 110px;
	resize: vertical;
}

.ovan-of-modal__body .wpcf7 input[type="submit"] {
	background: var(--ovan-of-button);
	color: #fff;
	border: 0;
	border-radius: var(--ovan-of-radius);
	padding: 1em 2.4em;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	width: 100%;
}

.ovan-of-modal__body .wpcf7 input[type="submit"]:hover {
	filter: brightness(1.15);
}

.ovan-of-modal__body .wpcf7-spinner {
	display: block;
	margin: 8px auto 0;
}

.ovan-of-modal__body .wpcf7-not-valid-tip {
	font-size: .82rem;
	color: #b32d2e;
	margin-top: 4px;
}

.ovan-of-modal__body .wpcf7-response-output {
	margin: 16px 0 0 !important;
	border-radius: 10px;
	padding: 12px 14px !important;
	font-size: .9rem;
}

/* ---------- Blocare scroll ---------- */

body.ovan-of-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.ovan-of-modal { padding: 0; align-items: stretch; }
	.ovan-of-modal__panel { max-width: none; border-radius: 0; min-height: 100%; }
}
