/*
 * The "Add to calendar" block our plugin adds to Amelia's confirmation. Kept plain and small so it
 * sits inside whatever card Amelia draws, in its own theme, without fighting it.
 */
.skp-calendar {
	margin: 0 0 1.25em;
	padding: 0.9em 1em;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
}

.skp-calendar__title {
	margin: 0 0 0.6em;
	font-size: 0.95em;
	font-weight: 600;
}

.skp-calendar__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.skp-calendar__link {
	display: inline-block;
	padding: 0.5em 0.9em;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	font-size: 0.9em;
	text-decoration: none;
	line-height: 1.2;
}

.skp-calendar__link:hover,
.skp-calendar__link:focus {
	border-color: #1d2327;
}

/*
 * Our own confirmation, for the pages where Amelia draws none after a payment. Plain and small, with
 * the calendar links inside it, so a pupil who has paid always sees that the booking is made.
 */
.skp-booked {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 2147483600;
	box-sizing: border-box;
	width: min(380px, calc(100vw - 32px));
	padding: 1.1em 1.2em;
	background: #fff;
	color: #1d2327;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	font-size: 15px;
	line-height: 1.45;
}

.skp-booked__close {
	position: absolute;
	top: 6px;
	right: 8px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 22px;
	line-height: 1;
	color: #50575e;
	cursor: pointer;
}

.skp-booked__title {
	margin: 0 0 0.2em;
	font-weight: 700;
	font-size: 1.05em;
}

.skp-booked__when {
	margin: 0 0 0.9em;
	color: #50575e;
}

.skp-booked__note {
	margin: 0.3em 0 0.9em;
	font-size: 0.92em;
	color: #50575e;
}

/* The booking's own details, as Amelia's confirmation lists them. */
.skp-booked__rows {
	margin: 0 0 1em;
	padding: 0;
}

.skp-booked__rows div {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: 0.2em 0;
	border-bottom: 1px solid #f0f0f1;
	font-size: 0.9em;
}

.skp-booked__rows div:last-child {
	border-bottom: 0;
}

.skp-booked__rows dt {
	margin: 0;
	color: #50575e;
	flex: 0 0 auto;
}

.skp-booked__rows dd {
	margin: 0;
	text-align: right;
	word-break: break-word;
}

.skp-booked .skp-calendar {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/* On a phone the card spans the width and stays above the browser's own bars. */
@media (max-width: 480px) {
	.skp-booked {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		max-height: 70vh;
		overflow: auto;
		padding: 1em;
	}

	.skp-booked .skp-calendar__row {
		gap: 0.4em;
	}

	.skp-booked .skp-calendar__link {
		padding: 0.55em 0.75em;
	}
}
