/**
 * Appointment Scheduler - front end.
 *
 * Every colour, font size and spacing value comes from a CSS variable that the
 * admin panel writes inline, so this file only describes the structure.
 */

.aps-wrap,
.aps-wrap * {
	box-sizing: border-box;
}

.aps-wrap {
	font-family: var(--aps-font-body);
	color: var(--aps-body-text);
	background: var(--aps-page-bg);
	padding: var(--aps-outer-padding);
	max-width: var(--aps-max-width);
	margin: 0 auto;
	-webkit-font-smoothing: antialiased;
}

.aps-wrap .aps-form {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/*
 * Themes love to restyle every button and input on the page, usually with a
 * white hover colour that made the times unreadable. Everything interactive
 * here therefore states its own font, colour and background in every state,
 * and does it from a selector deep enough to outrank the theme.
 */
.aps-wrap button,
.aps-wrap input,
.aps-wrap select,
.aps-wrap textarea {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
}

.aps-wrap button {
	box-shadow: none;
	border-style: solid;
}

.aps-wrap button:focus {
	outline: none;
}

/* --------------------------------------------------------------------- */
/* Grid                                                                    */
/* --------------------------------------------------------------------- */

.aps-grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--aps-gap);
	align-items: stretch;
}

.aps-card {
	background: var(--aps-card-bg);
	border: 1px solid var(--aps-card-border);
	border-radius: var(--aps-radius);
	box-shadow: var(--aps-shadow);
	padding: var(--aps-card-padding);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.aps-card-service {
	flex: var(--aps-col-service) 1 280px;
}

.aps-card-info {
	flex: var(--aps-col-info) 1 260px;
}

.aps-card-date {
	flex: var(--aps-col-date) 1 420px;
}

.aps-layout-stacked .aps-card {
	flex: 1 1 100%;
}

.aps-layout-two-column .aps-card-service,
.aps-layout-two-column .aps-card-info {
	flex: 1 1 320px;
}

.aps-layout-two-column .aps-card-date {
	flex: 1 1 100%;
}

/* --------------------------------------------------------------------- */
/* Card heading                                                            */
/* --------------------------------------------------------------------- */

.aps-card-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
}

.aps-step-badge {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--aps-step-badge-bg);
	color: var(--aps-step-badge-text);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--aps-font-body);
	font-size: var(--aps-step-badge-size);
	font-weight: var(--aps-step-badge-weight);
	line-height: var(--aps-step-badge-lh);
	margin-top: 2px;
	box-shadow: 0 2px 6px rgba(184, 113, 15, .28);
}

.aps-card-head-text {
	min-width: 0;
}

.aps-wrap .aps-step-title {
	margin: 0 0 4px;
	padding: 0;
	font-family: var(--aps-font-heading);
	font-size: var(--aps-step-title-size);
	font-weight: var(--aps-step-title-weight);
	line-height: var(--aps-step-title-lh);
	color: var(--aps-heading);
	letter-spacing: -0.2px;
}

.aps-wrap .aps-step-sub {
	margin: 0;
	padding: 0;
	font-size: var(--aps-step-sub-size);
	font-weight: var(--aps-step-sub-weight);
	line-height: var(--aps-step-sub-lh);
	color: var(--aps-sub-text);
}

/* --------------------------------------------------------------------- */
/* Step 1 - appointment types                                              */
/* --------------------------------------------------------------------- */

.aps-options {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.aps-option {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 11px;
	background: var(--aps-option-bg);
	border: 1px solid var(--aps-option-border);
	border-radius: 9px;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
	margin: 0;
}

.aps-wrap .aps-options .aps-option:hover {
	border-color: var(--aps-option-hover-border);
	box-shadow: 0 1px 4px rgba(27, 42, 91, .07);
}

.aps-wrap .aps-options .aps-option.is-selected {
	background: var(--aps-option-sel-bg);
	border-color: var(--aps-option-sel-border);
	box-shadow: inset 0 0 0 1px var(--aps-option-sel-border);
}

.aps-wrap .aps-options .aps-option:hover .aps-option-label,
.aps-wrap .aps-options .aps-option.is-selected .aps-option-label {
	color: var(--aps-option-label);
}

.aps-wrap .aps-options .aps-option:hover .aps-option-desc,
.aps-wrap .aps-options .aps-option.is-selected .aps-option-desc {
	color: var(--aps-option-desc);
}

.aps-option-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.aps-radio {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	border: 1.5px solid var(--aps-radio-border);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
	transition: border-color .15s ease;
}

.aps-option.is-selected .aps-radio {
	border-color: var(--aps-radio-dot);
}

.aps-radio-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: transparent;
	transition: background-color .15s ease;
}

.aps-option.is-selected .aps-radio-dot {
	background: var(--aps-radio-dot);
}

.aps-option-input:focus-visible + .aps-radio {
	outline: 2px solid var(--aps-input-focus);
	outline-offset: 2px;
}

.aps-option-body {
	display: block;
	min-width: 0;
}

.aps-option-label {
	display: block;
	font-size: var(--aps-option-label-size);
	font-weight: var(--aps-option-label-weight);
	line-height: var(--aps-option-label-lh);
	color: var(--aps-option-label);
}

.aps-option-desc {
	display: block;
	margin-top: 2px;
	font-size: var(--aps-option-desc-size);
	font-weight: var(--aps-option-desc-weight);
	line-height: var(--aps-option-desc-lh);
	color: var(--aps-option-desc);
}

.aps-empty {
	margin: 0;
	font-size: var(--aps-note-size);
	color: var(--aps-muted-text);
}

/* The panel that drops down under a type that skips the calendar ---------- */

.aps-callback {
	margin: 0;
	padding: 11px 13px 12px;
	background: var(--aps-option-sel-bg);
	border: 1px solid var(--aps-option-sel-border);
	border-radius: 9px;
	animation: aps-drop .18s ease;
}

.aps-callback[hidden] {
	display: none;
}

@keyframes aps-drop {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

.aps-callback-title {
	display: block;
	font-family: var(--aps-font-body);
	font-size: var(--aps-label-size);
	font-weight: var(--aps-label-weight);
	line-height: var(--aps-label-lh);
	color: var(--aps-label-text);
}

.aps-callback-sub {
	display: block;
	margin-top: 2px;
	font-size: var(--aps-note-size);
	font-weight: var(--aps-note-weight);
	line-height: var(--aps-note-lh);
	color: var(--aps-option-desc);
}

.aps-callback-options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 9px;
}

.aps-wrap .aps-callback-options .aps-callback-option {
	appearance: none;
	flex: 1 1 auto;
	margin: 0;
	padding: 8px 10px;
	background: var(--aps-time-bg);
	border: 1px solid var(--aps-time-border);
	border-radius: 8px;
	color: var(--aps-time-text);
	font-family: var(--aps-font-body);
	font-size: var(--aps-time-size);
	font-weight: var(--aps-time-weight);
	line-height: var(--aps-time-lh);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}

.aps-wrap .aps-callback-options .aps-callback-option:hover,
.aps-wrap .aps-callback-options .aps-callback-option:focus {
	background: var(--aps-time-hover-bg);
	border-color: var(--aps-time-sel-bg);
	color: var(--aps-time-hover-text);
}

.aps-wrap .aps-callback-options .aps-callback-option.is-selected,
.aps-wrap .aps-callback-options .aps-callback-option.is-selected:hover,
.aps-wrap .aps-callback-options .aps-callback-option.is-selected:focus {
	background: var(--aps-time-sel-bg);
	border-color: var(--aps-time-sel-bg);
	color: var(--aps-time-sel-text);
	font-weight: 600;
	box-shadow: 0 2px 6px rgba(184, 113, 15, .25);
}

.aps-wrap .aps-callback-options .aps-callback-option:focus-visible {
	outline: 2px solid var(--aps-input-focus);
	outline-offset: 2px;
}

.aps-callback .aps-field-error {
	margin-top: 7px;
}

/* --------------------------------------------------------------------- */
/* Step 2 - contact fields                                                 */
/* --------------------------------------------------------------------- */

.aps-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 11px;
	flex: 0 0 auto;
	align-content: flex-start;
}

.aps-field {
	min-width: 0;
	flex: 1 1 100%;
}

.aps-field.aps-w-half {
	flex: 1 1 calc(50% - 6px);
}

.aps-wrap .aps-label {
	display: block;
	margin: 0 0 4px;
	font-size: var(--aps-label-size);
	font-weight: var(--aps-label-weight);
	line-height: var(--aps-label-lh);
	color: var(--aps-label-text);
}

.aps-required {
	color: var(--aps-error-text);
	margin-left: 2px;
}

.aps-wrap .aps-input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 9px 13px;
	background: var(--aps-input-bg);
	border: 1px solid var(--aps-input-border);
	border-radius: 8px;
	color: var(--aps-input-text);
	font-family: var(--aps-font-body);
	font-size: var(--aps-input-size);
	font-weight: var(--aps-input-weight);
	line-height: var(--aps-input-lh);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	min-height: 38px;
}

.aps-wrap .aps-input::placeholder {
	color: var(--aps-placeholder);
	opacity: 1;
}

.aps-wrap .aps-input:focus {
	outline: none;
	border-color: var(--aps-input-focus);
	background: var(--aps-input-bg);
	color: var(--aps-input-text);
	box-shadow: 0 0 0 3px rgba(217, 138, 26, .14);
}

.aps-wrap .aps-textarea {
	min-height: 84px;
	resize: vertical;
}

.aps-wrap select.aps-select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%237A8AA3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.aps-radio-list {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.aps-radio-item,
.aps-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: var(--aps-input-size);
	color: var(--aps-body-text);
	cursor: pointer;
	margin: 0;
}

.aps-radio-item input,
.aps-checkbox input {
	margin: 3px 0 0;
	accent-color: var(--aps-button-bg);
}

.aps-hint {
	margin: 5px 0 0;
	font-size: var(--aps-note-size);
	line-height: var(--aps-note-lh);
	color: var(--aps-muted-text);
}

.aps-privacy {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 12px 0 0;
	padding-top: 0;
}

.aps-privacy-icon {
	flex: 0 0 auto;
	color: var(--aps-privacy-icon);
	display: inline-flex;
	margin-top: 1px;
}

.aps-privacy-text {
	font-size: var(--aps-note-size);
	line-height: var(--aps-note-lh);
	color: var(--aps-privacy-text);
}

/* --------------------------------------------------------------------- */
/* Step 3 - calendar and times                                             */
/* --------------------------------------------------------------------- */

.aps-date-area {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.aps-date-body {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	flex: 1 1 auto;
	min-width: 0;
	transition: opacity .18s ease, filter .18s ease;
}

/* Locked, because the chosen type does not use the calendar --------------- */

.aps-card-date.is-locked .aps-date-body {
	opacity: .32;
	filter: grayscale(1);
	pointer-events: none;
	user-select: none;
}

.aps-date-lock {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	animation: aps-drop .2s ease;
}

.aps-date-lock[hidden] {
	display: none;
}

.aps-date-lock-inner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 330px;
	padding: 14px 16px;
	background: var(--aps-option-sel-bg);
	border: 1px solid var(--aps-option-sel-border);
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(27, 42, 91, .1);
}

.aps-date-lock-icon {
	flex: 0 0 auto;
	display: inline-flex;
	margin-top: 1px;
	color: var(--aps-button-bg);
}

.aps-date-lock-text {
	font-size: var(--aps-note-size);
	font-weight: var(--aps-note-weight);
	line-height: 1.55;
	color: var(--aps-heading);
}

.aps-calendar {
	flex: 1 1 58%;
	min-width: 0;
}

.aps-times {
	flex: 0 1 190px;
	min-width: 168px;
	background: var(--aps-times-card-bg);
	border: 1px solid var(--aps-times-card-border);
	border-radius: 10px;
	padding: 12px;
}

.aps-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.aps-wrap .aps-cal-arrow {
	appearance: none;
	background: none;
	border: 0;
	padding: 6px;
	margin: 0;
	border-radius: 7px;
	color: var(--aps-cal-nav);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	transition: background-color .15s ease, color .15s ease;
}

.aps-wrap .aps-cal-arrow:hover:not(:disabled),
.aps-wrap .aps-cal-arrow:focus:not(:disabled) {
	background: var(--aps-cal-nav-hover-bg);
	color: var(--aps-heading);
}

.aps-wrap .aps-cal-arrow:focus-visible {
	outline: 2px solid var(--aps-input-focus);
	outline-offset: 1px;
}

.aps-wrap .aps-cal-arrow:disabled,
.aps-wrap .aps-cal-arrow:disabled:hover {
	opacity: .3;
	cursor: default;
	background: none;
	color: var(--aps-cal-nav);
}

.aps-cal-month {
	flex: 1 1 auto;
	text-align: center;
	font-family: var(--aps-font-heading);
	font-size: var(--aps-cal-month-size);
	font-weight: var(--aps-cal-month-weight);
	line-height: var(--aps-cal-month-lh);
	color: var(--aps-cal-month);
}

.aps-cal-dow {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	margin-bottom: 4px;
}

.aps-cal-dow span {
	text-align: center;
	font-size: 11px;
	font-weight: 500;
	color: var(--aps-cal-dow);
	padding: 2px 0;
}

.aps-cal-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 7px 2px;
}

.aps-wrap .aps-cal-days .aps-day {
	position: relative;
	appearance: none;
	border: 0;
	background: none;
	margin: 0;
	padding: 0;
	aspect-ratio: 1 / 1;
	min-height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--aps-font-body);
	font-size: var(--aps-cal-day-size);
	font-weight: var(--aps-cal-day-weight);
	line-height: var(--aps-cal-day-lh);
	color: var(--aps-day-text);
	cursor: default;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}

.aps-wrap .aps-cal-days .aps-day.is-outside,
.aps-wrap .aps-cal-days .aps-day.is-outside:hover {
	color: var(--aps-day-outside);
	background: none;
}

.aps-wrap .aps-cal-days .aps-day.is-closed,
.aps-wrap .aps-cal-days .aps-day.is-closed:hover {
	color: var(--aps-day-disabled);
	background: none;
}

.aps-wrap .aps-cal-days .aps-day.is-open {
	background: var(--aps-day-open-bg);
	color: var(--aps-day-open-text);
	cursor: pointer;
	font-weight: 600;
}

.aps-wrap .aps-cal-days .aps-day.is-open:hover,
.aps-wrap .aps-cal-days .aps-day.is-open:focus {
	background: var(--aps-day-hover-bg);
	color: var(--aps-day-open-text);
}

.aps-day.is-open::after,
.aps-day.is-selected::after {
	content: "";
	position: absolute;
	bottom: -3px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--aps-day-dot);
}

.aps-wrap .aps-cal-days .aps-day.is-selected,
.aps-wrap .aps-cal-days .aps-day.is-selected:hover,
.aps-wrap .aps-cal-days .aps-day.is-selected:focus {
	background: var(--aps-day-sel-bg);
	color: var(--aps-day-sel-text);
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 7px rgba(184, 113, 15, .32);
}

.aps-day:focus-visible {
	outline: 2px solid var(--aps-input-focus);
	outline-offset: 2px;
}

.aps-cal-days.is-loading {
	opacity: .45;
	pointer-events: none;
}

.aps-legend {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 9px;
}

.aps-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--aps-note-size);
	line-height: var(--aps-note-lh);
	color: var(--aps-sub-text);
}

.aps-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
	font-style: normal;
}

.aps-legend-dot.is-open {
	background: var(--aps-legend-open);
}

.aps-legend-dot.is-closed {
	background: var(--aps-legend-closed);
}

/* Times ---------------------------------------------------------------- */

.aps-wrap .aps-times-title {
	margin: 0 0 2px;
	padding: 0;
	font-family: var(--aps-font-heading);
	font-size: var(--aps-times-title-size);
	font-weight: var(--aps-times-title-weight);
	line-height: var(--aps-times-title-lh);
	color: var(--aps-heading);
}

.aps-times-date {
	margin: 0 0 8px;
	font-size: var(--aps-note-size);
	line-height: var(--aps-note-lh);
	color: var(--aps-sub-text);
	min-height: 1em;
}

.aps-times-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px;
}

.aps-times-note {
	grid-column: 1 / -1;
	margin: 0;
	font-size: var(--aps-note-size);
	line-height: var(--aps-note-lh);
	color: var(--aps-muted-text);
}

.aps-wrap .aps-times-grid .aps-time {
	appearance: none;
	margin: 0;
	padding: 8px 5px;
	background: var(--aps-time-bg);
	border: 1px solid var(--aps-time-border);
	border-radius: 8px;
	color: var(--aps-time-text);
	font-family: var(--aps-font-body);
	font-size: var(--aps-time-size);
	font-weight: var(--aps-time-weight);
	line-height: var(--aps-time-lh);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
	white-space: nowrap;
	min-height: 34px;
}

.aps-wrap .aps-times-grid .aps-time:hover:not(:disabled),
.aps-wrap .aps-times-grid .aps-time:focus:not(:disabled) {
	background: var(--aps-time-hover-bg);
	border-color: var(--aps-time-sel-bg);
	color: var(--aps-time-hover-text);
}

.aps-wrap .aps-times-grid .aps-time:focus-visible:not(:disabled) {
	box-shadow: 0 0 0 3px rgba(217, 138, 26, .22);
}

.aps-wrap .aps-times-grid .aps-time.is-selected,
.aps-wrap .aps-times-grid .aps-time.is-selected:hover,
.aps-wrap .aps-times-grid .aps-time.is-selected:focus {
	background: var(--aps-time-sel-bg);
	border-color: var(--aps-time-sel-bg);
	color: var(--aps-time-sel-text);
	font-weight: 600;
	box-shadow: 0 2px 6px rgba(184, 113, 15, .25);
}

.aps-wrap .aps-times-grid .aps-time:disabled,
.aps-wrap .aps-times-grid .aps-time:disabled:hover {
	color: var(--aps-time-off-text);
	background: var(--aps-time-bg);
	border-color: var(--aps-time-border);
	border-style: dashed;
	cursor: not-allowed;
	box-shadow: none;
}

.aps-times-grid.is-loading {
	opacity: .5;
	pointer-events: none;
}

.aps-tz {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 10px 0 0;
	padding-top: 8px;
	border-top: 1px solid var(--aps-divider);
}

.aps-tz-icon {
	flex: 0 0 auto;
	color: var(--aps-tz-icon);
	display: inline-flex;
	margin-top: 1px;
}

.aps-tz-text {
	font-size: var(--aps-note-size);
	line-height: var(--aps-note-lh);
	color: var(--aps-tz-text);
}

/* --------------------------------------------------------------------- */
/* Summary and submit                                                      */
/* --------------------------------------------------------------------- */

.aps-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 9px 12px;
	border-radius: 8px;
	background: var(--aps-option-sel-bg);
	border: 1px solid var(--aps-option-sel-border);
	font-size: var(--aps-note-size);
	line-height: var(--aps-note-lh);
	color: var(--aps-heading);
}

.aps-summary-icon {
	color: var(--aps-button-bg);
	display: inline-flex;
}

.aps-actions {
	display: flex;
	margin-top: 14px;
}

.aps-button-left .aps-actions {
	justify-content: flex-start;
}

.aps-button-center .aps-actions {
	justify-content: center;
}

.aps-button-right .aps-actions {
	justify-content: flex-end;
}

.aps-wrap .aps-submit {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 12px 24px;
	border: 0;
	border-radius: 8px;
	background: var(--aps-button-bg);
	color: var(--aps-button-text);
	font-family: var(--aps-font-body);
	font-size: var(--aps-button-size);
	font-weight: var(--aps-button-weight);
	line-height: var(--aps-button-lh);
	cursor: pointer;
	transition: background-color .15s ease, transform .1s ease;
	text-decoration: none;
}

.aps-wrap .aps-submit:hover,
.aps-wrap .aps-submit:focus,
.aps-wrap .aps-submit:active {
	background: var(--aps-button-bg-hover);
	color: var(--aps-button-text);
	box-shadow: 0 4px 12px rgba(184, 113, 15, .28);
}

.aps-wrap .aps-submit:focus-visible {
	outline: 2px solid var(--aps-heading);
	outline-offset: 2px;
}

.aps-wrap .aps-submit:active {
	transform: translateY(1px);
	box-shadow: none;
}

.aps-wrap .aps-submit.is-full {
	width: 100%;
}

.aps-wrap .aps-submit[disabled] {
	opacity: .65;
	cursor: default;
}

.aps-submit-icon {
	display: inline-flex;
	line-height: 0;
}

.aps-submit.is-busy .aps-submit-icon {
	animation: aps-pulse 1s ease-in-out infinite;
}

@keyframes aps-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .35; }
}

/* --------------------------------------------------------------------- */
/* Messages                                                                */
/* --------------------------------------------------------------------- */

.aps-field-error {
	margin: 5px 0 0;
	font-size: var(--aps-note-size);
	line-height: var(--aps-note-lh);
	color: var(--aps-error-text);
	display: none;
}

.aps-field-error.is-visible {
	display: block;
}

.aps-field.has-error .aps-input {
	border-color: var(--aps-error-border);
}

.aps-message {
	margin-top: var(--aps-gap);
}

.aps-message:empty {
	margin-top: 0;
}

.aps-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border-radius: var(--aps-radius);
	border: 1px solid transparent;
	font-size: 14px;
	line-height: 1.55;
}

.aps-notice-icon {
	flex: 0 0 auto;
	display: inline-flex;
	margin-top: 1px;
}

.aps-notice-title {
	display: block;
	font-weight: 600;
	margin-bottom: 3px;
	font-family: var(--aps-font-heading);
	font-size: 17px;
}

.aps-notice.is-success {
	background: var(--aps-success-bg);
	border-color: var(--aps-success-border);
	color: var(--aps-success-text);
}

.aps-notice.is-error {
	background: var(--aps-error-bg);
	border-color: var(--aps-error-border);
	color: var(--aps-error-text);
}

.aps-wrap .aps-again,
.aps-wrap .aps-again:hover,
.aps-wrap .aps-again:focus {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin-top: 8px;
	color: inherit;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	box-shadow: none;
}

.aps-wrap .aps-again:hover {
	opacity: .78;
}

/* Everything that uses the "small notes" typography setting -------------- */

.aps-hint,
.aps-privacy-text,
.aps-tz-text,
.aps-times-date,
.aps-times-note,
.aps-legend-item,
.aps-summary,
.aps-field-error,
.aps-empty {
	font-weight: var(--aps-note-weight);
}

.aps-summary-label {
	font-weight: 600;
}

/* Honeypot ------------------------------------------------------------- */

.aps-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------- */
/* Responsive                                                              */
/* --------------------------------------------------------------------- */

@media (max-width: 1080px) {
	.aps-card-service,
	.aps-card-info {
		flex: 1 1 calc(50% - var(--aps-gap));
	}

	.aps-card-date {
		flex: 1 1 100%;
	}
}

@media (max-width: 782px) {
	.aps-card-service,
	.aps-card-info,
	.aps-card-date {
		flex: 1 1 100%;
	}
}

@media (max-width: 620px) {
	.aps-date-body {
		flex-direction: column;
	}

	.aps-calendar,
	.aps-times {
		flex: 1 1 100%;
		width: 100%;
	}

	.aps-times-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.aps-field.aps-w-half {
		flex: 1 1 100%;
	}

	.aps-wrap .aps-submit {
		width: 100%;
	}
}
