/* BellPush — bell widget + topic picker modal styles */

.bellpush-bell {
	position: fixed;
	width: var( --bp-size, 60px );
	height: var( --bp-size, 60px );
	border-radius: 50%;
	background: var( --bp-color, #2271b1 );
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.2 );
	z-index: 99999;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bellpush-bell:hover {
	transform: scale( 1.05 );
	box-shadow: 0 6px 16px rgba( 0, 0, 0, 0.25 );
}

.bellpush-bell svg {
	width: 55%;
	height: 55%;
}

.bellpush-pos-bottom-right {
	right: 20px;
	bottom: 20px;
}

.bellpush-pos-bottom-left {
	left: 20px;
	bottom: 20px;
}

.bellpush-pos-top-right {
	right: 20px;
	top: 20px;
}

.bellpush-pos-top-left {
	left: 20px;
	top: 20px;
}

.bellpush-close {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: #333;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba( 0, 0, 0, 0.2 );
}

/* iOS hint banner */
.bellpush-ios-hint {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #2271b1;
	color: #fff;
	padding: 12px 16px;
	font-size: 14px;
	z-index: 99999;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.bellpush-ios-hint button {
	background: transparent;
	color: #fff;
	border: 0;
	font-size: 20px;
	cursor: pointer;
	padding: 0 4px;
}

/* Topic picker modal */
.bellpush-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.5 );
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}

.bellpush-modal {
	background: #fff;
	border-radius: 12px;
	max-width: 480px;
	width: 100%;
	padding: 24px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.3 );
	max-height: 90vh;
	overflow-y: auto;
}

.bellpush-modal h3 {
	margin: 0 0 16px;
	font-size: 18px;
	color: #1d2327;
}

.bellpush-topic-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 130px, 1fr ) );
	gap: 10px;
	margin-bottom: 20px;
}

.bellpush-topic-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px 8px;
	border: 2px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	text-align: center;
}

.bellpush-topic-card:hover {
	border-color: #2271b1;
}

.bellpush-topic-card input {
	display: none;
}

.bellpush-topic-card input:checked + .bellpush-topic-icon ~ .bellpush-topic-name {
	font-weight: 600;
}

.bellpush-topic-card:has( input:checked ) {
	border-color: #2271b1;
	background: #f0f6fc;
}

.bellpush-topic-icon {
	font-size: 28px;
	margin-bottom: 6px;
}

.bellpush-topic-name {
	font-size: 14px;
	color: #1d2327;
}

.bellpush-modal-footer {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.bellpush-modal-footer button {
	padding: 10px 18px;
	border-radius: 6px;
	border: 0;
	font-size: 14px;
	cursor: pointer;
}

.bellpush-btn-skip {
	background: #f0f0f1;
	color: #1d2327;
}

.bellpush-btn-confirm {
	background: #2271b1;
	color: #fff;
}

.bellpush-btn-confirm:hover {
	background: #135e96;
}
