/**
 * Chef SuperSaaS frontend (functional, not final visual design).
 */

.chef-supersaas-wrap {
	max-width: 48rem;
}

.chef-supersaas-rides {
	margin: 0 0 2rem;
}

.chef-supersaas-rides-sub {
	margin: 1.5rem 0 0.75rem;
	font-size: 1.15rem;
}

.chef-supersaas-ride-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.chef-supersaas-ride {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	background: #fff;
	border: 2px solid rgba(22, 35, 61, 0.12);
	border-radius: 10px;
}

.chef-supersaas-ride.is-past {
	opacity: 0.72;
}

.chef-supersaas-ride-when {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.chef-supersaas-ride-date {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1e3a72;
	text-transform: capitalize;
}

.chef-supersaas-ride-time,
.chef-supersaas-ride-detail {
	color: #3c4a63;
}

.chef-supersaas-ride-detail {
	display: block;
}

.chef-supersaas-ride-kicker {
	font-weight: 700;
	color: #1e3a72;
}

.chef-supersaas-ride-cancel {
	margin: 0;
	flex-shrink: 0;
}

.chef-supersaas-ride-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	text-align: right;
}

.chef-supersaas-ride-flag {
	display: inline-block;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: #eaf2fb;
	color: #1e3a72;
	font-size: 0.85rem;
	font-weight: 700;
}

.chef-supersaas-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.chef-supersaas-message {
	padding: 0.75rem 1rem;
	margin: 0 0 1rem;
	border: 1px solid #d0d0d0;
	background: #f7f7f7;
}

.chef-supersaas-message--error {
	border-color: #c0392b;
	background: #fdecea;
}

.chef-supersaas-message--success {
	border-color: #1e8449;
	background: #eafaf1;
}

.chef-supersaas-guest-list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.chef-supersaas-guest-list li {
	margin: 0 0 0.5rem;
}

.chef-supersaas-guest-list label {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	cursor: pointer;
}

.chef-supersaas-button {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 1px solid #222;
	background: #222;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
}

.chef-supersaas-button:hover,
.chef-supersaas-button:focus {
	opacity: 0.9;
}

.chef-supersaas-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.chef-supersaas-button--secondary {
	background: transparent;
	color: inherit;
}

.chef-supersaas-selected {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.chef-supersaas-context {
	margin: 0 0 1rem;
	font-weight: 600;
}

.chef-supersaas-calendar {
	min-height: 480px;
	margin-top: 1rem;
}

.chef-supersaas-api-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
	margin-bottom: 1rem;
}

.chef-supersaas-api-controls label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.chef-supersaas-slots {
	display: grid;
	gap: 0.5rem;
}

.chef-supersaas-slot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	padding: 0.75rem;
	border: 1px solid #ccc;
	background: #fff;
	cursor: pointer;
	text-align: left;
}

.chef-supersaas-slot:hover,
.chef-supersaas-slot:focus {
	border-color: #222;
}

.chef-supersaas-slot-meta {
	font-size: 0.875rem;
	opacity: 0.8;
}

.chef-supersaas-debug {
	margin-top: 2rem;
	padding: 1rem;
	border: 1px dashed #999;
	font-size: 0.875rem;
	background: #fff;
}

.chef-supersaas-debug h3 {
	margin: 0 0 0.75rem;
}

.chef-supersaas-debug dl {
	display: grid;
	grid-template-columns: 12rem 1fr;
	gap: 0.35rem 1rem;
	margin: 0;
}

.chef-supersaas-debug dt {
	font-weight: 600;
}

.chef-supersaas-debug dd {
	margin: 0;
	word-break: break-word;
}

.chef-supersaas-api-status[hidden],
.chef-supersaas-slots[hidden] {
	display: none;
}

.chef-supersaas-account {
	display: grid;
	gap: 0.75rem;
}

.chef-supersaas-account-balance {
	margin: 0;
}

.chef-supersaas-account-balance-label {
	font-weight: 600;
}

.chef-supersaas-shop {
	margin: 0;
}

.chef-supersaas-credits {
	white-space: nowrap;
}
