/* Composition Booking — 고요하고 또렷하게 */
.ccb {
	--ccb-ink: #2b2924;
	--ccb-mute: #8a8478;
	--ccb-line: rgba(43, 41, 36, .12);
	--ccb-soft: #f5f3ee;
	--ccb-gold: #b8912a;
	margin: 4px 0 22px;
	color: var(--ccb-ink);
	font-size: 14px;
	line-height: 1.5;
}
.ccb *, .ccb *::before, .ccb *::after { box-sizing: border-box; }
.ccb [hidden] { display: none !important; }

.ccb-step { padding: 16px 0 18px; border-top: 1px solid var(--ccb-line); }
.ccb-step-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.ccb-step-no {
	display: inline-flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; border-radius: 50%;
	border: 1px solid var(--ccb-ink); font-size: 11px; line-height: 1; transform: translateY(-1px);
}
.ccb-step-title { font-weight: 600; font-size: 15px; }
.ccb-step-meta { margin-left: auto; font-size: 12px; color: var(--ccb-mute); text-align: right; }

/* calendar */
.ccb-skeleton, .ccb-msg { padding: 28px 0; text-align: center; color: var(--ccb-mute); font-size: 13px; }
.ccb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ccb-month { font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.ccb-nav {
	width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--ccb-ink);
	font-size: 22px; line-height: 1; cursor: pointer; border-radius: 50%;
}
.ccb-nav:hover:not(:disabled) { background: var(--ccb-soft); }
.ccb-nav:disabled { opacity: .2; cursor: default; }
.ccb-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.ccb-wd { text-align: center; font-size: 11px; color: var(--ccb-mute); padding: 6px 0 4px; }
.ccb-d {
	position: relative; aspect-ratio: 1 / 1; max-height: 52px; width: 100%;
	display: flex; align-items: center; justify-content: center;
	padding: 0; margin: 0; border: 0; border-radius: 50%; background: none;
	color: var(--ccb-ink); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums;
	cursor: pointer; transition: background-color .2s ease, color .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.ccb-d span { position: relative; z-index: 1; }
.ccb-d.is-open::after, .ccb-d.is-few::after {
	content: ""; position: absolute; left: 50%; bottom: 18%; width: 4px; height: 4px; margin-left: -2px;
	border-radius: 50%; background: var(--ccb-ink);
}
.ccb-d.is-few::after { background: var(--ccb-gold); }
.ccb-d.is-off { color: rgba(43, 41, 36, .22); cursor: default; }
.ccb-d.is-full { color: rgba(43, 41, 36, .3); cursor: default; }
.ccb-d.is-full span { text-decoration: line-through; }
.ccb-d.is-today span { font-weight: 700; }
.ccb-d:hover:not(:disabled):not(.is-sel) { background: var(--ccb-soft); }
.ccb-d.is-sel { background: var(--ccb-ink); color: #fff; }
.ccb-d.is-sel::after { background: #fff; }
.ccb-d:focus-visible, .ccb-t:focus-visible, .ccb-nav:focus-visible { outline: 2px solid var(--ccb-gold); outline-offset: 2px; }

.ccb-legend { display: flex; gap: 14px; justify-content: flex-end; margin-top: 10px; font-size: 11px; color: var(--ccb-mute); }
.ccb-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ccb-legend span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ccb-ink); }
.ccb-legend .lg-few::before { background: var(--ccb-gold); }
.ccb-legend .lg-full::before { background: none; width: 10px; height: 1px; border-radius: 0; background: rgba(43, 41, 36, .4); }

.ccb-earliest {
	display: block; width: 100%; margin-top: 14px; padding: 11px 14px;
	border: 1px solid var(--ccb-line); background: var(--ccb-soft); color: var(--ccb-ink);
	font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.ccb-earliest:hover { border-color: var(--ccb-ink); }

/* times */
.ccb-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ccb-t {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	padding: 11px 14px; border: 1px solid var(--ccb-line); background: #fff; color: var(--ccb-ink);
	font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.ccb-t:hover:not(:disabled) { border-color: var(--ccb-ink); }
.ccb-t-time { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ccb-t-sub { font-size: 12px; color: var(--ccb-mute); }
.ccb-t.is-few .ccb-t-sub { color: var(--ccb-gold); }
.ccb-t.is-sel { border-color: var(--ccb-ink); background: var(--ccb-ink); color: #fff; }
.ccb-t.is-sel .ccb-t-sub { color: rgba(255, 255, 255, .75); }
.ccb-t.is-off { cursor: default; background: var(--ccb-soft); color: rgba(43, 41, 36, .35); }
.ccb-t.is-off .ccb-t-time { text-decoration: line-through; }

/* picked summary */
.ccb-picked {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	padding: 14px 16px; margin-top: 4px; border: 1px solid var(--ccb-ink); background: #fff;
}
.ccb-picked-k { flex: 0 0 100%; font-size: 12px; color: var(--ccb-mute); margin-bottom: -6px; }
.ccb-picked-v { font-weight: 500; flex: 1 1 0; min-width: 0; }
.ccb-picked-change {
	padding: 0; border: 0; background: none; color: var(--ccb-ink); font: inherit; font-size: 13px;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ccb:not(.is-done) .ccb-picked-change { display: none; }
.ccb.is-done .ccb-step { display: none; }
.ccb.is-done .ccb-picked { animation: ccb-in .35s ease; }
@keyframes ccb-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.ccb-error { margin: 10px 0 0; padding: 10px 14px; background: #fbf3e4; color: #7a5b0b; font-size: 13px; }
.ccb.ccb-shake .ccb-error { animation: ccb-shake .4s ease; }
@keyframes ccb-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.ccb-info { margin-top: 14px; font-size: 12.5px; color: var(--ccb-mute); line-height: 1.65; }
.ccb-info p { margin: 0 0 4px; }
.ccb-place::before { content: "◦ "; }

/* 인원 라벨 */
.quantity.ccb-qty { display: inline-flex !important; align-items: center; gap: 10px; }
.ccb-qty-label { font-size: 13px; color: var(--ccb-mute); white-space: nowrap; }

@media (max-width: 767px) {
	.ccb-step { padding: 14px 0 16px; }
	.ccb-d { max-height: none; font-size: 15px; }
	.ccb-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ccb-legend { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.ccb * { animation: none !important; transition: none !important; }
}

/* 1.0.1 — 폼이 가로 flex(단순 상품 등)여도 캘린더는 한 줄 전체, 인원은 그 아래 한 줄 */
form.cart > .ccb,
form.cart .ccb {
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	order: -2;
}
form.cart > .quantity.ccb-qty,
form.cart .woocommerce-variation-add-to-cart > .quantity.ccb-qty {
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	order: -1;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 14px !important;
	padding: 12px 0 0;
	border-top: 1px solid var(--ccb-line, rgba(43, 41, 36, .12));
}
form.cart .quantity.ccb-qty .ccb-qty-label { font-size: 15px; font-weight: 600; color: #2b2924; }
form.cart .woocommerce-variation-add-to-cart { flex-wrap: wrap; }

/* 선택한 일정 요약 한 줄 정리 (테마 버튼 스타일 덮어쓰기) */
.ccb .ccb-picked-v { flex: 1 1 auto !important; min-width: 0; }
.ccb .ccb-picked-change { width: auto !important; min-width: 0 !important; max-width: none !important; height: auto !important; padding: 0 !important; margin: 0 0 0 auto !important; flex: 0 0 auto !important; background: none !important; border: 0 !important; color: #2b2924 !important; font-size: 13px !important; font-weight: 400 !important; line-height: 1.5 !important; }
.ccb .ccb-earliest, .ccb .ccb-t { text-align: left !important; justify-content: flex-start; }

/* 1.2.0 묶음 예약 (예: 7일 안 3회) */
.ccb .ccb-d.is-out { color: rgba(43, 41, 36, .18); cursor: default; }
.ccb .ccb-d.is-out::after { display: none; }
.ccb .ccb-d.is-picked:not(.is-sel) { box-shadow: inset 0 0 0 1px var(--ccb-ink); }
.ccb .ccb-d-n {
	position: absolute; top: 3px; right: 3px; min-width: 14px; height: 14px; padding: 0 3px;
	background: var(--ccb-gold); color: #fff; font-size: 9px; font-style: normal; line-height: 14px; text-align: center;
}
.ccb .ccb-window { margin: 10px 0 0; font-size: 12px; color: var(--ccb-gold); }
.ccb .ccb-picked-list { display: flex; flex-wrap: wrap; gap: 6px; flex: 0 0 100%; }
.ccb .ccb-picked-list:empty { display: none; }
.ccb .ccb-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px;
	background: var(--ccb-soft); font-size: 13px; color: var(--ccb-ink);
}
.ccb .ccb-chip-x {
	width: 20px !important; height: 20px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
	border: 0 !important; background: none !important; color: var(--ccb-mute) !important; font-size: 15px !important; line-height: 1 !important; cursor: pointer;
}
.ccb .ccb-chip-x:hover { color: var(--ccb-ink) !important; }
.ccb--multi .ccb-picked-v:empty { display: none; }
