/* Smaller than the checkout action, but still easy to find and tap. */
.dfrt-control { margin: .3rem 0 .8rem; line-height: 1.35; }
a.dfrt-open, .woocommerce a.dfrt-open, a.dfrt-close {
	color: #dcc391; text-decoration: underline; text-underline-offset: .19em;
	font: inherit; font-weight: 500; background: transparent; border: 0; box-shadow: none;
}
.dfrt-control a.dfrt-open {
	display: inline-flex; align-items: center; min-height: 2rem;
	padding: 0 .12rem; margin: 0; font-size: .875rem;
}
a.dfrt-open:hover, a.dfrt-close:hover { color: #f1dbb3; }
a.dfrt-open:focus-visible, a.dfrt-close:focus-visible {
	outline: 2px solid #e3ca97; outline-offset: 3px;
}
.dfrt-panel {
	box-sizing: border-box; padding: clamp(1rem, 4vw, 1.8rem); color: #f5f3ee;
	background: #202020; overflow-wrap: anywhere; line-height: 1.5; text-align: start;
}
/* Without JS the hash navigates to the same, normally collapsed section. */
section.dfrt-panel { display: none; }
section.dfrt-panel:target {
	display: block; max-width: 38rem; margin: 1rem auto;
	border: 1px solid #9c8863; border-radius: .75rem; scroll-margin-top: 5rem;
}
.dfrt-dialog {
	position: fixed; inset: 0; margin: auto; box-sizing: border-box;
	width: min(36rem, calc(100% - 2rem)); max-width: calc(100% - 2rem);
	max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
	overflow-y: auto; overscroll-behavior: contain; padding: 0;
	background: #202020; color: #f5f3ee; border: 1px solid #9c8863; border-radius: .75rem;
	box-shadow: 0 1rem 3rem rgb(0 0 0 / 40%);
}
.dfrt-dialog::backdrop { background: rgb(0 0 0 / 72%); }
.dfrt-dialog[open] > .dfrt-panel {
	display: block; border: 0; margin: 0; max-width: none;
}
.dfrt-panel h2 { margin: 0 0 .85rem; font-size: clamp(1.3rem, 4vw, 1.65rem); color: #f5f3ee; }
.dfrt-panel p { margin: 0 0 .85rem; color: #f5f3ee; font-size: 1rem; }
.dfrt-panel a.dfrt-close { display: inline-flex; align-items: center; min-height: 44px; }
