/* Quote CTA button, modal, and mobile bar */

.ddurys-quote-cta {
	margin-top: 1.25rem;
}

.ddurys-quote-cta .ddurys-quote-open,
.ddurys-quote-loop-cta .ddurys-quote-loop-link {
	width: 100%;
	text-align: center;
}

.ddurys-quote-cta .ddurys-quote-open {
	background-color: var(--wd-primary-color, #db3340);
	border-color: var(--wd-primary-color, #db3340);
	color: #fff !important;
	font-weight: 600;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ddurys-quote-cta .ddurys-quote-open:hover,
.ddurys-quote-cta .ddurys-quote-open:focus {
	background-color: var(--wd-primary-color, #db3340);
	border-color: var(--wd-primary-color, #db3340);
	color: #fff !important;
	opacity: 0.88;
}

.ddurys-quote-loop-cta {
	margin-top: 0.75rem;
}

.ddurys-quote-panel {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.ddurys-quote-panel[hidden] {
	display: none !important;
}

.ddurys-quote-panel__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.ddurys-quote-panel__dialog {
	position: relative;
	z-index: 1;
	width: min(560px, calc(100% - 2rem));
	max-height: calc(100vh - 2rem);
	overflow: auto;
	margin: 1rem auto;
	padding: 1.5rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.ddurys-quote-panel__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.ddurys-quote-panel__lead {
	color: #555;
	margin-bottom: 1rem;
}

.ddurys-quote-region-selector {
	margin-bottom: 1.5rem;
}

.ddurys-quote-region-radios {
	display: flex;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.ddurys-quote-region-label {
	flex: 1;
	display: block;
	cursor: pointer;
	margin-bottom: 0;
}

.ddurys-quote-region-label input[type="radio"] {
	display: none;
}

.ddurys-quote-region-label span {
	display: block;
	padding: 0.75rem 1rem;
	text-align: center;
	background: #f5f5f5;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.ddurys-quote-region-label input[type="radio"]:checked + span {
	background: #fff;
	border-color: var(--wd-primary-color, #db3340);
	color: var(--wd-primary-color, #db3340);
	box-shadow: 0 4px 12px rgba(219, 51, 64, 0.15);
}

.ddurys-quote-region-hint {
	font-size: 0.85rem;
	color: #777;
	margin: 0;
}

.ddurys-quote-channels {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.ddurys-quote-channel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	padding: 0.9rem 1rem;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fafafa;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.ddurys-quote-channel:hover {
	border-color: #999;
	background: #f3f3f3;
}

.ddurys-quote-channel--whatsapp {
	border-color: #25d366;
}

.ddurys-quote-channel--phone {
	border-color: #2563eb;
}

.ddurys-quote-channel__value {
	font-size: 0.9rem;
	color: #666;
}

.ddurys-quote-form-wrap {
	border-top: 1px solid #eee;
	padding-top: 1rem;
}

.ddurys-quote-form-fields .ddurys-input {
	width: 100%;
}

.ddurys-quote-mobile-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	display: none;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	padding: 0.75rem;
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid #ddd;
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.ddurys-quote-mobile-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	border: 1px solid #ccc;
	background: #fff;
	text-decoration: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.ddurys-quote-mobile-bar__btn--whatsapp {
	border-color: #25d366;
}

.ddurys-quote-mobile-bar__btn--quote {
	background: var(--wd-primary-color, #db3340);
	color: #fff;
	border-color: var(--wd-primary-color, #db3340);
	font-weight: 600;
}

html.ddurys-quote-modal-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.ddurys-quote-mobile-bar {
		display: grid;
	}

	body.single-product {
		padding-bottom: 5rem;
	}
}

@media (min-width: 769px) {
	.ddurys-quote-panel__dialog {
		margin-top: 8vh;
	}
}
