/**
 * Talore Make an Offer — Frontend Styles
 *
 * @package Talore_Make_An_Offer
 */

/* =========================================================
   Button
   ========================================================= */

.talore-mao-button {
	display: inline-block;
	margin-top: 10px;
	padding: 12px 24px;
	background-color: #ffffff;
	color: #7f54b3;
	border: 2px solid #7f54b3;
	border-radius: 4px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
	line-height: 1.4;
}

.talore-mao-button:hover,
.talore-mao-button:focus {
	background-color: #7f54b3;
	color: #ffffff;
	outline: none;
}

/* =========================================================
   Overlay / Backdrop
   ========================================================= */

.talore-mao-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba( 0, 0, 0, 0.55 );
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

/* =========================================================
   Popup card
   ========================================================= */

.talore-mao-popup {
	position: relative;
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 8px 32px rgba( 0, 0, 0, 0.18 );
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px 28px 24px;
	box-sizing: border-box;
}

/* =========================================================
   Close button
   ========================================================= */

.talore-mao-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	color: #888888;
	padding: 4px 6px;
	border-radius: 4px;
	transition: color 0.15s ease;
}

.talore-mao-close:hover,
.talore-mao-close:focus {
	color: #333333;
	outline: none;
}

/* =========================================================
   Title
   ========================================================= */

.talore-mao-popup__title {
	font-size: 1.4em;
	font-weight: 700;
	color: #333333;
	margin: 0 0 20px;
	padding: 0;
}

/* =========================================================
   Messages
   ========================================================= */

.talore-mao-message {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 0.95em;
	line-height: 1.5;
}

.talore-mao-message--success {
	background-color: #f0fdf4;
	border: 1px solid #86efac;
	color: #166534;
}

.talore-mao-message--error {
	background-color: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
}

/* =========================================================
   Form rows
   ========================================================= */

.talore-mao-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.talore-mao-row {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.talore-mao-row label {
	font-size: 0.88em;
	font-weight: 600;
	color: #444444;
}

.talore-mao-required {
	color: #c0392b;
	margin-left: 2px;
}

/* =========================================================
   Inputs
   ========================================================= */

.talore-mao-input {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #cccccc;
	border-radius: 4px;
	font-size: 0.95em;
	color: #333333;
	background-color: #ffffff;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.talore-mao-input:focus {
	border-color: #7f54b3;
	box-shadow: 0 0 0 2px rgba( 127, 84, 179, 0.2 );
	outline: none;
}

.talore-mao-textarea {
	resize: vertical;
	min-height: 80px;
}

.talore-mao-input--qty {
	max-width: 120px;
}

/* Price field */

.talore-mao-price-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}

.talore-mao-currency {
	font-size: 1em;
	font-weight: 600;
	color: #555555;
	flex-shrink: 0;
}

.talore-mao-input--price {
	flex: 1;
}

/* =========================================================
   Submit row
   ========================================================= */

.talore-mao-row--submit {
	margin-top: 4px;
}

.talore-mao-submit-btn {
	width: 100%;
	padding: 12px;
	background-color: #7f54b3 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 1em !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.talore-mao-submit-btn:hover,
.talore-mao-submit-btn:focus {
	background-color: #6a4199 !important;
	outline: none;
}

.talore-mao-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* =========================================================
   Responsive
   ========================================================= */

@media screen and ( max-width: 480px ) {
	.talore-mao-popup {
		padding: 24px 16px 20px;
	}
}
