/* The theme's boxed-widget class provides the card chrome (background,
   padding, shadow) — only add our own when it's absent. */
.svp-box:not(.boxed-widget) {
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 20px;
	margin: 20px 0;
}

.svp-box-title {
	margin-top: 0;
}

.svp-box-title .fa {
	margin-right: 6px;
}

.svp-login-notice {
	margin: 0;
}

.svp-visit-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.svp-visit-form input[type="date"] {
	width: 100%;
	padding: 8px;
	margin-bottom: 14px;
}

.svp-slot-list {
	margin-bottom: 14px;
	min-height: 20px;
}

.svp-slot-select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.svp-slot-select.svp-slot-select-done {
	border-color: #28a745;
}

.svp-slot-confirm {
	margin-top: 8px;
	color: #28a745;
	font-weight: 600;
	min-height: 1em;
}

.svp-submit-btn {
	padding: 10px 18px;
	border: none;
	border-radius: 4px;
	background: #2c6fbb;
	color: #fff;
	cursor: pointer;
}

.svp-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.svp-form-message {
	margin-top: 10px;
}

/* Dashboard */

.svp-status-tabs {
	margin-bottom: 16px;
}

.svp-status-tabs a {
	display: inline-block;
	padding: 6px 12px;
	margin-right: 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-decoration: none;
}

.svp-status-tabs a.active {
	background: #2c6fbb;
	border-color: #2c6fbb;
	color: #fff;
}

.svp-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.svp-requests-message {
	margin-bottom: 12px;
	min-height: 1em;
	font-weight: 600;
}

.svp-row-past {
	opacity: 0.55;
}

.svp-past-label {
	font-size: 0.85em;
	color: #888;
}

.svp-requests-table {
	width: 100%;
	border-collapse: collapse;
}

.svp-requests-table th,
.svp-requests-table td {
	padding: 10px;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.svp-status-pending {
	color: #b8860b;
}

.svp-status-confirmed {
	color: #2a7a2a;
}

.svp-status-declined {
	color: #b02a2a;
}

.svp-action-btn {
	padding: 5px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	margin-right: 4px;
}

.svp-accept-btn {
	border-color: #2a7a2a;
	color: #2a7a2a;
}

.svp-decline-btn {
	border-color: #b02a2a;
	color: #b02a2a;
}

.svp-listing-availability {
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 20px;
}

.svp-weekday-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
	flex-wrap: wrap;
}

.svp-weekday-label {
	width: 100px;
	font-weight: 600;
}

.svp-range-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1;
}

.svp-range-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.svp-range-chip select {
	padding: 2px;
	min-width: 74px; /* keep "09:00" fully visible, esp. on mobile */
}

.svp-range-remove-btn {
	border: none;
	background: none;
	color: #b02a2a;
	cursor: pointer;
	font-weight: 700;
}

.svp-add-range-btn {
	border: 1px dashed #ccc;
	background: none;
	border-radius: 4px;
	padding: 4px 10px;
	cursor: pointer;
}

.svp-add-range-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.svp-save-availability-btn {
	margin-top: 14px;
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	background: #2c6fbb;
	color: #fff;
	cursor: pointer;
}

.svp-availability-message {
	margin-top: 8px;
}

/* Mobile */

@media ( max-width: 767px ) {
	.svp-box.boxed-widget {
		padding: 18px;
	}

	.svp-slot-select {
		padding: 12px 10px;
		font-size: 16px; /* prevents iOS zoom-on-focus */
	}

	.svp-submit-btn {
		width: 100%;
	}

	.svp-weekday-label {
		width: 100%;
	}

	.svp-range-chip {
		flex: 1 1 100%;
		justify-content: space-between;
	}

	.svp-status-tabs a {
		margin-bottom: 6px;
	}

	.svp-requests-table th,
	.svp-requests-table td {
		padding: 8px 6px;
		font-size: 14px;
	}
}
