.kol-guest-mode-modal[hidden] {
	display: none !important;
}

.kol-guest-mode-modal {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	inset: 0;
	z-index: 100100;
	padding: 20px;
	box-sizing: border-box;
}

.kol-guest-mode-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(3px);
}

.kol-guest-mode-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	box-sizing: border-box;
	padding: 28px;
	border: 1px solid;
	border-radius: 12px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
}

html.light-mode .kol-guest-mode-modal__dialog,
html:not(.dark-mode) .kol-guest-mode-modal__dialog {
	background: #ffffff;
	border-color: #e5e7eb;
	color: #1f2937;
}

html.dark-mode .kol-guest-mode-modal__dialog {
	background: #1a1a1a;
	border-color: #333333;
	color: #e0e0e0;
}

.kol-guest-mode-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: 36px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}

.kol-guest-mode-modal__close:hover,
.kol-guest-mode-modal__close:focus-visible {
	background: rgba(127, 127, 127, 0.16);
}

.kol-guest-mode-modal__eyebrow {
	margin: 0 40px 8px 0;
	color: #08795f;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

html.dark-mode .kol-guest-mode-modal__eyebrow {
	color: #7dffc9;
}

.kol-guest-mode-modal h2 {
	margin: 0 40px 10px 0;
	color: inherit;
	font-size: clamp(22px, 4vw, 28px);
	line-height: 1.2;
}

.kol-guest-mode-modal__dialog > p:not(.kol-guest-mode-modal__eyebrow) {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

.kol-guest-mode-modal__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 24px;
}

.kol-guest-mode-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	box-sizing: border-box;
	padding: 0 15px;
	border: 1px solid;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.kol-guest-mode-button--primary {
	background: linear-gradient(#2d7c2d, #1f5f1f);
	border-color: #3d9d3d #1a4d1a #1a4d1a #3d9d3d;
	box-shadow: 0 4px 8px rgba(31, 95, 31, 0.28);
	color: #ffffff;
}

.kol-guest-mode-button--primary:hover,
.kol-guest-mode-button--primary:focus-visible {
	color: #ffffff;
	filter: brightness(1.08);
}

html.light-mode .kol-guest-mode-button--secondary,
html:not(.dark-mode) .kol-guest-mode-button--secondary {
	background: linear-gradient(#e2e2e2, #d4d4d4);
	border-color: #f0f0f0 #b0b0b0 #b0b0b0 #f0f0f0;
	box-shadow: 0 4px 8px rgba(45, 45, 45, 0.18);
	color: #2d2d2d;
}

html.dark-mode .kol-guest-mode-button--secondary {
	background: linear-gradient(#383838, #343434);
	border-color: #555555 #282828 #282828 #555555;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	color: #ffffff;
}

.kol-guest-mode-button--quiet {
	grid-column: 1 / -1;
	height: 32px;
	border-color: transparent;
	background: transparent;
	box-shadow: none;
	color: inherit;
}

body.kol-guest-mode-modal-open {
	overflow: hidden;
}

[data-kol-guest-surface] {
	position: relative;
	isolation: isolate;
	outline: none;
}

[data-kol-guest-surface]:focus-visible {
	box-shadow: 0 0 0 4px rgba(0, 204, 153, 0.32);
}

.kol-guest-mode-shield {
	position: absolute;
	inset: 0;
	z-index: 20;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: transparent;
	cursor: pointer;
	touch-action: pan-y;
}

[data-kol-guest-allow] {
	position: relative;
	z-index: 21;
}

[data-kol-guest-surface] .wp-editor-wrap {
	position: relative;
}

.kol-registration-success-choice {
	margin: 0 0 18px;
	padding: 16px;
	border: 1px solid;
	border-radius: 8px;
}

html.light-mode .kol-registration-success-choice,
html:not(.dark-mode) .kol-registration-success-choice {
	background: #f3f4f6;
	border-color: #d1d5db;
	color: #1f2937;
}

html.dark-mode .kol-registration-success-choice {
	background: #202020;
	border-color: #3a3a3a;
	color: #e0e0e0;
}

.kol-registration-success-choice h3 {
	margin: 0 0 8px;
	color: inherit;
	font-size: 19px;
}

.kol-registration-success-choice p {
	margin: 0 0 14px;
}

.kol-registration-success-choice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.kol-registration-success-choice__actions .kol-guest-mode-button {
	flex: 1 1 160px;
}

@media (max-width: 540px) {
	.kol-guest-mode-modal {
		padding: 12px;
	}

	.kol-guest-mode-modal__dialog {
		max-height: calc(100vh - 24px);
		padding: 24px 18px;
	}

	.kol-guest-mode-modal__actions {
		grid-template-columns: 1fr;
	}

	.kol-guest-mode-button--quiet {
		grid-column: auto;
	}
}
