/**
 * SP Leads & Quotes — front styles.
 *
 * The account tabs reuse the theme's komet-* design system (loaded by the theme
 * / Elementor Kit), so this file only styles the bits the plugin injects: the
 * inquiry modal and small feedback states. RTL-first.
 *
 * @package Sitepro\LeadsQuotes
 */

.sp-lq-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba( 23, 53, 87, 0.55 );
}

.sp-lq-modal__box {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow: auto;
	padding: 28px 24px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.25 );
	direction: rtl;
}

/*
 * Scoped under the overlay (0,2,0): as a bare class the close button lost to the
 * theme's button reset ([type=button]: pink border, padding) and to the Elementor
 * Kit's `.elementor-kit-N button` fill, and rendered as a blue box over the product
 * name. It sits at the inline end (left in RTL), away from the title's start.
 */
.sp-lq-modal .sp-lq-modal__close {
	position: absolute;
	inset-inline-end: 10px;
	inset-block-start: 10px;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #444f50;
}

.sp-lq-modal .sp-lq-modal__close:hover,
.sp-lq-modal .sp-lq-modal__close:focus-visible {
	background: #eef2f5;
	color: #173557;
}

.sp-lq-modal .sp-lq-modal__product {
	padding-inline-end: 36px;
	margin-bottom: 14px;
}

.sp-lq-feedback {
	margin: 10px 0 0;
	min-height: 1.2em;
	font-size: 0.92em;
}

.sp-lq-feedback.is-error {
	color: #d83a2c;
}

.sp-lq-feedback.is-ok {
	color: #00727a;
}

.sp-lq-inquiry-btn,
.sp-lq-rfq-btn {
	cursor: pointer;
}

.sp-lq-detail,
.sp-lq-thread {
	margin-top: 20px;
}

/* Chat bubbles inside the account inquiry thread (piggybacks komet-timeline). */
.sp-lq-thread .aq-msg--mine .aq-bubble {
	border-inline-start: 3px solid #0069b4;
}

.sp-lq-thread .aq-msg--rep .aq-bubble {
	border-inline-start: 3px solid #7f8b8c;
}
