/**
 * assets/css/quote-modal.css
 * Lightweight custom modal — no external library dependency.
 */




.wcc-add-quote-btn {
	cursor: pointer;
}

.wcc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none; 
}

.wcc-modal.wcc-modal-open {
	display: block;
}

.wcc-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.5 );
}

.wcc-modal-panel {
	position: relative;
	max-width: 480px;
	width: calc( 100% - 40px );
	margin: 5vh auto;
	background: #fff;
	border-radius: 6px;
	padding: 28px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.2 );
}

.wcc-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.wcc-modal-panel h2 {
	margin-top: 0;
	margin-bottom: 20px;
}

.wcc-field {
	margin-bottom: 14px;
}

.wcc-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.wcc-field input,
.wcc-field textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.wcc-field-submit {
	margin-top: 20px;
}

.wcc-form-message {
	margin-top: 12px;
	font-weight: 600;
}

.wcc-form-message.wcc-success {
	color: #1a7a1a;
}

.wcc-form-message.wcc-error {
	color: #c0392b;
}

body.wcc-modal-active {
	overflow: hidden;
}


.wcc-submit-quote.wcc-is-loading {
	position: relative;
	padding-right: 34px;
	pointer-events: none;
	opacity: 0.85;
}

.wcc-submit-quote.wcc-is-loading::after {
	content: '';
	position: absolute;
	right: 12px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: wcc-spin 0.7s linear infinite;
}

@keyframes wcc-spin {
	to { transform: rotate( 360deg ); }
}