#jfdm-notice:not([open]), [id^="jfdm-"][id$="-state"][hidden] {
	display: none !important;
}

#order_review .woocommerce-shipping-methods .jfdm-use-rate-width {
	grid-column: 1 / -1;
}

#jfdm-notice {
	position: fixed;
	inset: 0;
	z-index: 999999;
	box-sizing: border-box;
	width: min(32rem, calc(100% - 2rem));
	max-width: none;
	max-height: calc(100% - 2rem);
	max-height: calc(100dvh - 2rem);
	height: fit-content;
	margin: auto;
	padding: 0;
	overflow: auto;
	overscroll-behavior: contain;
	border: 1px solid #cad6df;
	border-radius: 14px;
	background: #fff;
	color: #182d3d;
	box-shadow: 0 22px 84px #081a303b;
	font-family: inherit;
	text-align: left;
}

#jfdm-notice::backdrop {
	background: rgb(10 23 36 / 65%);
}

#jfdm-notice .jfdm-inner {
	position: relative;
	border-top: 5px solid #0089c7;
	padding: clamp(20px, 5vw, 36px);
}

#jfdm-notice h2, .jfdm-inline h2 {
	margin: 0 32px 16px 0;
	color: #102839;
	font: inherit;
	font-size: clamp(23px, 4vw, 30px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -.025em;
	text-transform: none;
}

#jfdm-notice h2:focus {
	outline: none;
}

#jfdm-message p, .jfdm-inline p {
	margin: 0 0 .8em;
	color: #304757;
	font-size: 16px;
	line-height: 1.5;
}

#jfdm-message p:last-child, .jfdm-inline p:last-child {
	margin: 0;
	color: #102839;
}

#jfdm-notice .jfdm-close {
	position: absolute;
	top: 7px;
	right: 7px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	min-width: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	color: #395467;
	font: 26px/1 Arial, sans-serif;
	cursor: pointer;
}

#jfdm-notice .jfdm-close:hover {
	background: #eef4f7;
}

#jfdm-notice .jfdm-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-top: 24px;
}

#jfdm-notice .jfdm-primary, #jfdm-notice .jfdm-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	width: auto;
	margin: 0;
	font: inherit;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.3;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

#jfdm-notice .jfdm-primary {
	padding: 11px 16px;
	border: 1px solid #075178;
	border-radius: 6px;
	background: #075178;
	box-shadow: none;
	color: #fff;
	text-decoration: none;
}

#jfdm-notice .jfdm-primary:hover {
	background: #053c5a;
}

#jfdm-notice .jfdm-secondary {
	padding: 8px 2px;
	color: #075178;
	background: transparent;
	text-decoration: underline;
	text-underline-offset: .18em;
}

#jfdm-notice :is(a, button):focus-visible {
	outline: 3px solid #007daf;
	outline-offset: 3px;
}

.jfdm-inline {
	margin: 16px 0;
	padding: 16px;
	border-inline-start: 4px solid #0089c7;
	background: #f3f7fa;
	text-align: left;
}

@media (max-width: 440px) {
	#jfdm-notice .jfdm-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}
}
