/**
 * TFCS Booking Calendar Add-on – calendar day styles.
 * --tfcs-internal-color, --tfcs-internal-text-color and --tfcs-kitchen-color are printed inline from the settings.
 * Booking Calendar skins (24_9__*, 25_5__*) colour days through --wpbc_cal-* variables, so we just
 * override those variables on the single day cell.
 */

/* Internal booking (approved only): own colour instead of the skin's "approved" colour. */
.datepick-inline td.datepick-days-cell.date_approved.tfcs_internal {
	--wpbc_cal-approved-day-color: var(--tfcs-internal-color, #2f6f4f);
	--wpbc_cal-approved-text-color: var(--tfcs-internal-text-color, #fff);
}
/* Fallback for older skins that don't use the variables. */
.datepick-inline td.datepick-days-cell.date_approved.tfcs_internal:not(.tfcs_kitchen) .wpbc-cell-box {
	background: var(--tfcs-internal-color, #2f6f4f) !important;
	border-color: var(--tfcs-internal-color, #2f6f4f) !important;
}
.datepick-inline td.datepick-days-cell.date_approved.tfcs_internal a {
	color: var(--tfcs-internal-text-color, #fff) !important;
}

/* Boka endast kök: a SQUARE split on the diagonal – booked colour top-left, available colour bottom-right.
   Visual only: the day is still fully booked.
   Approved = kitchen colour, pending = the skin's pending colour, approved + Kotteri = Kotteri colour. */
.datepick-inline td.datepick-days-cell.tfcs_kitchen {
	--tfcs-kitchen-fill: var(--tfcs-kitchen-color, #8a5a2b);
	--tfcs-kitchen-free: var(--wpbc_cal-available-day-color, #fff);
}
.datepick-inline td.datepick-days-cell.tfcs_kitchen.date2approve:not(.date_approved) {
	--tfcs-kitchen-fill: var(--wpbc_cal-pending-day-color, #7281bf);
}
.datepick-inline td.datepick-days-cell.tfcs_kitchen.date_approved.tfcs_internal {
	--tfcs-kitchen-fill: var(--tfcs-internal-color, #2f6f4f);
}
.datepick-inline td.datepick-days-cell.tfcs_kitchen .wpbc-cell-box {
	background: linear-gradient(135deg, var(--tfcs-kitchen-fill) 0 50%, var(--tfcs-kitchen-free) 50% 100%) !important;
	border-color: var(--tfcs-kitchen-fill) !important;
	border-radius: 0 !important;                                    /* Square even in round skins. */
}
.datepick-inline td.datepick-days-cell.tfcs_kitchen a {
	text-shadow: 0 0 3px rgba(0, 0, 0, .55), 0 0 1px rgba(0, 0, 0, .8) !important;
	color: #fff !important;
}

/* Legend items (cloned from BC's "approved" legend cell, plus .tfcs_internal / .tfcs_kitchen).
   The kitchen item gets the diagonal from the rules above. */
.block_hints .tfcs_legend_internal td.tfcs_internal .wpbc-cell-box {
	background: var(--tfcs-internal-color, #2f6f4f) !important;
	border-color: var(--tfcs-internal-color, #2f6f4f) !important;
}
