/**
 * Deltec floor plan configurator
 *
 * Styling for the markup produced by [deltec_floor_plan_configurator].
 * Reproduces the old Elementor configurator (the .floor-plan-config-big-wrapper
 * section on the 360 Signature pages, plus .radio-form-big-choices and
 * .floor-plan-config-* in style.css):
 *
 *   >= 1024px  floor plan on the left (3fr), controls in a bordered column on
 *              the right (1fr), control groups stacked
 *   768-1023px floor plan above, control groups side by side below it
 *   <= 767px   floor plan above, control groups stacked below it
 *
 * The selected plan's details (features + download link) sit underneath in a
 * grey box styled after the old "Unique Features" container.
 */

.deltec-fp-config {
	margin: 0 auto;
}

/* style.css turns .floor-plan-config-big-wrapper into a 3fr/1fr grid for the
   old Elementor children. When it holds this shortcode instead, the shortcode
   does its own grid, so hand the wrapper back to Elementor's container display. */
@media only screen and (min-width: 1024px) {
	.floor-plan-config-big-wrapper:has(.deltec-fp-config) {
		display: var(--display, flex);
	}
}

/* --- Floor plan image -------------------------------------------------- */

.deltec-fp-config__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 40px;
	text-align: center;
}

.deltec-fp-config__image {
	display: block;
	width: auto;
	height: auto;
	max-width: min(700px, 100%);
	max-height: 700px;
	margin: 0 auto;
	transition: transform 0.3s ease-out;
}

.deltec-fp-config__rotate {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
	font-size: 1.4rem;
	line-height: 1;
	color: #54595f;
	background: none;
	border: 1px solid #ddd;
	cursor: pointer;
}

.deltec-fp-config__rotate:hover {
	border-color: #54595f;
}

/* --- Controls ---------------------------------------------------------- */

.deltec-fp-config__controls {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 21px 21px 0 21px;
}

.deltec-fp-config__heading {
	margin: 11px 0 5px 0;
	text-align: center;
	font-weight: 400;
	line-height: 1.2em;
	color: #54595f;
}

/* Tablet: the groups sit side by side under the floor plan. */
.deltec-fp-config__groups {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 10px;
	padding: 10px;
}

.deltec-fp-config__group {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 10px;
}

.deltec-fp-config__group-label {
	margin: 0 8px !important;
	padding: 0.5em;
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-bottom: 2px solid #54595f;
	color: #54595f;
}

.deltec-fp-config__options {
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
}

.deltec-fp-config__option {
	display: flex;
	position: relative;
	align-items: stretch;
	padding: 0;
}

.deltec-fp-config__option input[type="radio"] {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 70px;
	height: 70px;
	margin: 0;
	opacity: 0.01;
	z-index: 2;
	cursor: pointer;
}

.deltec-fp-config__option input[type="radio"] + label {
	margin: 0;
	padding: 0.5rem;
	width: 70px;
	height: 70px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	text-align: center;
	font-size: 0.8rem;
	background-color: #f0f0f0;
	border: 1px solid #ddd;
	transition: all 0.3s ease-out;
}

.deltec-fp-config__option input[type="radio"]:hover + label {
	border-color: #54595f;
}

.deltec-fp-config__option input[type="radio"]:checked + label {
	background-color: #54595f;
	color: #e0e0e0;
	z-index: 1;
}

.deltec-fp-config__option input[type="radio"]:disabled {
	cursor: not-allowed;
}

.deltec-fp-config__option input[type="radio"]:disabled + label {
	opacity: 0.5;
}

.deltec-fp-config__option-emphasis {
	font-size: 1.2rem;
	font-weight: 600;
}

/* "type": "checkbox" controls: a plain checkbox and its label, on a row of
   their own. */

.deltec-fp-config__group--checkbox {
	flex-basis: 100%;
}

.deltec-fp-config__option--checkbox {
	align-items: center;
	gap: 0.5rem;
}

.deltec-fp-config__option--checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
	accent-color: #54595f;
}

.deltec-fp-config__option--checkbox label {
	margin: 0;
	color: #54595f;
	cursor: pointer;
}

.deltec-fp-config__option--checkbox input[type="checkbox"]:disabled,
.deltec-fp-config__option--checkbox input[type="checkbox"]:disabled + label {
	cursor: not-allowed;
	opacity: 0.5;
}

.deltec-fp-config--summit .deltec-fp-config__group[data-control-key="wing_configuration"] .deltec-fp-config__option label,
.deltec-fp-config--crest .deltec-fp-config__group[data-control-key="wing_configuration"] .deltec-fp-config__option label {
	width: 100px;
}

.deltec-fp-config--refuge .deltec-fp-config__group .deltec-fp-config__option label,
.deltec-fp-config--sanctuary .deltec-fp-config__group .deltec-fp-config__option label {
	width: 100px;
	height: 100px;
}


/* --- Selected plan details --------------------------------------------- */

.deltec-fp-config__details {
	margin: 0 auto;
	padding: 33px;
	background-color: #f6f6f6;
	border-radius: 22px;
}

.deltec-fp-config__plan-title {
	margin: 14px 0 4px 0;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 1.52px;
	text-transform: uppercase;
	color: #90af48;
}

.deltec-fp-config__plan-name {
	display: block;
}

.deltec-fp-config__features {
	list-style: none;
	margin: 1rem 0 0 0;
	padding: 0;
	columns: 2;
	column-gap: 2rem;
	font-size: 17px;
}

.deltec-fp-config__feature {
	position: relative;
	break-inside: avoid;
	padding: 7px 0 7px 26px;
	border-top: 1px solid #ddd;
	line-height: 1.5;
}

/* Branded spiral bullet, matching the Elementor icon list on production
   (17px icon, 6px down from the top of the first line). */
.deltec-fp-config__feature::before {
	content: "";
	position: absolute;
	top: 13px;
	left: 0;
	width: 17px;
	height: 17px;
	background: url("/wp-content/uploads/2024/01/deltec-spirals.svg") no-repeat center / contain;
}

.deltec-fp-config__download {
	margin: 1.5rem 0 0 0;
}

.deltec-fp-config__download-link {
	display: inline-block;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: #54595f;
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.11);
	text-decoration: none;
	transition: transform 0.3s;
}

.deltec-fp-config__download-link:hover,
.deltec-fp-config__download-link:focus {
	color: #54595f;
	transform: translateY(-8px);
}

.deltec-fp-config__details .deltec-fp-config__plan-title .deltec-fp-config__plan-name {
    color: #54595F;
    font-size: 27px;
    font-family: lo_reg, serif;
}


/* --- Desktop: floor plan left, controls column right ------------------- */

@media only screen and (min-width: 1024px) {
	.deltec-fp-config {
		display: grid;
		grid-template-columns: 3fr 1fr;
		grid-template-areas:
			"stage   controls"
			"details details";
	}

	.deltec-fp-config__stage {
		grid-area: stage;
		min-height: 820px;
	}

	.deltec-fp-config__controls {
		grid-area: controls;
		align-self: stretch;
		padding: 0 42px 42px 42px;
		border-left: 1px solid #ddd;
	}

	.deltec-fp-config__groups {
		flex-direction: column;
		flex-wrap: nowrap;
	}

	.deltec-fp-config__group {
		flex: 0 0 auto;
	}

	.deltec-fp-config__group-label {
		margin: 0 !important;
	}

	.deltec-fp-config__details {
		grid-area: details;
		width: 100%;
	}
}

/* --- Mobile ------------------------------------------------------------ */

@media only screen and (max-width: 767px) {
	.deltec-fp-config__stage {
		padding-bottom: 20px;
	}

	.deltec-fp-config__controls {
		padding: 0;
	}

	.deltec-fp-config__groups {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		padding: 0;
	}

	.deltec-fp-config__group {
		flex: 0 0 auto;
		gap: 10px;
		padding: 10px 0;
	}

	.deltec-fp-config__group-label {
		width: 200px;
		max-width: 100%;
		margin: 0 auto !important;
	}

	.deltec-fp-config__details {
		width: 90%;
		margin-top: 16px;
		padding: 21px;
	}

	.deltec-fp-config__features {
		columns: 1;
	}
}

@media only screen and (max-width: 700px) {
	.deltec-fp-config__option input[type="radio"],
	.deltec-fp-config__option input[type="radio"] + label {
		width: 55px;
		height: 55px;
	}

	.deltec-fp-config__option input[type="radio"] + label {
		font-size: 0.6rem;
		padding: 12px;
	}

	.deltec-fp-config__option-emphasis {
		font-size: 1rem;
	}

	.deltec-fp-config__group-label {
		font-size: 14px;
	}
}
