/*
 * StayRent Marketplace utility screens.
 *
 * Inbox, host-access and policy presentation belongs to the plugin because
 * these layouts are rendered by marketplace shortcodes/managed content.
 */

.srm-inbox-empty,
.srm-host-access,
.srm-policy-page {
	box-sizing: border-box;
	color: var(--srm-ink);
	font-family: var(--srm-font);
}

.srm-inbox-empty *,
.srm-host-access *,
.srm-policy-page * {
	box-sizing: border-box;
}

.srm-inbox-empty :where(h1, h2, h3, p),
.srm-host-access :where(h1, h2, h3, p),
.srm-policy-page :where(h1, h2, h3, p),
.srm-policy-page :where(ul, ol) {
	margin-block: 0;
}

/* Empty booking inbox. */
.srm-inbox-empty {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 48px 64px;
	width: min(1180px, calc(100% - 48px));
	min-height: 520px;
	margin: 64px auto 96px;
	padding: 56px;
	overflow: hidden;
	border: 1px solid #e3e7eb;
	border-radius: 24px;
	background:
		radial-gradient(circle at 88% 8%, rgba(233, 77, 100, .1), transparent 30%),
		linear-gradient(145deg, #fff 0%, #fbfcfd 64%, #f6f8fa 100%);
	box-shadow: 0 26px 70px rgba(25, 36, 48, .1);
}

.srm-inbox-empty::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--srm-rose), #ff8a78 45%, #f5cf9a);
	content: "";
}

.srm-inbox-empty-visual {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 286px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 20px;
	background:
		radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .13), transparent 26%),
		linear-gradient(145deg, #253545 0%, #192633 62%, #111b25 100%);
	box-shadow: 0 20px 42px rgba(18, 29, 39, .18);
}

.srm-inbox-empty-visual::after {
	position: absolute;
	right: -36px;
	bottom: -72px;
	width: 220px;
	height: 220px;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 50%;
	content: "";
}

.srm-inbox-empty-orbit {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 50%;
}

.srm-inbox-empty-orbit-one {
	width: 210px;
	height: 210px;
}

.srm-inbox-empty-orbit-two {
	width: 146px;
	height: 146px;
	border-color: rgba(233, 77, 100, .38);
}

.srm-inbox-empty-icon {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 86px;
	height: 86px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 26px;
	background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07));
	box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
	color: #fff;
	transform: rotate(-5deg);
}

.srm-inbox-empty-icon svg {
	width: 34px;
	height: 34px;
	transform: rotate(5deg);
}

.srm-inbox-empty-badge {
	position: absolute;
	right: 22px;
	bottom: 22px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 13px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 11px;
	font-weight: 750;
	backdrop-filter: blur(10px);
}

.srm-inbox-empty-badge i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #66d7a9;
	box-shadow: 0 0 0 4px rgba(102, 215, 169, .14);
}

.srm-inbox-empty-copy {
	align-self: center;
	max-width: 560px;
}

.srm-inbox-empty-copy h1 {
	margin-top: 12px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(38px, 4.3vw, 58px);
	font-weight: 500;
	letter-spacing: -.045em;
	line-height: 1;
}

.srm-inbox-empty-copy > p {
	max-width: 540px;
	margin-top: 20px;
	color: #5b6570;
	font-size: 16px;
	line-height: 1.75;
}

.srm-inbox-empty-copy .srm-button-row {
	margin-top: 28px;
}

.srm-inbox-empty-steps {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid #e5e8eb;
}

.srm-inbox-empty-steps article {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 14px;
	padding: 26px 24px 0 0;
}

.srm-inbox-empty-steps article + article {
	padding-left: 24px;
	border-left: 1px solid #e5e8eb;
}

.srm-inbox-empty-steps article > span {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #fff0f2;
	color: var(--srm-rose-dark);
	font-size: 10px;
	font-weight: 850;
}

.srm-inbox-empty-steps strong,
.srm-inbox-empty-steps small {
	display: block;
}

.srm-inbox-empty-steps strong {
	color: var(--srm-ink);
	font-size: 13px;
}

.srm-inbox-empty-steps small {
	margin-top: 5px;
	color: #6a7480;
	font-size: 12px;
	line-height: 1.55;
}

.srm-dashboard .srm-inbox-empty {
	width: 100%;
	margin: 0;
}

/* Host dashboard access state. */
.srm-host-access {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
	gap: 72px;
	align-items: center;
	width: min(1180px, calc(100% - 48px));
	min-height: 500px;
	margin: 64px auto 96px;
	padding: 64px;
	overflow: hidden;
	border: 1px solid #e1e5e9;
	border-radius: 24px;
	background:
		radial-gradient(circle at 4% 100%, rgba(233, 77, 100, .09), transparent 33%),
		#fff;
	box-shadow: 0 28px 74px rgba(25, 36, 48, .1);
}

.srm-host-access::after {
	position: absolute;
	top: -120px;
	right: -120px;
	width: 360px;
	height: 360px;
	border: 1px solid rgba(233, 77, 100, .11);
	border-radius: 50%;
	box-shadow:
		0 0 0 42px rgba(233, 77, 100, .035),
		0 0 0 84px rgba(233, 77, 100, .025);
	content: "";
	pointer-events: none;
}

.srm-host-access-copy {
	position: relative;
	z-index: 1;
}

.srm-host-access-copy h1 {
	max-width: 660px;
	margin-top: 12px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 5vw, 64px);
	font-weight: 500;
	letter-spacing: -.05em;
	line-height: .98;
}

.srm-host-access-copy > p {
	max-width: 600px;
	margin-top: 22px;
	color: #5b6570;
	font-size: 16px;
	line-height: 1.75;
}

.srm-host-access-copy .srm-button-row {
	margin-top: 30px;
}

.srm-host-access-tools {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 12px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 20px;
	background: linear-gradient(145deg, #253545, #17232f);
	box-shadow: 0 24px 48px rgba(20, 31, 42, .2);
}

.srm-host-access-tools article {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 17px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 14px;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.srm-host-access-tools article:hover {
	border-color: rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .1);
	transform: translateY(-2px);
}

.srm-host-access-tools article > span {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: rgba(233, 77, 100, .18);
	color: #ff9aaa;
}

.srm-host-access-tools svg {
	width: 22px;
	height: 22px;
}

.srm-host-access-tools strong,
.srm-host-access-tools small {
	display: block;
}

.srm-host-access-tools strong {
	font-size: 14px;
}

.srm-host-access-tools small {
	margin-top: 4px;
	color: #c6d0d9;
	font-size: 12px;
	line-height: 1.45;
}

/* Cancellation and refund policy. */
.srm-policy-page {
	width: min(1240px, calc(100% - 48px));
	margin: 56px auto 104px;
}

.srm-policy-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
	gap: 72px;
	align-items: end;
	padding: 70px;
	overflow: hidden;
	border-radius: 24px;
	background:
		radial-gradient(circle at 94% 10%, rgba(233, 77, 100, .28), transparent 30%),
		linear-gradient(145deg, #243442 0%, #16232e 72%, #101a23 100%);
	box-shadow: 0 28px 70px rgba(19, 31, 41, .18);
	color: #fff;
}

.srm-policy-hero::before {
	position: absolute;
	top: -170px;
	right: -100px;
	width: 390px;
	height: 390px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 50%;
	box-shadow: 0 0 0 48px rgba(255, 255, 255, .025);
	content: "";
}

.srm-policy-hero-copy,
.srm-policy-assurances {
	position: relative;
	z-index: 1;
}

.srm-policy-hero .srm-eyebrow {
	color: #ff96a6;
}

.srm-policy-hero h1 {
	max-width: 700px;
	margin-top: 14px;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(48px, 6vw, 76px);
	font-weight: 500;
	letter-spacing: -.055em;
	line-height: .95;
}

.srm-policy-hero-copy > p {
	max-width: 590px;
	margin-top: 24px;
	color: #d6dde3;
	font-size: 17px;
	line-height: 1.7;
}

.srm-policy-assurances {
	display: grid;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 18px;
	background: rgba(255, 255, 255, .06);
	backdrop-filter: blur(12px);
}

.srm-policy-assurances > span {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 18px 20px;
}

.srm-policy-assurances > span + span {
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.srm-policy-assurances i {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: rgba(233, 77, 100, .18);
	color: #ff9aaa;
	font-size: 10px;
	font-style: normal;
	font-weight: 850;
}

.srm-policy-assurances strong {
	color: #fff;
	font-size: 13px;
	line-height: 1.35;
}

.srm-policy-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
	margin-top: 24px;
}

.srm-policy-main {
	display: grid;
	gap: 24px;
	min-width: 0;
}

.srm-policy-card,
.srm-policy-summary {
	border: 1px solid #e2e6ea;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 18px 46px rgba(27, 39, 51, .075);
}

.srm-policy-timeline {
	padding: 38px;
}

.srm-policy-timeline > header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
	gap: 36px;
	align-items: end;
	padding-bottom: 30px;
	border-bottom: 1px solid #e5e8eb;
}

.srm-policy-timeline h2,
.srm-policy-detail-grid h2,
.srm-policy-summary h2 {
	color: var(--srm-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	letter-spacing: -.035em;
	line-height: 1.05;
}

.srm-policy-timeline h2 {
	margin-top: 9px;
	font-size: clamp(34px, 4vw, 46px);
}

.srm-policy-timeline > header > p {
	color: #66717c;
	font-size: 13px;
	line-height: 1.7;
}

.srm-policy-window-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 30px;
}

.srm-policy-window-grid article {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 8px 25px 0 0;
}

.srm-policy-window-grid article + article {
	padding-left: 25px;
	border-left: 1px solid #e5e8eb;
}

.srm-policy-window-number {
	color: var(--srm-rose);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 46px;
	line-height: 1;
}

.srm-policy-window-grid article > small {
	margin-top: 8px;
	color: #7a838d;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: .12em;
	line-height: 1.4;
}

.srm-policy-window-grid h3 {
	margin-top: 20px;
	color: var(--srm-ink);
	font-size: 18px;
	font-weight: 750;
	letter-spacing: -.02em;
	line-height: 1.25;
}

.srm-policy-window-grid p {
	margin-top: 9px;
	color: #65707b;
	font-size: 13px;
	line-height: 1.65;
}

.srm-policy-window-grid article > strong {
	align-self: flex-start;
	margin-top: 18px;
	padding: 7px 9px;
	border-radius: 8px;
	background: #f3f5f7;
	color: #596571;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.srm-policy-window-grid article > strong.is-positive {
	background: #eaf7f1;
	color: #126148;
}

.srm-policy-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.srm-policy-detail-grid > article {
	position: relative;
	padding: 34px;
}

.srm-policy-detail-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 24px;
	border-radius: 12px;
	background: #fff0f2;
	color: var(--srm-rose-dark);
	font-size: 20px;
	font-weight: 600;
}

.srm-policy-detail-grid h2 {
	font-size: 31px;
}

.srm-policy-detail-grid ul {
	margin-top: 22px;
	padding: 0;
	list-style: none;
}

.srm-policy-detail-grid li {
	display: grid;
	gap: 4px;
	padding: 14px 0;
	border-top: 1px solid #e8ebee;
}

.srm-policy-detail-grid li strong {
	color: var(--srm-ink);
	font-size: 13px;
}

.srm-policy-detail-grid li span,
.srm-policy-detail-grid > article > p {
	color: #66717c;
	font-size: 13px;
	line-height: 1.65;
}

.srm-policy-detail-grid > article > p {
	margin-top: 18px;
}

.srm-policy-detail-grid .srm-policy-note {
	padding: 14px 16px;
	border-radius: 12px;
	background: #f6f8fa;
	color: #47535f;
}

.srm-policy-summary {
	position: sticky;
	top: 100px;
	padding: 32px;
}

.srm-policy-summary-mark {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 24px;
	border-radius: 16px;
	background: linear-gradient(145deg, #253545, #17232f);
	box-shadow: 0 12px 24px rgba(24, 37, 49, .18);
}

.srm-policy-summary-mark span {
	width: 17px;
	height: 22px;
	border: 2px solid #ff8da0;
	border-radius: 9px 9px 11px 11px;
}

.srm-policy-summary h2 {
	margin-top: 8px;
	font-size: 32px;
}

.srm-policy-summary ol {
	margin-top: 22px;
	padding: 0;
	list-style: none;
}

.srm-policy-summary li {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 12px;
	padding: 16px 0;
	border-top: 1px solid #e7eaed;
}

.srm-policy-summary li > span {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: #fff0f2;
	color: var(--srm-rose-dark);
	font-size: 9px;
	font-weight: 850;
}

.srm-policy-summary li strong,
.srm-policy-summary li small {
	display: block;
}

.srm-policy-summary li strong {
	color: var(--srm-ink);
	font-size: 13px;
}

.srm-policy-summary li small {
	margin-top: 4px;
	color: #68737e;
	font-size: 11px;
	line-height: 1.55;
}

.srm-policy-summary .srm-button {
	margin-top: 10px;
}

.srm-policy-summary-foot {
	margin-top: 14px;
	color: #75808a;
	font-size: 11px;
	line-height: 1.55;
	text-align: center;
}

/* Keep the populated conversation shell polished at narrower widths. */
.srm-conversation-list > .srm-muted {
	margin: 0;
	padding: 22px 24px;
	font-size: 13px;
	line-height: 1.65;
}

@media (max-width: 980px) {
	.srm-inbox-empty,
	.srm-host-access,
	.srm-policy-hero,
	.srm-policy-layout {
		grid-template-columns: 1fr;
	}

	.srm-inbox-empty {
		gap: 38px;
		padding: 44px;
	}

	.srm-inbox-empty-visual {
		min-height: 250px;
	}

	.srm-host-access {
		gap: 42px;
		padding: 50px;
	}

	.srm-host-access-tools {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.srm-host-access-tools article {
		grid-template-columns: 1fr;
		align-content: start;
	}

	.srm-policy-hero {
		gap: 44px;
		padding: 56px;
	}

	.srm-policy-assurances {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.srm-policy-assurances > span {
		grid-template-columns: 38px minmax(0, 1fr);
	}

	.srm-policy-assurances > span + span {
		border-top: 0;
		border-left: 1px solid rgba(255, 255, 255, .1);
	}

	.srm-policy-summary {
		position: static;
	}
}

@media (max-width: 760px) {
	.srm-inbox-empty,
	.srm-host-access,
	.srm-policy-page {
		width: calc(100% - 30px);
		margin-block: 34px 72px;
	}

	.srm-inbox-empty,
	.srm-host-access {
		padding: 28px;
		border-radius: 19px;
	}

	.srm-inbox-empty {
		gap: 30px;
		min-height: 0;
	}

	.srm-inbox-empty-visual {
		min-height: 220px;
	}

	.srm-inbox-empty-copy h1 {
		font-size: clamp(38px, 11vw, 50px);
	}

	.srm-inbox-empty-copy > p,
	.srm-host-access-copy > p {
		font-size: 14px;
	}

	.srm-inbox-empty-copy .srm-button-row,
	.srm-host-access-copy .srm-button-row {
		align-items: stretch;
		flex-direction: column;
	}

	.srm-inbox-empty-copy .srm-button,
	.srm-host-access-copy .srm-button {
		justify-content: center;
		width: 100%;
	}

	.srm-inbox-empty-steps,
	.srm-host-access-tools,
	.srm-policy-assurances,
	.srm-policy-timeline > header,
	.srm-policy-window-grid,
	.srm-policy-detail-grid {
		grid-template-columns: 1fr;
	}

	.srm-inbox-empty-steps {
		padding-top: 10px;
	}

	.srm-inbox-empty-steps article,
	.srm-inbox-empty-steps article + article {
		padding: 18px 0;
		border-top: 1px solid #e5e8eb;
		border-left: 0;
	}

	.srm-inbox-empty-steps article:first-child {
		border-top: 0;
	}

	.srm-host-access {
		gap: 32px;
	}

	.srm-host-access-copy h1 {
		font-size: clamp(40px, 12vw, 54px);
	}

	.srm-host-access-tools article {
		grid-template-columns: 50px minmax(0, 1fr);
	}

	.srm-policy-hero {
		gap: 34px;
		padding: 38px 26px;
		border-radius: 19px;
	}

	.srm-policy-hero h1 {
		font-size: clamp(44px, 13vw, 60px);
	}

	.srm-policy-hero-copy > p {
		font-size: 15px;
	}

	.srm-policy-assurances > span + span {
		border-top: 1px solid rgba(255, 255, 255, .1);
		border-left: 0;
	}

	.srm-policy-layout {
		gap: 18px;
		margin-top: 18px;
	}

	.srm-policy-main {
		gap: 18px;
	}

	.srm-policy-timeline,
	.srm-policy-detail-grid > article,
	.srm-policy-summary {
		padding: 25px;
		border-radius: 17px;
	}

	.srm-policy-timeline > header {
		gap: 16px;
	}

	.srm-policy-window-grid {
		margin-top: 12px;
	}

	.srm-policy-window-grid article,
	.srm-policy-window-grid article + article {
		padding: 24px 0;
		border-top: 1px solid #e5e8eb;
		border-left: 0;
	}

	.srm-policy-window-grid article:first-child {
		border-top: 0;
	}

	.srm-policy-window-grid article > strong {
		margin-top: 14px;
	}

	.srm-policy-summary {
		order: -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.srm-host-access-tools article {
		transition: none;
	}
}
