/* WooCommerce Quote Request Frontend Styles */

/* Request Quote Button */
.wcqr-request-quote-button {
	display: inline-block;
	margin-top: 15px;
}

.wcqr-request-quote-btn {
	display: inline-block;
	padding: 10px 20px;
	background-color: #0073aa;
	color: white;
	text-decoration: none;
	border-radius: 3px;
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

.wcqr-request-quote-btn:hover {
	background-color: #005a87;
	color: white;
	text-decoration: none;
}

/* Modal Styles */
.wcqr-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
}

.wcqr-modal.active {
	display: block;
}

.wcqr-modal-content {
	background-color: #fefefe;
	margin: 10% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 90%;
	max-width: 500px;
	border-radius: 5px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.wcqr-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
}

.wcqr-modal-header h2 {
	margin: 0;
	font-size: 18px;
}

.wcqr-modal-close {
	font-size: 28px;
	font-weight: bold;
	color: #aaa;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

.wcqr-modal-close:hover {
	color: #000;
}

.wcqr-form-group {
	margin-bottom: 15px;
}

.wcqr-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.wcqr-form-group input,
.wcqr-form-group textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 14px;
	font-family: inherit;
}

.wcqr-form-group input:focus,
.wcqr-form-group textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.wcqr-form-group textarea {
	resize: vertical;
	min-height: 100px;
}

.wcqr-form-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
}

.wcqr-form-actions button {
	padding: 10px 20px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s;
}

.wcqr-form-actions .button-primary {
	background-color: #0073aa;
	color: white;
}

.wcqr-form-actions .button-primary:hover {
	background-color: #005a87;
}

.wcqr-form-actions .button-secondary {
	background-color: #ddd;
	color: #333;
}

.wcqr-form-actions .button-secondary:hover {
	background-color: #ccc;
}

/* Quote View Styles */
.woocommerce-MyAccount-quote {
	margin-top: 20px;
}

.woocommerce-MyAccount-quote h2 {
	margin-top: 30px;
	margin-bottom: 15px;
	font-size: 18px;
	font-weight: bold;
}

.woocommerce-MyAccount-quote h3 {
	margin-top: 20px;
	margin-bottom: 15px;
	font-size: 16px;
	font-weight: bold;
}

.woocommerce-MyAccount-quote table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.woocommerce-MyAccount-quote table th,
.woocommerce-MyAccount-quote table td {
	padding: 12px;
	border: 1px solid #ddd;
	text-align: left;
}

.woocommerce-MyAccount-quote table th {
	background-color: #f9f9f9;
	font-weight: bold;
}

.wcqr-quote-actions {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #ddd;
}

.wcqr-quote-actions button {
	margin-right: 10px;
	padding: 10px 20px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s;
}

.wcqr-accept-quote {
	background-color: #28a745;
	color: white;
}

.wcqr-accept-quote:hover {
	background-color: #218838;
}

.wcqr-decline-quote {
	background-color: #dc3545;
	color: white;
}

.wcqr-decline-quote:hover {
	background-color: #c82333;
}

/* Loading Spinner */
.wcqr-loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #0073aa;
	border-radius: 50%;
	animation: wcqr-spin 1s linear infinite;
	margin-left: 10px;
}

@keyframes wcqr-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.wcqr-message {
	padding: 12px;
	margin-bottom: 20px;
	border-radius: 3px;
	border-left: 4px solid;
}

.wcqr-message.success {
	background-color: #d4edda;
	border-color: #28a745;
	color: #155724;
}

.wcqr-message.error {
	background-color: #f8d7da;
	border-color: #dc3545;
	color: #721c24;
}

.wcqr-message.info {
	background-color: #d1ecf1;
	border-color: #17a2b8;
	color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
	.wcqr-modal-content {
		width: 95%;
		margin: 30% auto;
	}

	.woocommerce-MyAccount-quote table {
		font-size: 12px;
	}

	.woocommerce-MyAccount-quote table th,
	.woocommerce-MyAccount-quote table td {
		padding: 8px;
	}

	.wcqr-form-actions {
		flex-direction: column;
	}

	.wcqr-form-actions button {
		width: 100%;
	}
}
