.cwb-section {
	margin: 1.5rem 0;
}

.cwb-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cwb-card,
.cwb-details {
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.cwb-card-media img,
.cwb-details-media img {
	display: block;
	width: 100%;
	height: auto;
}

.cwb-card-placeholder {
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f6f6f6;
	color: #666;
}

.cwb-card-body {
	padding: 0.9rem;
}

.cwb-card-title {
	margin: 0 0 0.45rem;
	font-size: 1.1rem;
}

.cwb-card-meta,
.cwb-card-price,
.cwb-card-payment {
	margin: 0.25rem 0;
}

.cwb-card-footer {
	margin-top: 0.7rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.cwb-status {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.85rem;
}

.cwb-status.is-available {
	background: #e8f7ec;
	color: #155724;
}

.cwb-status.is-full {
	background: #fdecec;
	color: #7a1f1f;
}

.cwb-btn {
	display: inline-block;
	padding: 0.45rem 0.8rem;
	border-radius: 8px;
	text-decoration: none;
	border: 1px solid #222;
	background: #222;
	color: #fff;
	cursor: pointer;
}

.cwb-btn:hover,
.cwb-btn:focus {
	background: #000;
	color: #fff;
}

.cwb-btn-primary {
	padding: 0.58rem 1.05rem;
	font-size: 1rem;
	font-weight: 600;
}

.cwb-btn-disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.cwb-details-section {
	width: 100%;
	max-width: none;
	margin-top: 1.25rem;
}

.cwb-details-section .cwb-details {
	width: 100%;
	max-width: none;
}

.cwb-details {
	padding: 1rem;
}

.cwb-details-header {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.25rem;
}

.cwb-details-header h2 {
	margin: 0;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 700;
}

.cwb-details-grid {
	margin-top: 12px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	align-items: start;
	column-gap: 0.45rem;
	row-gap: 0.75rem;
}

.cwb-details-media {
	width: 100%;
}

.cwb-details-media img {
	width: 100%;
	max-width: 360px;
	max-height: 420px;
	object-fit: cover;
	border-radius: 10px;
}

.cwb-details-content {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.cwb-details-status {
	order: 1;
	margin-bottom: 8px;
}

.cwb-details-cta {
	order: 3;
	margin-top: 8px;
	margin-bottom: 0;
}

.cwb-details-list {
	order: 2;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
}

.cwb-details-list li {
	margin: 0 0 8px;
	line-height: 1.55;
	font-weight: 400;
}

.cwb-details-list li strong {
	font-weight: 600;
}

.cwb-registration {
	margin-top: 16px;
	padding-top: 1rem;
	border-top: 1px solid #eee;
}

.cwb-registration h3 {
	margin: 0 0 0.75rem;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 600;
}

.cwb-registration input,
.cwb-registration select,
.cwb-registration textarea {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 0.62rem 0.7rem;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cwb-registration input:focus,
.cwb-registration select:focus,
.cwb-registration textarea:focus {
	outline: none;
	border-color: #9ca3af;
	box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}



.cwb-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 12px;
	row-gap: 0;
}
.cwb-registration form,
.cwb-form-grid,
.cwb-form-grid > p {
	box-sizing: border-box;
	min-width: 0;
}

.cwb-registration input[type="text"],
.cwb-registration input[type="email"],
.cwb-registration input[type="tel"],
.cwb-registration input[type="number"],
.cwb-registration textarea,
.cwb-registration select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.cwb-form-grid p {
	margin: 0 0 16px;
}

.cwb-form-grid input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.cwb-registration form > p {
	margin: 0 0 16px;
}

.cwb-registration .cwb-form-note + p {
	margin-top: 18px;
}

.cwb-registration form > p:last-child {
	margin-top: 16px;
	margin-bottom: 0;
}

.cwb-field-help {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.86em;
	color: #666;
	line-height: 1.4;
}

.cwb-form-note {
	margin-top: 12px;
	margin-bottom: 20px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.5;
	color: #6b7280;
	background: #f9fafb;
	border-left: 3px solid #e5e7eb;
	border-radius: 6px;
}

.cwb-notice {
	padding: 0.8rem;
	background: #f6f6f6;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.cwb-notice.is-success {
	background: #e8f7ec;
	color: #155724;
}

.cwb-notice.is-error {
	background: #fdecec;
	color: #7a1f1f;
}

.cwb-calendar-section {
	width: 100%;
	max-width: none;
	margin: 2rem 0;
	padding-block: 0.35rem;
}

.cwb-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1rem;
}

.cwb-calendar-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
}

.cwb-calendar-nav {
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 0.4rem 0.65rem;
	color: inherit;
	white-space: nowrap;
}

.cwb-calendar-nav:hover,
.cwb-calendar-nav:focus {
	border-color: #bbb;
	background: #fafafa;
}

.cwb-calendar-desktop {
	display: block;
}

.cwb-calendar-mobile {
	display: none;
}

.cwb-calendar-grid-wrap {
	width: 100%;
	overflow-x: hidden;
}

.cwb-calendar-grid {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	width: 100%;
	min-width: 0;
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.cwb-calendar-weekday,
.cwb-calendar-day {
	border-right: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

.cwb-calendar-weekday:nth-child(7n),
.cwb-calendar-day:nth-child(7n) {
	border-right: 0;
}

.cwb-calendar-day:nth-last-child(-n+7) {
	border-bottom: 0;
}

.cwb-calendar-weekday {
	font-weight: 600;
	font-size: 0.86rem;
	padding: 0.6rem 0.75rem;
	background: #fafafa;
	color: #555;
}

.cwb-calendar-day {
	position: relative;
	padding: 0.55rem 0.55rem 0.6rem;
	min-height: 140px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.cwb-calendar-day.is-outside-month {
	background: #fcfcfc;
	color: #9a9a9a;
}

.cwb-calendar-day-number {
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1;
	color: #757575;
	align-self: flex-end;
}

.cwb-calendar-events {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}

.cwb-calendar-event {
	display: block;
	text-decoration: none;
	padding: 0.38rem 0.45rem;
	border-radius: 8px;
	border: 1px solid #e5e5e5;
	background: #f9fafb;
	color: inherit;
	line-height: 1.25;
	transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.cwb-calendar-event-title {
	display: block;
	font-size: 0.86rem;
	font-weight: 600;
}

.cwb-calendar-event:hover,
.cwb-calendar-event:focus {
	background: #f1f1f1;
	border-color: #d8d8d8;
}

.cwb-calendar-event.is-available {
	background: #f7faf7;
	border-color: #e1e8e1;
}

.cwb-calendar-event.is-full {
	background: #f4f4f4;
	border-color: #e1e1e1;
	opacity: 0.8;
}

.cwb-details-description-block {
	margin-top: 16px;
	padding-top: 0.8rem;
	border-top: 1px solid #eee;
}

.cwb-details-description {
	max-width: none;
	width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
	font-size: 0.93rem;
	line-height: 1.5;
}

.cwb-details-description > *:first-child {
	margin-top: 0;
}

.cwb-details-description > *:last-child {
	margin-bottom: 0;
}

.cwb-details-description p {
	margin: 0 0 0.85em;
}

.cwb-required {
	font-weight: 700;
}

@media (max-width: 900px) {
	.cwb-calendar-header {
		gap: 0.6rem;
		flex-wrap: wrap;
	}

	.cwb-calendar-title {
		flex: 1 1 100%;
	}
}

@media (min-width: 768px) {
	.cwb-details-header h2 {
		font-size: 30px;
	}
}

@media (max-width: 768px) {
	.cwb-details-header h2 {
		font-size: 24px;
		line-height: 1.3;
		font-weight: 700;
	}

	.cwb-registration h3 {
		font-size: 24px;
		line-height: 1.25;
		font-weight: 600;
	}

	.cwb-details-grid {
		grid-template-columns: 1fr;
		gap: 0.9rem;
	}

	.cwb-details-media {
		order: 1;
	}

	.cwb-details-content {
		order: 2;
	}

	.cwb-details-list {
		order: 2;
	}

	.cwb-details-cta {
		order: 3;
		margin-top: 10px;
		margin-bottom: 0;
	}

	.cwb-form-grid {
		grid-template-columns: 1fr;
	}

	.cwb-calendar-desktop {
		display: none;
	}

	.cwb-calendar-mobile {
		display: block;
	}

	.cwb-calendar-header {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 0.5rem 0.75rem;
	}

	.cwb-calendar-title {
		grid-column: 1 / -1;
		order: 1;
		text-align: center;
		margin: 0 0 0.1rem;
		font-size: 24px;
		line-height: 1.25;
		font-weight: 700;
	}

	.cwb-calendar-nav {
		width: 100%;
		box-sizing: border-box;
	}

	.cwb-calendar-header .cwb-calendar-nav:first-of-type {
		order: 2;
		justify-self: start;
		text-align: left;
	}

	.cwb-calendar-header .cwb-calendar-nav:last-of-type {
		order: 3;
		justify-self: end;
		text-align: right;
	}

	.cwb-mobile-day {
		margin-bottom: 1rem;
		padding-bottom: 0.75rem;
		border-bottom: 1px solid #ececec;
	}

	.cwb-mobile-day:last-child {
		margin-bottom: 0;
		border-bottom: 0;
		padding-bottom: 0;
	}

	.cwb-mobile-day-heading {
		margin: 0 0 0.55rem;
		font-size: 0.98rem;
		line-height: 1.3;
	}

	.cwb-mobile-events {
		list-style: none;
		margin: 0;
		padding: 0;
		display: grid;
		gap: 0.45rem;
	}

	.cwb-mobile-event {
		display: block;
		padding: 0.6rem 0.7rem;
		border: 1px solid #e5e5e5;
		border-radius: 8px;
		text-decoration: none;
		color: inherit;
		background: #fafafa;
	}

	.cwb-mobile-event.is-full {
		opacity: 0.8;
	}

	.cwb-mobile-event-title {
		font-size: 0.92rem;
		font-weight: 600;
		line-height: 1.3;
	}
}