/* Platecraft Addons – Price Calculator. The look of the default design;
   every color, size and box below can be changed in the Style tab. */

/* Like Elementor's own Divider: in a container the widget takes the whole
   width (or grows in a row), not only the width of its content; Advanced →
   Width still decides when it is set. */
.e-con-inner > .elementor-widget-plateful-price-calculator,
.e-con > .elementor-widget-plateful-price-calculator {
	width: var(--container-widget-width, 100%);
	--flex-grow: var(--container-widget-flex-grow);
}

.pcalc {
	--pcalc-panel-w: 38%;
	--pcalc-line: #eceef2;
	--pcalc-step-space: 22px;
	--pcalc-mark: #c3c8d2;
	--pcalc-mark-size: 18px;
	--pcalc-glow: rgba(45, 212, 191, 0.28);
	--pcalc-glow-size: 420px;
	--pcalc-glow-x: 100%;
	--pcalc-glow-y: 100%;
	--pcalc-sticky-top: 24px;
	display: grid;
	grid-template-columns: var(--pcalc-steps-w, minmax(0, 1fr)) var(--pcalc-panel-w);
	overflow: hidden;
	border: 1px solid #e6e8ee;
	border-radius: 18px;
	background-color: #fff;
	box-shadow: var(--pcalc-box-shadow, 0 24px 60px -32px rgba(15, 23, 42, 0.35));
	color: #0f1222;
}

/* ---------- Questions ----------
   A grid (Layout → Questions per Row); each question a grid too, so the
   question can stand beside its choices (Layout → Question). */
.pcalc__steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	column-gap: var(--pcalc-qcol-gap, 40px);
	min-width: 0;
	padding: 34px 40px;
	box-shadow: var(--pcalc-steps-shadow, none);
}
.pcalc__step {
	display: grid;
	grid-template-columns: var(--pcalc-step-cols, minmax(0, 1fr));
	align-items: var(--pcalc-step-align, stretch);
	column-gap: var(--pcalc-title-gap, 24px);
	min-width: 0;
	padding: var(--pcalc-step-pad, var(--pcalc-step-space)) 0;
}
.pcalc__step:first-child {
	padding-top: 0;
}
.pcalc__step:last-child {
	padding-bottom: 0;
}
.pcalc-lines-yes .pcalc__step + .pcalc__step {
	border-top: var(--pcalc-step-line, 1px) solid var(--pcalc-line);
}
.pcalc__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: var(--pcalc-title-mb, var(--pcalc-title-space, 14px));
}
.pcalc__title-text {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}
.pcalc__num {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: #e8f0ff;
	color: #2563eb;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

/* ---------- Choices ---------- */
.pcalc__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.pcalc__option {
	position: relative;
	display: inline-flex;
	flex: var(--pcalc-opt-grow, 0) 1 auto;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin: 0;
	padding: 9px 14px;
	border: 1px solid #dfe3ea;
	border-radius: 6px;
	background-color: #fff;
	box-shadow: var(--pcalc-option-shadow, none);
	color: #1f2430;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	user-select: none;
}
.pcalc__option:hover:not(.is-selected) {
	border-color: #9aa3b2;
	box-shadow: var(--pcalc-option-hover-shadow, var(--pcalc-option-shadow, none));
}
.pcalc__option.is-selected {
	border-color: #0b0d12;
	background-color: #0b0d12;
	box-shadow: var(--pcalc-chosen-shadow, var(--pcalc-option-shadow, none));
	color: #fff;
}
/* The real radio / checkbox stays in the page for keyboards and screen readers. */
.pcalc__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}
/* A ring for the keyboard only, not after a click. */
.pcalc__option:has(.pcalc__input:focus-visible) {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}
.pcalc__option-text {
	min-width: 0;
}
.pcalc__price {
	margin-left: auto;
	padding-left: 6px;
	color: #6b7280;
	font-size: 0.9em;
	font-weight: 500;
	white-space: nowrap;
}
.pcalc__option.is-selected .pcalc__price {
	color: rgba(255, 255, 255, 0.75);
}

/* List: circles and boxes instead of buttons. */
.pcalc__step--list .pcalc__options {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.pcalc__step--list .pcalc__option,
.pcalc__step--list .pcalc__option.is-selected,
.pcalc__step--list .pcalc__option:hover:not(.is-selected) {
	padding: 0;
	border-color: transparent;
	background: none;
	box-shadow: none;
	color: inherit;
}
.pcalc__mark {
	position: relative;
	flex: 0 0 auto;
	width: var(--pcalc-mark-size);
	height: var(--pcalc-mark-size);
	border: 2px solid var(--pcalc-mark);
	border-radius: 50%;
	box-sizing: border-box;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pcalc__mark--box {
	border-radius: 4px;
}
.pcalc__option.is-selected .pcalc__mark {
	--pcalc-mark: #0b0d12;
	border-width: calc(var(--pcalc-mark-size) * 0.3);
}
.pcalc__option.is-selected .pcalc__mark--box {
	border-width: 2px;
	background-color: var(--pcalc-mark);
}
.pcalc__option.is-selected .pcalc__mark--box::after {
	content: "";
	position: absolute;
	top: 12%;
	left: 32%;
	width: 26%;
	height: 50%;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Dropdown. */
.pcalc__select {
	width: 100%;
	max-width: 420px;
	min-height: 40px;
	padding: 9px 14px;
	border: 1px solid #dfe3ea;
	border-radius: 6px;
	background-color: #fff;
	color: #1f2430;
	font: inherit;
	font-size: 13px;
}

/* ---------- Estimate panel ---------- */
.pcalc__result {
	position: relative;
	z-index: 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
	order: var(--pcalc-order, 0);
	padding: 32px;
	overflow: hidden;
	/* The gradient is the Style tab's default (Estimate Panel → Background). */
	background-color: #0b1220;
	box-shadow: var(--pcalc-panel-shadow, none);
	color: #fff;
}
.pcalc-glow-yes .pcalc__result::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: var(--pcalc-glow-y);
	left: var(--pcalc-glow-x);
	width: var(--pcalc-glow-size);
	height: var(--pcalc-glow-size);
	border-radius: 50%;
	background: radial-gradient(circle, var(--pcalc-glow) 0%, transparent 65%);
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.pcalc__label {
	display: block;
	margin-bottom: 14px;
	color: #c8d0dc;
	font-size: 13px;
	font-weight: 500;
}
.pcalc__amount {
	margin-bottom: 10px;
	color: #fff;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.pcalc__note {
	margin: 0 0 6px;
	color: #aab3c2;
	font-size: 12px;
	line-height: 1.5;
}
.pcalc__summary {
	margin: 18px 0 22px;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
/* Wrapping on, so align-content keeps the text in the middle of a taller Row Height. */
.pcalc__row {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.pcalc__row dt,
.pcalc__row dd {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}
.pcalc__row dt {
	color: #aab3c2;
}
.pcalc__row dd {
	flex: 1 1 0;
	min-width: 0;
	color: #fff;
	font-weight: 600;
	text-align: right;
}

/* ---------- Button ---------- */
/* Full width by default; Style → Button → Alignment changes align-self.
   The button is also a Creative Button (.pcb, creative-button.css loads
   first): its animations, layers and shadow rule, with these values. */
.pcalc__button {
	--pcb-speed: 0.3s;
	--pcb-ease: ease;
	--pcb-gap: 10px;
	--pcb-icon: 0.95em;
	--pcb-fx: transparent;
	--pcb-glow: rgba(59, 116, 255, 0.6);
	--pcb-line-c: #93c5fd;
	--pcb-depth: #1e3a8a;
	--pcb-gb1: #3b74ff;
	--pcb-gb2: #22d3ee;
	--pcb-gb3: #a78bfa;
	/* Shadows go through the Creative Button's two-class rule: Elementor
	   removes box shadows of links with ".elementor a", stronger than one class. */
	--pcb-button-shadow: var(--pcalc-button-shadow, 0 10px 28px -8px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25));
	--pcb-button-shadow-h: var(--pcalc-button-shadow-h, var(--pcalc-button-shadow, 0 14px 32px -8px rgba(37, 99, 235, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25)));
	display: inline-flex;
	align-self: stretch;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 14px 22px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	background-color: #1d4ed8;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}
.pcalc__button:hover,
.pcalc__button:focus-visible {
	color: #fff;
	text-decoration: none;
}
/* Hover Background "None": the hover background simply fades in. */
.pcalc__button.pcb--bg-none .pcb__fx {
	display: block;
}
.pcalc__button.pcb--bg-none:is(:hover, :focus-visible) .pcb__fx {
	opacity: 1;
}
/* Without a Hover Text animation a long text may wrap. */
.pcalc__button.pcb--text-none .pcb__text {
	white-space: normal;
}
.pcalc__foot {
	margin: 12px 0 0;
	color: #8d97a8;
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
}

/* Below the questions on tablets and phones (the Layout setting changes it). */
@media (max-width: 1024px) {
	.pcalc {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 767px) {
	.pcalc__steps,
	.pcalc__result {
		padding: 24px 20px;
	}
	.pcalc__amount {
		font-size: 32px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.pcalc__option,
	.pcalc__button {
		transition: none;
	}
}
