/* Digital Survey for WooCommerce: light styling that inherits the theme's fonts and colours. */

.ds-request,
.ds-recommendation {
	max-width: 40rem;
}

.ds-request__form p {
	margin: 0 0 1rem;
}

.ds-request__form label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 600;
	font-size: 0.95em;
}

.ds-request__form input[type="text"],
.ds-request__form input[type="email"],
.ds-request__form input[type="tel"] {
	box-sizing: border-box;
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	font: inherit;
}

.ds-request__row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 0.75rem;
}

.ds-notice {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-left: 4px solid;
	border-radius: 4px;
}

.ds-notice--success {
	border-color: #16a34a;
	background: #f0fdf4;
}

.ds-notice--error {
	border-color: #dc2626;
	background: #fef2f2;
}

.ds-recommendation__load {
	opacity: 0.75;
}

.ds-recommendation__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.ds-recommendation__table td {
	padding: 0.9rem 0.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	vertical-align: top;
}

.ds-line__room {
	width: 35%;
}

.ds-line__pick {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.ds-line__pick img {
	flex: none;
	width: 64px !important;
	height: 64px !important;
	object-fit: cover;
	border-radius: 6px;
}

.ds-line__pick > div {
	min-width: 0;
	flex: 1;
}

.ds-line__pick select {
	width: 100%;
	max-width: 100%;
	padding: 0.4rem;
	font: inherit;
}

.ds-line__note {
	color: #b45309;
}

.ds-recommendation__total {
	margin-top: 1rem;
	font-size: 1.2em;
	font-weight: 600;
}

@media (max-width: 600px) {
	.ds-recommendation__table td {
		display: block;
		width: auto;
		border-top: 0;
		padding: 0.25rem 0;
	}

	.ds-recommendation__table tr {
		display: block;
		padding: 0.75rem 0;
		border-top: 1px solid rgba(0, 0, 0, 0.1);
	}

	.ds-request__row {
		grid-template-columns: 1fr;
	}
}

/* Installation section. */
.ds-recommendation__heading {
	margin: 1.75em 0 0.25em;
}
.ds-recommendation__sub {
	margin: 0 0 0.75em;
	opacity: 0.8;
}
.ds-recommendation__install .ds-line__qty {
	white-space: nowrap;
	width: 4.5em;
	text-align: right;
}
.ds-recommendation__install .ds-line__price {
	white-space: nowrap;
	width: 6.5em;
	text-align: right;
}
.ds-recommendation__possible {
	margin: 1em 0;
	padding: 0.75em 1em;
	border: 1px dashed currentColor;
	border-radius: 8px;
	opacity: 0.9;
}
.ds-recommendation__possible summary {
	cursor: pointer;
	font-weight: 600;
}
.ds-recommendation__possible ul {
	margin: 0.75em 0 0;
	padding-left: 1.25em;
}
.ds-recommendation__possible li {
	margin: 0.4em 0;
}

/* Room cards: the recommended unit, with other options to choose from. */
.ds-recommendation {
	max-width: 52rem;
}
.ds-rooms {
	display: grid;
	gap: 1.25rem;
	margin: 1.25rem 0;
}
.ds-room {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 14px;
	padding: 1rem 1.1rem;
}
.ds-room__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	margin-bottom: 0.75rem;
}
.ds-room__title {
	margin: 0;
	font-size: 1.15em;
}
.ds-room__detail {
	font-size: 0.875em;
	opacity: 0.7;
}
.ds-unit {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: start;
}
.ds-unit__image img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 10px;
}
.ds-unit__body p {
	margin: 0;
}
.ds-unit__brand {
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.7;
}
.ds-unit__name {
	font-weight: 600;
	line-height: 1.35;
}
.ds-unit__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}
.ds-unit__specs li {
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.05);
	font-size: 0.8em;
}
.ds-unit__price {
	text-align: right;
	font-weight: 700;
	white-space: nowrap;
}
.ds-unit__price small {
	display: block;
	font-weight: 400;
	opacity: 0.7;
}
.ds-options {
	margin-top: 0.9rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding-top: 0.75rem;
}
.ds-options summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 0.925em;
}
.ds-options__list {
	display: grid;
	gap: 0.5rem;
	max-height: 26rem;
	overflow-y: auto;
	margin-top: 0.75rem;
	padding-right: 0.25rem;
}
.ds-option {
	display: grid;
	grid-template-columns: auto 52px minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: center;
	padding: 0.55rem 0.7rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	cursor: pointer;
}
.ds-option:has(input:checked) {
	border-color: currentColor;
	box-shadow: inset 0 0 0 1px currentColor;
}
.ds-option img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
}
.ds-option__text {
	display: grid;
	min-width: 0;
}
.ds-option__brand {
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.7;
}
.ds-option__name {
	font-size: 0.925em;
	font-weight: 600;
	line-height: 1.3;
}
.ds-option__specs {
	font-size: 0.8em;
	opacity: 0.7;
}
.ds-option__price {
	font-weight: 700;
	white-space: nowrap;
}
@media (max-width: 600px) {
	.ds-unit {
		grid-template-columns: 72px minmax(0, 1fr);
	}
	.ds-unit__image img {
		width: 72px;
		height: 72px;
	}
	.ds-unit__price {
		grid-column: 2;
		text-align: left;
	}
	.ds-option {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}
	.ds-option img {
		display: none;
	}
}
.ds-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.75rem;
}
.ds-filter button {
	padding: 0.25rem 0.7rem;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.8em;
	cursor: pointer;
}
.ds-filter button[aria-pressed="true"] {
	border-color: currentColor;
	font-weight: 700;
}
.ds-option[hidden] {
	display: none;
}
