/**
 * Club Booking – shared frontend components (buttons, badges, notices).
 *
 * Copyright (c) 2026 LepTech OÜ. All Rights Reserved.
 * Proprietary. Unauthorized copying, modification, or distribution is prohibited.
 */

.cb-booking-container,
.cb-events-list {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cb-booking-container {
	max-width: 960px;
	margin: 0 auto;
}

/* Admin bar "Muuda üritust" pencil. The bar's own .ab-icon rule overrides dashicons. */
#wpadminbar #wp-admin-bar-edit-event .ab-icon::before {
	content: "\f464";
	top: 2px;
}

/* Visibility state toggled from JavaScript */
.cb-booking-container .is-hidden {
	display: none !important;
}

/* Buttons */
.cb-btn {
	display: inline-block;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
}

.cb-btn-primary {
	background: #2563eb;
	color: #fff;
}

.cb-btn-primary:hover {
	background: #1d4ed8;
	color: #fff;
}

.cb-btn-secondary {
	background: #6b7280;
	color: #fff;
}

.cb-btn-secondary:hover {
	background: #4b5563;
	color: #fff;
}

.cb-btn-lg {
	padding: 14px 28px;
	font-size: 16px;
}

.cb-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Badges */
.cb-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.cb-badge-closed {
	background: #f3f4f6;
	color: #6b7280;
}

/* Notices */
.cb-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin: 15px 0;
}

.cb-notice-warning {
	background: #fef3c7;
	border: 1px solid #f59e0b;
	color: #92400e;
}

.cb-table-hold-warning {
	margin: 12px 0 20px;
	padding: 14px 16px;
	border-radius: 8px;
	background: #fef2f2;
	border: 1px solid #d63638;
	color: #9b1c1c;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.45;
}

.cb-error {
	color: #dc2626;
	padding: 10px;
}

/* Article class label */
.cb-cat-badge {
	display: inline-block;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--cb-swatch-color, #6b7280);
}
