/* CC Inventory Gate */
html.ccig-lock { overflow: hidden; }

.ccig-overlay {
	--ccig-accent: #1f1f1f;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.6);
	box-sizing: border-box;
}
.ccig-overlay[hidden] { display: none; }
.ccig-overlay *, .ccig-overlay *::before, .ccig-overlay *::after { box-sizing: border-box; }

.ccig-dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	color: #222;
	border-radius: 8px;
	padding: 32px 28px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
}

.ccig-close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: #555;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
	padding: 0;
}
.ccig-close:hover { color: #000; background: #f2f2f2; }

.ccig-title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: #111;
	text-transform: none;
}
.ccig-title:focus { outline: none; }

.ccig-location {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ccig-accent);
}
.ccig-location[hidden] { display: none; }

.ccig-intro { margin: 0 0 18px; color: #444; }

.ccig-field { margin: 0 0 14px; }
.ccig-field label {
	display: block;
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: #222;
}
.ccig-field input {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #8a8a8a;
	border-radius: 4px;
	background: #fff;
	color: #111;
	font-size: 16px; /* 16px stops iOS from zooming in */
	box-shadow: none;
}
.ccig-field input:focus,
.ccig-check input:focus-visible,
.ccig-submit:focus-visible,
.ccig-close:focus-visible {
	outline: 3px solid var(--ccig-accent);
	outline-offset: 2px;
}
.ccig-field input[aria-invalid="true"] { border-color: #b00020; }

.ccig-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 14px;
	font-size: 14px;
	color: #333;
}
.ccig-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; }
.ccig-check label { margin: 0; font-weight: 400; cursor: pointer; }

.ccig-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.ccig-error { margin: 0 0 10px; color: #b00020; font-size: 14px; font-weight: 600; }
.ccig-error:empty { display: none; }

.ccig-submit,
a.ccig-submit {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 4px;
	background: var(--the7-btn-bg, #ef524a);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;
	cursor: pointer;
}
.ccig-submit:hover { filter: brightness(1.12); }
.ccig-submit[disabled] { opacity: 0.7; cursor: wait; }

.ccig-privacy { margin: 12px 0 0; font-size: 12.5px; color: #666; }

.ccig-step[hidden] { display: none; }

@media (max-width: 480px) {
	.ccig-overlay { align-items: flex-end; padding: 0; }
	.ccig-dialog { max-width: none; max-height: 92vh; border-radius: 12px 12px 0 0; padding: 28px 20px 22px; }
}

@media (prefers-reduced-motion: no-preference) {
	.ccig-dialog { animation: ccig-in 0.18s ease-out; }
	@keyframes ccig-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
