#quotation-results-content {
	background: #FAFAFA;
	padding: 40px 130px 80px;
}

/* Summary bar */
.tis-summary-bar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	background: #fff;
	border: 1px solid #E3E7EE;
	border-radius: 4px;
	padding: 24px;
	margin-bottom: 32px;
}

.tis-summary-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 16px;
	column-gap: 40px;
}

.tis-summary-item {
	padding-right: 40px;
	border-right: 1px solid #E3E7EE;
}

.tis-summary-item:last-of-type {
	border-right: none;
}

.tis-summary-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #707070;
	margin: 0 0 4px;
}

.tis-summary-value {
	font-size: 16px;
	font-weight: 700;
	color: #142553;
	margin: 0;
}

/* "Edit Quote" button - always on the far right of the bar, opens the
   full quote-form popup (see .tis-summary-edit-quote-modal below). */
.tis-edit-quote-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border: 2px solid #FF5C1A;
	border-radius: 22px;
	background: #fff;
	color: #FF5C1A;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease;
}

.tis-edit-quote-btn:hover {
	background: #FFF6E9;
}

/* Edit Quote popup - wraps the shared quote-form component (quote-form.php)
   unchanged, already pre-filled from session. Transparent/no padding so
   the form's own card (.tis-quote-form, styled in quote-form.css) is the
   only visible box; the extra top padding just clears the close button. */
.tis-summary-edit-quote-modal .tis-modal-content {
	background: transparent;
	box-shadow: none;
	padding: 44px 0 0;
	max-width: 660px;
}

.tis-summary-edit-quote-modal .tis-modal-close {
	top: 10px;
	right: 10px;
	color: #142553;
}

@media (max-width: 600px) {
	.tis-summary-item {
		padding-right: 0;
		border-right: none;
	}
}

/* Two-column layout */
.tis-results-layout {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

/* Plans column */
.tis-plans-column {
	flex: 1;
	min-width: 0;
}

.tis-plans-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #E3E7EE;
}

.tis-plans-count {
	font-size: 20px;
	color: #142553;
	margin: 0;
}

.tis-plans-count strong {
	color: #FF5C1A;
	font-style: italic;
}

.tis-plans-header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.tis-email-quote-link {
	color: #FF5C1A;
	font-size: 14px;
	text-decoration: underline;
}

.tis-plans-empty {
	background: #fff;
	border: 1px dashed #E3E7EE;
	border-radius: 4px;
	padding: 60px 24px;
	text-align: center;
	color: #707070;
	font-size: 16px;
}

.tis-plan-result-card {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #E3E7EE;
	border-radius: 4px;
	padding: 24px;
	margin-bottom: 16px;
}

.tis-plan-result-main {
	flex: 1;
	min-width: 0;
}

.tis-plan-result-top {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.tis-plan-logo {
	flex: none;
	width: 80px;
	height: 50px;
	border: 1px solid #E3E7EE;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tis-plan-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.tis-plan-result-name {
	flex: 1;
	font-size: 20px;
	color: #142553;
	margin: 0;
}

.tis-plan-details-link {
	flex: none;
	font-size: 14px;
	color: #FF5C1A;
	text-decoration: underline;
}

.tis-plan-coverage-title {
	font-size: 14px;
	font-weight: 600;
	color: #FF5C1A;
	margin: 0 0 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #E3E7EE;
}

.tis-plan-coverage-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	font-size: 15px;
	color: #142553;
	border-bottom: 1px solid #E3E7EE;
}

.tis-plan-coverage-row:last-child {
	border-bottom: none;
}

.tis-plan-coverage-label {
	flex: 0 0 50%;
}

.tis-plan-coverage-value {
	flex: 1;
	color: #707070;
	text-align: right;
}

.tis-plan-result-price-box {
	flex: none;
	width: 260px;
	background: #F7F9FD;
	border-radius: 4px;
	padding: 16px;
	box-sizing: border-box;
}

.tis-plan-result-label {
	font-size: 13px;
	text-transform: uppercase;
	color: #FF5C1A;
	margin: 0 0 4px;
}

.tis-plan-result-price {
	font-size: 32px;
	font-weight: 700;
	color: #142553;
	margin: 0 0 4px;
}

.tis-plan-result-meta {
	font-size: 14px;
	color: #142553;
	margin: 0 0 12px;
}

.tis-plan-result-cfar {
	font-size: 14px;
	color: #142553;
	margin: 0 0 12px;
}

.tis-plan-result-cfar * {
	font-size: 14px !important;
}

.tis-plan-result-preex {
	font-size: 14px;
	color: #142553;
	margin: 0 0 12px;
}

.tis-plan-result-preex strong {
	color: #142553;
}

.tis-plan-buy-now-btn {
	display: block;
	text-align: center;
	background: #FF5C1A;
	color: #fff;
	font-weight: 600;
	padding: 12px;
	border-radius: 4px;
	text-decoration: none;
}

@media (max-width: 768px) {
	.tis-plan-result-card {
		flex-direction: column;
	}

	.tis-plan-result-price-box {
		width: 100%;
	}
}

@media (max-width: 1024px) {
	.tis-results-layout {
		flex-direction: column;
	}

	.tis-summary-bar-inner {
		flex-wrap: wrap;
		gap: 20px;
	}
}

@media (max-width: 768px) {
	#quotation-results-content {
		padding: 20px;
	}
}

/* "Policy Details" popup - one hidden modal per plan card, listing every
   coverage row (the 4 on the card plus every other row-data-functions.php
   section). Base .tis-modal/.tis-modal-content/.tis-modal-close names match
   the residence-state picker modal in quote-form.css, but that stylesheet
   isn't loaded on this page, so the shared rules are defined here too. */
.tis-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.tis-modal[hidden] {
	display: none;
}

.tis-modal-content {
	background: #fff;
	border-radius: 8px;
	padding: 25px;
	max-width: 400px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}

.tis-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}

.tis-plan-details-modal .tis-modal-content {
	max-width: 560px;
}

.tis-plan-details-modal-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 16px;
	padding-right: 30px;
}

.tis-plan-details-modal-header h3 {
	margin: 0;
	font-size: 20px;
	color: #142553;
}

.tis-plan-details-modal-rows .tis-plan-coverage-row {
	border-bottom: 1px solid #E3E7EE;
	gap: 16px;
}

.tis-plan-details-modal-rows .tis-plan-coverage-label {
	flex: 0 0 45%;
	font-weight: 600;
}

.tis-plan-details-modal-rows .tis-plan-coverage-value {
	text-align: right;
}

.tis-plan-details-modal-price-box {
	width: auto;
	margin-bottom: 16px;
}

/* "Cancel For Any Reason" gets its own row at the top of the popup's list,
   styled like a callout rather than a plain sentence, since it's usually
   the single biggest differentiator between otherwise-similar plans. */
.tis-plan-details-modal-rows .tis-plan-coverage-row-cfar {
	background: #FFF3EC;
	margin: 0 -25px 8px;
	padding: 10px 25px;
	border-bottom: none;
	border-radius: 4px;
}

.tis-plan-details-modal-rows .tis-plan-coverage-row-cfar .tis-plan-coverage-label {
	color: #FF5C1A;
}

.tis-plan-details-modal-rows .tis-plan-coverage-row-cfar .tis-plan-coverage-value {
	color: #142553;
	font-weight: 600;
	/* This sentence runs noticeably longer than the other rows' values and
	   often wraps - right-aligned wrapped text reads as a ragged staircase,
	   so this row reads left-to-right instead. */
	text-align: left;
}

/* Some plans' cfar_text comes with an inline font-size: 8pt baked in from
   when this only ever appeared as small print under the price - override it
   so the row reads at the same size as every other row in the list. */
.tis-plan-details-modal-rows .tis-plan-coverage-row-cfar .tis-plan-coverage-value,
.tis-plan-details-modal-rows .tis-plan-coverage-row-cfar .tis-plan-coverage-value * {
	font-size: 15px !important;
}

/* "Select for comparison" checkbox on each card */
.tis-plan-compare-select {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #707070;
	margin: 8px 0 0;
	cursor: pointer;
	width: fit-content;
}

.tis-plan-compare-select input {
	margin: 0;
}

/* Bottom "comparison tray" - hidden below the viewport until at least one
   plan is selected, then slides up. Shows a removable chip per selected
   plan (for feedback on what's currently in the comparison) plus the
   "Compare Plans" button, which only becomes clickable once there are at
   least two. */
.tis-compare-tray {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	transform: translateY(100%);
	background: #fff;
	border-top: 1px solid #E3E7EE;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
	z-index: 900;
	transition: transform 0.3s ease;
}

.tis-compare-tray[hidden] {
	display: block;
	visibility: hidden;
}

.tis-compare-tray.tis-visible {
	transform: translateY(0);
}

.tis-compare-tray-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 16px 40px;
	display: flex;
	align-items: center;
	gap: 20px;
}

.tis-compare-tray-chips {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tis-compare-tray-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #F7F9FD;
	border: 1px solid #E3E7EE;
	border-radius: 20px;
	padding: 6px 8px 6px 14px;
	font-size: 13px;
	color: #142553;
	font-weight: 600;
}

.tis-compare-tray-chip-remove {
	flex: none;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #E3E7EE;
	color: #142553;
	border: none;
	border-radius: 50%;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
}

.tis-compare-tray-chip-remove:hover {
	background: #FF5C1A;
	color: #fff;
}

.tis-compare-tray-btn {
	flex: none;
	background: #FF5C1A;
	color: #fff;
	border: none;
	font-weight: 600;
	font-size: 15px;
	padding: 12px 24px;
	border-radius: 4px;
	cursor: pointer;
}

.tis-compare-tray-btn:disabled {
	background: #E3E7EE;
	color: #999;
	cursor: not-allowed;
}

@media (max-width: 768px) {
	.tis-compare-tray-inner {
		padding: 12px 20px;
		flex-wrap: wrap;
	}
}
