#sbwc-box {
	--sbwc-accent: #4f46e5;
	--sbwc-accent-soft: #eef0ff;
	--sbwc-border: #d9dce3;
	--sbwc-text: #1f2430;
	--sbwc-muted: #8a90a0;
	margin: 0 0 1.5em;
}
#sbwc-box .sbwc-row { margin: 0 0 18px; }
#sbwc-box label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--sbwc-text); }

.sbwc-picker { position: relative; display: block; max-width: 320px; }
#sbwc-box .sbwc-input {
	display: block; width: 100%; box-sizing: border-box; margin: 0;
	padding: 13px 46px 13px 16px; font-size: 1rem; line-height: 1.4;
	color: var(--sbwc-text); background-color: #fff; background-repeat: no-repeat;
	background-position: right 14px center; background-size: 20px;
	border: 1px solid var(--sbwc-border); border-radius: 10px; cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
#sbwc-box .sbwc-date { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
#sbwc-box .sbwc-clock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
#sbwc-box .sbwc-input:hover { border-color: #b9bdc9; }
#sbwc-box .sbwc-input:focus,
#sbwc-box .sbwc-input[aria-expanded="true"] {
	outline: none; border-color: var(--sbwc-accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18);
}
.sbwc-hint { display: block; margin-top: 8px; color: #6b7280; font-size: .85em; }

/* Popup card */
.sbwc-pop {
	position: absolute; z-index: 99; top: calc(100% + 8px); left: 0;
	width: 300px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 14px;
	background: #fff; border: 1px solid var(--sbwc-border); border-radius: 16px;
	box-shadow: 0 16px 40px rgba(20, 24, 40, .18);
	animation: sbwc-pop .14s ease-out;
}
.sbwc-pop[hidden] { display: none; }
@keyframes sbwc-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

#sbwc-box .sbwc-pop button {
	margin: 0; min-width: 0; box-shadow: none; text-transform: none; letter-spacing: 0;
	font-family: inherit; cursor: pointer;
}

/* Calendar */
.sbwc-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sbwc-cal-title { font-weight: 700; color: var(--sbwc-text); }
#sbwc-box .sbwc-nav {
	width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
	background: #f3f4f8; color: var(--sbwc-text); font-size: 1.3rem; line-height: 34px;
}
#sbwc-box .sbwc-nav:hover:not(:disabled) { background: var(--sbwc-accent-soft); }
#sbwc-box .sbwc-nav:disabled { opacity: .35; cursor: not-allowed; }
.sbwc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sbwc-cal-dow { margin-bottom: 4px; }
.sbwc-cal-dow span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--sbwc-muted); text-transform: uppercase; }
#sbwc-box .sbwc-day {
	height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent;
	color: var(--sbwc-text); font-size: .9rem; line-height: 36px;
}
#sbwc-box .sbwc-day:hover:not(:disabled) { background: var(--sbwc-accent-soft); }
#sbwc-box .sbwc-day.is-sel { background: var(--sbwc-accent); color: #fff; font-weight: 700; }
#sbwc-box .sbwc-day:disabled { color: #c3c7d2; background: transparent; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.12); }

/* Time picker: Hour | Minute | AM/PM */
.sbwc-tp-cols { display: flex; gap: 8px; }
.sbwc-tp-head { display: flex; gap: 8px; margin-bottom: 6px; }
.sbwc-tp-head span { flex: 1; text-align: center; font-size: .72rem; font-weight: 700; color: var(--sbwc-muted); text-transform: uppercase; }
.sbwc-tp-col {
	position: relative; display: block; flex: 1; height: 210px; overflow-y: auto;
	scroll-snap-type: y proximity; scrollbar-width: thin;
	border: 1px solid #eceef3; border-radius: 12px; padding: 4px;
}
#sbwc-box .sbwc-tp-item {
	display: block; width: 100%; padding: 10px 0; margin: 0 0 2px; border: 0; border-radius: 8px;
	background: transparent; color: var(--sbwc-text); font-size: 1rem; line-height: 1.2;
	text-align: center; scroll-snap-align: center;
}
#sbwc-box .sbwc-tp-item:hover:not(:disabled) { background: var(--sbwc-accent-soft); }
#sbwc-box .sbwc-tp-item.is-sel { background: var(--sbwc-accent); color: #fff; font-weight: 700; }
#sbwc-box .sbwc-tp-item:disabled { opacity: .35; cursor: not-allowed; }
.sbwc-tp-empty { display: block; padding: 10px 0; text-align: center; color: #aaa; }
#sbwc-box .sbwc-tp-done {
	display: block; width: 100%; margin: 12px 0 0; padding: 11px 14px; border: 0; border-radius: 10px;
	background: var(--sbwc-accent); color: #fff; font-size: 1rem; font-weight: 600;
}
#sbwc-box .sbwc-tp-done:hover { filter: brightness(1.08); }

#sbwc-result { min-height: 1.4em; margin-top: 4px; }
#sbwc-result.sbwc-ok { color: #1a7f37; }
#sbwc-result.sbwc-error { color: #b32d2e; }
#sbwc-result.sbwc-loading { color: #666; font-style: italic; }

/* Unavailable (booked / past / full) options: unmistakable, and un-clickable, whatever the theme does to buttons */
#sbwc-box .sbwc-tp-item:disabled,
#sbwc-box .sbwc-tp-item[disabled] {
	opacity: 1 !important; background: #f1f2f6 !important; color: #b4b9c6 !important;
	text-decoration: line-through !important; cursor: not-allowed !important; pointer-events: none !important;
}
#sbwc-box .sbwc-day:disabled,
#sbwc-box .sbwc-day[disabled] {
	background: #f1f2f6 !important; color: #b4b9c6 !important; text-decoration: line-through !important;
	cursor: not-allowed !important; pointer-events: none !important;
}
