/* Promofresh order form — minimal, unbranded base styles.
   Designed to be overridden/extended by your theme or Elementor's own styling;
   kept intentionally plain rather than guessing at your final Promofresh brand colours. */

.promofresh-order-app {
	max-width: 720px;
	margin: 0 auto;
	font-family: inherit;
}

.promofresh-step {
	margin-bottom: 2.5em;
	padding-bottom: 2em;
	border-bottom: 1px solid #e2e2e2;
}

.promofresh-step:last-child {
	border-bottom: none;
}

.promofresh-step h2 {
	font-size: 1.15em;
	margin-bottom: 0.75em;
}

.promofresh-template-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}

/*
 * Scoped under #promofresh-template-picker and marked !important on the
 * layout-critical properties, because Astra (and most themes) apply their
 * own global styling to native <button> elements — without this, the
 * theme's button rules can win on specificity and knock the label out of
 * the flex layout (it ends up floating outside the card instead of
 * centred underneath the image).
 */
#promofresh-template-picker .promofresh-template-card {
	position: relative !important;
	box-sizing: border-box !important;
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 8px;
	padding: 10px;
	cursor: pointer;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 6px;
	width: 100% !important;
	text-align: center !important;
	font-size: 0.85em;
	line-height: 1.3 !important;
	overflow: visible;
}

#promofresh-template-picker .promofresh-template-card img {
	position: static !important;
	display: block !important;
	max-width: 100%;
	width: auto;
	height: 80px;
	object-fit: contain;
	margin: 0 auto;
}

#promofresh-template-picker .promofresh-template-card .promofresh-template-label {
	position: static !important;
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	color: inherit !important;
	text-decoration: none !important;
	transform: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

#promofresh-template-picker .promofresh-template-card.is-selected {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.25);
}

.promofresh-upload-label {
	display: block;
	font-size: 0.85em;
	color: #555;
	margin-bottom: 6px;
}

.promofresh-logo-preview img {
	max-width: 160px;
	max-height: 160px;
	margin-top: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 4px;
	background: #fff;
}

.promofresh-tagline-field {
	margin-top: 14px;
}

.promofresh-order-app label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.9em;
}

.promofresh-order-app input[type="text"],
.promofresh-order-app input[type="email"],
.promofresh-order-app input[type="url"],
.promofresh-order-app input[type="number"],
.promofresh-order-app textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1em;
	box-sizing: border-box;
}

.promofresh-submit-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 14px 28px;
	font-size: 1.05em;
	border-radius: 6px;
	cursor: pointer;
}

.promofresh-submit-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.promofresh-error {
	background: #fdecea;
	color: #b32d2e;
	border: 1px solid #f5c2c0;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 14px;
}

.promofresh-confirmation {
	background: #eaf7ec;
	color: #256029;
	border: 1px solid #c3e6c9;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 14px;
}

.promofresh-fine-print {
	font-size: 0.8em;
	color: #777;
	margin-top: 10px;
}
