.abfw-wrap .abfw-lede {
	color: #646970;
	margin: 4px 0 12px;
	max-width: 700px;
}

.abfw-wrap .abfw-columns {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	margin-top: 4px;
}

.abfw-wrap .abfw-settings-form {
	flex: 1;
	max-width: 680px;
}

.abfw-wrap .abfw-preview {
	width: 340px;
	flex: 0 0 340px;
	position: sticky;
	top: 46px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 20px;
}

.abfw-wrap .abfw-card {
	background: #fff;
	border: 1px solid #e2e3e5;
	border-radius: 3px;
}

.abfw-wrap .abfw-card-head {
	padding: 13px 18px;
	border-bottom: 1px solid #e2e3e5;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.abfw-wrap .abfw-card-body {
	padding: 18px;
}

/* WooCommerce reveals it with the other fields of the order line being edited. */
.abfw-order-dates {
	display: none;
}

.abfw-order-error {
	color: #d63638;
	font-weight: 600;
}

.abfw-wrap .abfw-tool-card {
	max-width: 680px;
	margin-bottom: 20px;
}

.abfw-wrap .abfw-unit {
	color: #646970;
	font-size: 12px;
	margin-left: 4px;
}

.abfw-wrap .abfw-error {
	color: #b32d2e;
	font-size: 12px;
	margin: 6px 0 0;
}

.abfw-wrap .abfw-product-name {
	font-size: 16px;
	font-weight: 600;
}

.abfw-wrap .abfw-product-price {
	color: #646970;
	font-size: 12px;
	margin: 2px 0 14px;
}

.abfw-wrap .abfw-dates {
	display: flex;
	gap: 10px;
}

/* A rule setting display would otherwise win over the hidden attribute. */
.abfw-wrap [hidden] {
	display: none !important;
}

.abfw-wrap .abfw-date {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.abfw-wrap .abfw-date input {
	width: 100%;
}

.abfw-wrap .abfw-date-label {
	font-size: 10px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.abfw-wrap .abfw-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #e2e3e5;
}

.abfw-wrap .abfw-book {
	margin-top: 12px;
	padding: 10px 0;
	text-align: center;
	background: #3858e9;
	color: #fff;
	border-radius: 2px;
	font-size: 13px;
	font-weight: 500;
}

.abfw-wrap .abfw-recap {
	font-size: 14px;
	line-height: 1.7;
	color: #3c434a;
}

.abfw-wrap .abfw-steps {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.abfw-wrap .abfw-step {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.abfw-wrap .abfw-step-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex: 0 0 9px;
}

.abfw-wrap .abfw-step-name {
	font-weight: 600;
	color: #1d2327;
	width: 92px;
}

.abfw-wrap .abfw-step-when {
	color: #646970;
	font-size: 12px;
}

.abfw-wrap .abfw-select {
	position: relative;
	display: inline-block;
}

/* The real field stays in the page so the form still posts without scripts. */
.abfw-wrap .abfw-select-native {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.abfw-wrap .abfw-select-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 280px;
	height: 40px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	color: #1d2327;
	font-size: 14px;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.abfw-wrap .abfw-select-trigger:hover {
	border-color: #646970;
}

.abfw-wrap .abfw-select-trigger:focus-visible {
	outline: none;
	border-color: #3858e9;
	box-shadow: 0 0 0 1px #3858e9;
}

.abfw-wrap .abfw-select-arrow {
	color: #646970;
	flex: 0 0 11px;
}

.abfw-wrap .abfw-select-panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	left: 0;
	width: 280px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}

.abfw-wrap .abfw-select-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px 12px;
	background: #fff;
	border: none;
	border-bottom: 1px solid #e2e3e5;
	color: #1d2327;
	font-size: 14px;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.abfw-wrap .abfw-select-option:last-child {
	border-bottom: none;
}

.abfw-wrap .abfw-select-option:hover,
.abfw-wrap .abfw-select-option:focus-visible {
	background: #f6f7f7;
	outline: none;
}

.abfw-wrap .abfw-select-option.is-chosen {
	background: #f6f7f7;
	font-weight: 600;
}

.abfw-wrap .abfw-select-tick {
	flex: 0 0 13px;
	visibility: hidden;
}

.abfw-wrap .abfw-select-option.is-chosen .abfw-select-tick {
	visibility: visible;
}

.abfw-wrap .abfw-month-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 18px 0 12px;
}

.abfw-wrap .abfw-month-name {
	font-size: 15px;
	color: #1d2327;
	min-width: 160px;
}

.abfw-wrap .abfw-month {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	background: #fff;
	border: 1px solid #c3c4c7;
	border-right: none;
	border-bottom: none;
}

.abfw-wrap .abfw-month-head {
	padding: 9px 8px;
	font-size: 11px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	font-weight: 600;
	color: #646970;
	background: #fbfbfb;
	border-right: 1px solid #e2e3e5;
	border-bottom: 1px solid #c3c4c7;
}

.abfw-wrap .abfw-day {
	min-height: 108px;
	padding: 7px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-right: 1px solid #e2e3e5;
	border-bottom: 1px solid #e2e3e5;
}

.abfw-wrap .abfw-day.is-empty {
	background: #fafafa;
}

.abfw-wrap .abfw-day.is-today {
	box-shadow: inset 0 2px 0 0 #1d2327;
}

.abfw-wrap .abfw-day-number {
	font-size: 11px;
	color: #646970;
}

.abfw-wrap .abfw-day.is-today .abfw-day-number {
	color: #1d2327;
	font-weight: 600;
}

.abfw-wrap .abfw-chip {
	display: block;
	padding: 2px 6px;
	border-radius: 2px;
	font-size: 11px;
	text-decoration: none;
	background: #e6e7e9;
	color: #1d2327;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.abfw-wrap .abfw-chip-processing {
	background: #1d2327;
	color: #fff;
}

.abfw-wrap .abfw-chip-pending {
	background: #fff;
	color: #646970;
	border: 1px dashed #c3c4c7;
}

.abfw-wrap .abfw-chip-completed {
	background: #f2f2f2;
	color: #646970;
}

/* Every control on the screen is the same height, so a row reads as one line. */
.abfw-wrap .form-table input[type="number"],
.abfw-wrap .form-table input.small-text,
.abfw-wrap .form-table input[type="color"],
.abfw-wrap .abfw-preview input[type="date"] {
	height: 40px;
	font-size: 14px;
	border: 1px solid #949494;
	border-radius: 2px;
	box-sizing: border-box;
}

.abfw-wrap .form-table input[type="number"],
.abfw-wrap .form-table input.small-text {
	width: 110px;
	padding: 0 10px;
	text-align: left;
}

.abfw-wrap .form-table input[type="color"] {
	width: 72px;
	padding: 3px;
	cursor: pointer;
}

.abfw-wrap .form-table input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin-right: 4px;
}

.abfw-wrap .form-table th {
	padding-top: 22px;
	font-size: 14px;
}

.abfw-wrap .form-table td {
	padding: 16px 10px;
}

/* A checkbox is shorter than the other fields, so it starts level with its row title. */
.abfw-wrap .form-table td.abfw-switch-cell {
	padding-top: 22px;
}

.abfw-wrap .form-table label {
	font-size: 14px;
}

.abfw-wrap .abfw-unit {
	font-size: 13px;
	margin-left: 8px;
}

.abfw-wrap .form-table .description {
	font-size: 13px;
	margin-top: 8px;
}

.abfw-wrap .abfw-preview input[type="date"] {
	padding: 0 10px;
	width: 100%;
}

.abfw-wrap form.abfw-move.is-dressed button[type="submit"] {
	display: none;
}

.abfw-wrap .abfw-select--status .abfw-select-trigger {
	width: 170px;
	height: 34px;
	padding: 0 10px;
	font-size: 13px;
	justify-content: flex-start;
	gap: 8px;
}

.abfw-wrap .abfw-select--status .abfw-select-arrow {
	margin-left: auto;
}

.abfw-wrap .abfw-select--status .abfw-select-panel {
	width: 190px;
}

.abfw-wrap .abfw-select--status .abfw-select-option {
	padding: 9px 10px;
	font-size: 13px;
}

.abfw-wrap .abfw-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: 0 0 8px;
	background: #c3c4c7;
}

.abfw-wrap .abfw-status-dot[data-status="pending"] {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px #8c8f94;
}

.abfw-wrap .abfw-status-dot[data-status="start"] {
	background: #8c8f94;
}

.abfw-wrap .abfw-status-dot[data-status="processing"] {
	background: #1d2327;
}

.abfw-wrap .abfw-status-dot[data-status="end"] {
	background: #50575e;
}

.abfw-wrap .abfw-status-dot[data-status="completed"] {
	background: #dcdcde;
}

.abfw-wrap .abfw-status-dot[data-status="cancelled"] {
	background: #b32d2e;
}
