/* Senzey Quote for WooCommerce — modal styles (RTL-first, logical properties). */

.senzey-quote-trigger {
	display: inline-block;
	margin-block-start: 10px;
}

html.sq-locked,
html.sq-locked body {
	overflow: hidden;
}

.sq-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	animation: sq-fade 0.15s ease-out;
}

@keyframes sq-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.sq-dialog {
	background: #fff;
	color: #222;
	border-radius: 8px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	position: relative;
	direction: inherit;
}

.sq-close {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-end: 12px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 4px 8px;
}

.sq-close:hover { color: #000; }

.sq-title {
	margin: 0 0 8px;
	font-size: 22px;
}

.sq-intro {
	margin: 0 0 18px;
	color: #555;
	font-size: 14px;
}

.sq-form { display: flex; flex-direction: column; gap: 12px; }

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

@media (max-width: 480px) {
	.sq-row { grid-template-columns: 1fr; }
}

.sq-field { display: flex; flex-direction: column; gap: 4px; }

.sq-label {
	font-size: 13px;
	font-weight: 500;
	color: #333;
}

.sq-input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	font: inherit;
	background: #fff;
}

.sq-input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

textarea.sq-input { resize: vertical; min-height: 70px; }

.sq-status {
	min-height: 0;
	font-size: 14px;
}

.sq-status.sq-error {
	background: #fdecea;
	color: #a8261d;
	padding: 10px 12px;
	border-radius: 4px;
	border-inline-start: 3px solid #a8261d;
}

.sq-status.sq-success {
	background: #e6f4ea;
	color: #1d643b;
	padding: 14px 16px;
	border-radius: 4px;
	border-inline-start: 3px solid #1d643b;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
}

.sq-pay-link {
	text-decoration: none;
	display: inline-block;
}

.sq-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-block-start: 6px;
}

.sq-submit, .sq-cancel { cursor: pointer; }
.sq-submit:disabled { opacity: 0.6; cursor: not-allowed; }
