/**
 * OSB Info Card Styles
 * Styles for improved service/resource cost and unavailable time display
 */

/* Info Card Container */
.osb-info-card-wrapper {
	margin-bottom: 20px;
}

.osb-info-card {
	background: #f8f9fa;
	border: 1px solid #e1e4e8;
	border-radius: 8px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Info Row */
.osb-info-row {
	display: flex;
	align-items: flex-start;
	padding: 16px 20px;
	border-bottom: 1px solid #e1e4e8;
}

.osb-info-row:last-child {
	border-bottom: none;
}

/* Info Icon */
.osb-info-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	margin-right: 16px;
	color: #0066cc;
	display: flex;
	align-items: center;
	justify-content: center;
}

.osb-info-icon svg {
	width: 100%;
	height: 100%;
}

.osb-info-unavailable .osb-info-icon {
	color: #d97706;
}

/* Info Content */
.osb-info-content {
	flex: 1;
	min-width: 0;
}

.osb-info-label {
	font-weight: 600;
	font-size: 14px;
	color: #24292e;
	margin-bottom: 8px;
}

.osb-info-value {
	font-size: 16px;
	color: #333;
	line-height: 1.5;
}

/* Cost Specific Styles */
.osb-info-cost .osb-info-value {
	font-size: 18px;
	font-weight: 600;
	color: #0066cc;
}

.osb-additional-cost {
	display: inline-block;
	margin-left: 8px;
	font-size: 14px;
	font-weight: 400;
	color: #666;
}

.osb-extras {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e1e4e8;
}

.osb-extra-item {
	font-size: 14px;
	color: #666;
	padding: 4px 0;
}

/* Busy Time List */
.osb-busy-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.osb-busy-item {
	display: flex;
	align-items: flex-start;
	padding: 8px 0;
	font-size: 14px;
	line-height: 1.6;
}

.osb-busy-item:first-child {
	padding-top: 0;
}

.osb-busy-number {
	flex-shrink: 0;
	width: 24px;
	font-weight: 600;
	color: #666;
}

.osb-busy-time {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

/* Busy Time Display Styles */
.osb-busy-time-normal,
.osb-busy-time-overnight {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.osb-time-range {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.osb-time-start,
.osb-time-end {
	font-weight: 600;
	color: #24292e;
}

.osb-time-separator {
	color: #666;
	margin: 0 2px;
}

.osb-arrow {
	color: #d97706;
	font-weight: bold;
	margin: 0 4px;
}

.osb-date {
	color: #666;
	font-size: 13px;
}

/* Overnight Badge */
.osb-badge-overnight {
	display: inline-block;
	background: #fef3c7;
	color: #92400e;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-left: 6px;
	white-space: nowrap;
}

.osb-is-overnight {
	background: #fffbeb;
	border-left: 3px solid #f59e0b;
	padding-left: 12px;
	margin-left: -15px;
	padding-right: 15px;
}

/* Busy Reason */
.osb-busy-reason {
	display: block;
	margin-top: 4px;
	margin-left: 24px;
	font-style: italic;
	color: #666;
	font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.osb-info-row {
		padding: 12px 16px;
	}
	
	.osb-info-icon {
		width: 28px;
		height: 28px;
		margin-right: 12px;
	}
	
	.osb-info-label {
		font-size: 13px;
	}
	
	.osb-info-value {
		font-size: 14px;
	}
	
	.osb-info-cost .osb-info-value {
		font-size: 16px;
	}
	
	.osb-busy-time-overnight {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	
	.osb-arrow {
		display: none;
	}
	
	.osb-badge-overnight {
		margin-left: 0;
		margin-top: 4px;
	}
}

@media (max-width: 480px) {
	.osb-info-card {
		border-radius: 6px;
	}
	
	.osb-info-row {
		flex-direction: column;
		padding: 12px;
	}
	
	.osb-info-icon {
		margin-right: 0;
		margin-bottom: 8px;
	}
	
	.osb-busy-number {
		width: 20px;
	}
	
	.osb-is-overnight {
		margin-left: -12px;
		padding-left: 9px;
		padding-right: 12px;
	}
}

/* Dark Mode Support (if theme supports it) */
@media (prefers-color-scheme: dark) {
	.osb-info-card {
		background: #1e293b;
		border-color: #334155;
	}
	
	.osb-info-row {
		border-color: #334155;
	}
	
	.osb-info-label {
		color: #e2e8f0;
	}
	
	.osb-info-value {
		color: #cbd5e1;
	}
	
	.osb-time-start,
	.osb-time-end {
		color: #e2e8f0;
	}
	
	.osb-extras {
		border-color: #334155;
	}
	
	.osb-is-overnight {
		background: #422006;
		border-color: #f59e0b;
	}
}
