/* =============================================
   Compliance Guru CRM — Plan Widget
   Brand: #106af2 · #0c111d · #ffffff
   ============================================= */

/* ── Widget card ────────────────────────────────────────────────────────────── */

.cgc-widget {
	font-family: inherit;
	color: #ffffff;
	width: 100%;
	background: rgba(12, 17, 29, 0.78);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(16, 106, 242, 0.22);
	border-radius: 20px;
	box-shadow:
		0 2px 0 rgba(16, 106, 242, 0.18) inset,
		0 16px 48px rgba(12, 17, 29, 0.55),
		0 0 0 1px rgba(255, 255, 255, 0.04) inset;
	padding: 36px 40px;
	position: relative;
	overflow: hidden;
}

.cgc-widget::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(16, 106, 242, 0.6), transparent);
	pointer-events: none;
}

/* ── Modules table ──────────────────────────────────────────────────────────── */

.cgc-modules-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.cgc-modules-table th {
	padding: 10px 14px;
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: rgba(255, 255, 255, 0.35);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cgc-modules-table td {
	padding: 13px 14px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.85);
}

.cgc-modules-table tbody tr {
	transition: background .15s;
}

.cgc-modules-table tbody tr:hover {
	background: rgba(16, 106, 242, 0.06);
}

.cgc-col-price,
.cgc-col-sub { text-align: right; }

.cgc-modules-table tfoot td {
	border-top: 1px solid rgba(16, 106, 242, 0.35);
	border-bottom: none;
	font-weight: 700;
	padding: 16px 14px;
	background: rgba(16, 106, 242, 0.07);
}

.cgc-total-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: rgba(255, 255, 255, 0.45);
}

.cgc-total-value { text-align: right; }

.cgc-grand-total {
	font-size: 24px;
	font-weight: 800;
	color: #106af2;
}

.cgc-period-label {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.35);
	margin-left: 3px;
}

/* ── Stepper ────────────────────────────────────────────────────────────────── */

.cgc-stepper {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cgc-stepper button {
	width: 30px;
	height: 30px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.05);
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.7);
	transition: background .15s, border-color .15s, color .15s;
}

.cgc-stepper button:hover {
	background: #106af2;
	border-color: #106af2;
	color: #fff;
}

.cgc-stepper button:active { transform: scale(.92); }

.cgc-user-input {
	width: 52px;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 7px;
	padding: 5px 6px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	-moz-appearance: textfield;
	transition: border-color .15s, box-shadow .15s;
	outline: none;
}

.cgc-user-input:focus {
	border-color: #106af2;
	box-shadow: 0 0 0 3px rgba(16, 106, 242, 0.2);
}

.cgc-user-input::-webkit-inner-spin-button,
.cgc-user-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Error ──────────────────────────────────────────────────────────────────── */

.cgc-error {
	color: #f87171;
	font-size: 14px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.cgc-widget { padding: 24px 20px; }
	.cgc-interval-toggle { width: 100%; justify-content: center; }
	.cgc-toggle-btn { flex: 1; justify-content: center; }
	.cgc-modules-table th,
	.cgc-modules-table td { padding: 10px 8px; font-size: 13px; }
}
