/**
 * Isolated styles for Make an Offer button & modal on single product pages.
 */

.eugene-make-offer-wrap {
	margin-top: 10px;
	width: 100%;
	clear: both;
}

.eugene-make-offer-trigger {
	width: 100%;
	padding: 11px 18px !important;
	background: #ffffff !important;
	color: #0284c7 !important;
	border: 1.5px solid #0284c7 !important;
	border-radius: 4px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	text-align: center;
}

.eugene-make-offer-trigger:hover {
	background: #f0f9ff !important;
	color: #0369a1 !important;
}

.eugene-make-offer-trigger.is-offer-sent {
	background: #f0fdf4 !important;
	color: #166534 !important;
	border-color: #16a34a !important;
}

.eugene-retract-confirm {
	margin-top: 8px;
	padding: 10px 12px;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 6px;
}

.eugene-retract-prompt {
	margin: 0 0 8px 0 !important;
	font-size: 13px !important;
	font-weight: 600;
	color: #92400e !important;
}

.eugene-retract-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.eugene-retract-keep-btn {
	flex: 1;
	background: #ffffff !important;
	color: #334155 !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 4px !important;
	font-size: 12.5px !important;
	padding: 6px 10px !important;
	cursor: pointer;
}

.eugene-retract-confirm-btn {
	flex: 1;
	background: #dc2626 !important;
	color: #ffffff !important;
	border: 1px solid #dc2626 !important;
	border-radius: 4px !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	padding: 6px 10px !important;
	cursor: pointer;
}

.eugene-retract-feedback {
	margin-top: 8px;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 12.5px;
}

.eugene-retract-feedback.is-success {
	background: #f0fdf4;
	border: 1px solid #86efac;
	color: #166534;
}

.eugene-retract-feedback.is-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.eugene-make-offer-disclaimer {
	margin: 6px 0 0 0 !important;
	font-size: 11.5px !important;
	line-height: 1.4 !important;
	color: #64748b !important;
}

/* Modal */
.eugene-mo-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.eugene-mo-modal.is-open {
	display: flex;
}

.eugene-mo-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
}

.eugene-mo-dialog {
	position: relative;
	z-index: 1;
	background: #ffffff;
	width: 100%;
	max-width: 480px;
	max-height: 92vh;
	overflow-y: auto;
	border-radius: 8px;
	padding: 22px 24px;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
	box-sizing: border-box;
}

.eugene-mo-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: 0;
	font-size: 24px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 4px 8px;
}

.eugene-mo-close:hover {
	color: #0f172a;
}

.eugene-mo-title {
	margin: 0 0 6px 0 !important;
	font-size: 20px !important;
	color: #0f172a !important;
}

.eugene-mo-product-meta {
	margin: 0 0 14px 0 !important;
	font-size: 13px !important;
	color: #334155 !important;
}

.eugene-mo-list-price {
	color: #64748b;
	font-weight: 400;
}

.eugene-mo-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.eugene-mo-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.eugene-mo-field {
	margin-bottom: 12px;
}

.eugene-mo-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 4px;
}

.eugene-mo-field .required {
	color: #dc2626;
}

.eugene-mo-field input,
.eugene-mo-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	font-size: 14px;
}

.eugene-mo-total-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 12px;
	font-size: 13.5px;
	color: #0f172a;
}

.eugene-mo-total-box strong {
	font-size: 16px;
	color: #0284c7;
}

.eugene-mo-terms {
	margin: 0 0 12px 0 !important;
	font-size: 11.5px !important;
	line-height: 1.4 !important;
	color: #64748b !important;
}

.eugene-mo-notice {
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 12px;
}

.eugene-mo-notice.is-success {
	background: #f0fdf4;
	border: 1px solid #86efac;
	color: #166534;
}

.eugene-mo-notice.is-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.eugene-mo-submit-btn {
	width: 100%;
	padding: 11px 16px !important;
	background: #0284c7 !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer;
}

.eugene-mo-submit-btn:hover:not(:disabled) {
	background: #0369a1 !important;
}

.eugene-mo-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

@media (max-width: 768px) {
	.eugene-mo-row-2 {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.eugene-mo-dialog {
		padding: 18px 16px;
	}
}
