.to-sample {
	margin: 1.1rem 0 1.4rem;
}

.to-sample__open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 48px;
	padding: 0.75rem 1.1rem;
	border: 1px solid var(--wp--preset--color--navy, #132437);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--navy, #132437);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.to-sample__open:hover,
.to-sample__open:focus-visible {
	background: var(--wp--preset--color--navy, #132437);
	color: #fff;
}

.to-sample__open:focus-visible,
.to-sample-dialog__close:focus-visible,
.to-sample-dialog__footer a:focus-visible {
	outline: 3px solid var(--wp--preset--color--amber, #f3b53f);
	outline-offset: 3px;
}

.to-sample__hint {
	margin: 0.55rem 0 0;
	color: var(--wp--preset--color--muted, #66717c);
	font-size: 0.86rem;
}

.to-sample-is-open {
	overflow: hidden;
}

dialog.to-sample-dialog {
	box-sizing: border-box;
	padding: 0 !important;
	border: 0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 30px 90px rgba(6, 18, 31, 0.35);
	color: var(--wp--preset--color--navy, #132437);
	overflow: hidden;
}

.to-sample-dialog::backdrop {
	background: rgba(9, 20, 32, 0.78);
	backdrop-filter: blur(4px);
}

dialog.to-sample-dialog[open] {
	position: fixed !important;
	inset: 16px !important;
	display: grid !important;
	grid-template-rows: 76px minmax(0, 1fr) 56px !important;
	align-content: stretch !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
}

.to-sample-dialog__bar,
.to-sample-dialog__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	background: #fff;
	box-sizing: border-box;
	min-width: 0;
	margin: 0 !important;
}

.to-sample-dialog__bar {
	grid-row: 1;
	height: 76px;
	min-height: 76px;
	max-height: 76px;
	border-bottom: 1px solid var(--wp--preset--color--line, #dedbd3);
}

.to-sample-dialog__bar > div {
	min-width: 0;
}

.to-sample-dialog__bar strong,
.to-sample-dialog__bar span {
	display: block;
}

.to-sample-dialog__bar span,
.to-sample-dialog__footer {
	color: var(--wp--preset--color--muted, #66717c);
	font-size: 0.78rem;
}

.to-sample-dialog__close {
	display: grid;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--fog, #f1efe9);
	color: var(--wp--preset--color--navy, #132437);
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.to-sample-dialog__body {
	position: relative;
	grid-row: 2;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	background: #e9ecef;
}

.to-sample-dialog .to-sample-dialog__body > iframe[data-sample-frame] {
	position: absolute;
	inset: 0;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	aspect-ratio: auto !important;
	background: #e9ecef;
}

.to-sample-dialog__footer {
	grid-row: 3;
	height: 56px;
	min-height: 56px;
	max-height: 56px;
	border-top: 1px solid var(--wp--preset--color--line, #dedbd3);
}

.to-sample-dialog__footer a {
	flex: 0 0 auto;
	color: var(--wp--preset--color--navy, #132437);
	font-weight: 800;
}

@media (max-width: 600px) {
	dialog.to-sample-dialog[open] {
		inset: 0 !important;
		grid-template-rows: 68px minmax(0, 1fr) 48px !important;
		border-radius: 0;
	}

	.to-sample-dialog__bar {
		height: 68px;
		min-height: 68px;
		max-height: 68px;
		padding-top: max(0.65rem, env(safe-area-inset-top));
	}

	.to-sample-dialog__footer {
		height: 48px;
		min-height: 48px;
		max-height: 48px;
		align-items: center;
		padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
	}

	.to-sample-dialog__footer span {
		display: none;
	}
}
