.gt-consent[hidden],
.gt-consent [hidden] {
	display: none !important;
}

.gt-consent {
	--gt-consent-accent: #111111;
	--gt-consent-accent-contrast: #ffffff;
	--gt-consent-surface: #ffffff;
	--gt-consent-surface-muted: #f5f5f3;
	--gt-consent-text: #151515;
	--gt-consent-text-muted: #5e5e5e;
	--gt-consent-border: #d8d8d4;
	--gt-consent-focus: #2563eb;
	font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--gt-consent-text);
}

.gt-consent *,
.gt-consent *::before,
.gt-consent *::after {
	box-sizing: border-box;
}

.gt-consent__banner {
	position: fixed;
	right: 20px;
	bottom: 20px;
	left: 20px;
	z-index: 999990;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 24px;
	background: var(--gt-consent-surface);
	border: 1px solid var(--gt-consent-border);
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.gt-consent__copy {
	max-width: 680px;
}

.gt-consent__title,
.gt-consent__option-title {
	margin: 0;
	color: var(--gt-consent-text);
	font-weight: 700;
}

.gt-consent__title {
	font-size: 1.2rem;
	line-height: 1.35;
}

.gt-consent__description {
	margin: 8px 0 0;
	color: var(--gt-consent-text-muted);
}

.gt-consent__policy-link {
	display: inline-block;
	margin-top: 10px;
	color: var(--gt-consent-text);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gt-consent__actions,
.gt-consent__dialog-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

.gt-consent__button,
.gt-consent__close,
.gt-consent__settings-trigger,
.gt-consent-settings-link {
	appearance: none;
	font: inherit;
	cursor: pointer;
}

.gt-consent__button {
	min-height: 44px;
	padding: 10px 17px;
	border: 1px solid var(--gt-consent-accent);
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 700;
	white-space: nowrap;
}

.gt-consent__button--primary {
	color: var(--gt-consent-accent-contrast);
	background: var(--gt-consent-accent);
}

.gt-consent__button--secondary {
	color: var(--gt-consent-text);
	background: var(--gt-consent-surface);
}

.gt-consent__button:hover,
.gt-consent__button:focus-visible,
.gt-consent__close:hover,
.gt-consent__close:focus-visible,
.gt-consent__settings-trigger:hover,
.gt-consent__settings-trigger:focus-visible,
.gt-consent-settings-link:hover,
.gt-consent-settings-link:focus-visible,
.gt-consent__policy-link:focus-visible,
.gt-consent__switch input:focus-visible + .gt-consent__switch-track {
	outline: 3px solid var(--gt-consent-focus);
	outline-offset: 2px;
}

.gt-consent__backdrop {
	position: fixed;
	inset: 0;
	z-index: 999991;
	background: rgba(0, 0, 0, 0.58);
}

.gt-consent__dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 999992;
	width: min(620px, calc(100% - 32px));
	max-height: min(760px, calc(100vh - 32px));
	padding: 26px;
	overflow-y: auto;
	background: var(--gt-consent-surface);
	border: 1px solid var(--gt-consent-border);
	border-radius: 20px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
	transform: translate(-50%, -50%);
}

.gt-consent-dialog-open {
	overflow: hidden;
}

.gt-consent__dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.gt-consent__close {
	display: inline-grid;
	flex: 0 0 42px;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: var(--gt-consent-text);
	font-size: 1.8rem;
	line-height: 1;
	background: var(--gt-consent-surface-muted);
	border: 0;
	border-radius: 50%;
}

.gt-consent__options {
	display: grid;
	gap: 12px;
	margin: 24px 0;
}

.gt-consent__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px;
	background: var(--gt-consent-surface-muted);
	border: 1px solid var(--gt-consent-border);
	border-radius: 14px;
}

.gt-consent__option--detailed {
	display: block;
}

.gt-consent__option-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.gt-consent__notice {
	display: grid;
	gap: 8px;
	margin: 16px 0 0;
	padding-top: 14px;
	font-size: 0.82rem;
	border-top: 1px solid var(--gt-consent-border);
}

.gt-consent__notice div {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 10px;
}

.gt-consent__notice dt {
	font-weight: 700;
}

.gt-consent__notice dd {
	margin: 0;
	color: var(--gt-consent-text-muted);
}

.gt-consent__notice a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gt-consent__option-title {
	display: block;
	font-size: 1rem;
}

.gt-consent__option-description {
	display: block;
	margin-top: 5px;
	color: var(--gt-consent-text-muted);
	font-size: 0.88rem;
}

.gt-consent__required {
	flex: 0 0 auto;
	padding: 5px 9px;
	color: var(--gt-consent-text-muted);
	font-size: 0.78rem;
	font-weight: 700;
	background: var(--gt-consent-surface);
	border: 1px solid var(--gt-consent-border);
	border-radius: 999px;
}

.gt-consent__switch {
	position: relative;
	display: block;
	flex: 0 0 50px;
	width: 50px;
	height: 28px;
}

.gt-consent__switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.gt-consent__switch-track {
	position: absolute;
	inset: 0;
	background: #777777;
	border-radius: 999px;
	transition: background-color 160ms ease;
}

.gt-consent__switch-track::after {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	content: "";
	transition: transform 160ms ease;
}

.gt-consent__switch input:checked + .gt-consent__switch-track {
	background: var(--gt-consent-accent);
}

.gt-consent__switch input:checked + .gt-consent__switch-track::after {
	transform: translateX(22px);
}

.gt-consent__dialog-actions {
	justify-content: flex-end;
}

.gt-consent__settings-trigger {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 999980;
	padding: 8px 12px;
	color: var(--gt-consent-text);
	font-size: 0.76rem;
	font-weight: 700;
	background: var(--gt-consent-surface);
	border: 1px solid var(--gt-consent-border);
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.gt-consent__banner:not([hidden]) ~ .gt-consent__settings-trigger {
	display: none;
}

.gt-consent-settings-link {
	padding: 0;
	color: inherit;
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gt-consent__status {
	position: fixed;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html[data-gt-theme="dark"] .gt-consent {
	--gt-consent-accent: #f4f4f1;
	--gt-consent-accent-contrast: #111111;
	--gt-consent-surface: #171717;
	--gt-consent-surface-muted: #242424;
	--gt-consent-text: #f4f4f1;
	--gt-consent-text-muted: #c3c3bd;
	--gt-consent-border: #44443f;
}

html[data-gt-theme="light"] .gt-consent {
	--gt-consent-accent: #111111;
	--gt-consent-accent-contrast: #ffffff;
	--gt-consent-surface: #ffffff;
	--gt-consent-surface-muted: #f5f5f3;
	--gt-consent-text: #151515;
	--gt-consent-text-muted: #5e5e5e;
	--gt-consent-border: #d8d8d4;
}

@media (max-width: 860px) {
	.gt-consent__banner {
		align-items: stretch;
		flex-direction: column;
		gap: 18px;
	}

	.gt-consent__actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.gt-consent__button {
		white-space: normal;
	}
}

@media (max-width: 560px) {
	.gt-consent__banner {
		right: 12px;
		bottom: 12px;
		left: 12px;
		padding: 20px;
		border-radius: 16px;
	}

	.gt-consent__actions,
	.gt-consent__dialog-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.gt-consent__dialog {
		width: calc(100% - 24px);
		max-height: calc(100vh - 24px);
		padding: 20px;
		border-radius: 16px;
	}

	.gt-consent__option {
		align-items: flex-start;
	}

	.gt-consent__notice div {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gt-consent__switch-track,
	.gt-consent__switch-track::after {
		transition: none;
	}
}

@media (prefers-color-scheme: dark) {
	.gt-consent {
		--gt-consent-accent: #f4f4f1;
		--gt-consent-accent-contrast: #111111;
		--gt-consent-surface: #171717;
		--gt-consent-surface-muted: #242424;
		--gt-consent-text: #f4f4f1;
		--gt-consent-text-muted: #c3c3bd;
		--gt-consent-border: #44443f;
	}
}
