/* AnchorLight responsive controls for Bookly's mobile Service/Time substep. */

@media (max-width: 767px) {
	.booking-section .bookly-mobile-step-2 > .bookly-box:first-child {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.booking-section .bookly-mobile-step-2 > .bookly-box:first-child > .bookly-left {
		width: 100%;
		margin: 0 !important;
		float: none !important;
	}

	.booking-section .bookly-mobile-step-2 > .bookly-box:first-child > .bookly-left:first-child {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.booking-section .bookly-service-step .bookly-available-date,
	.booking-section .bookly-form .bookly-week-days,
	.booking-section .bookly-service-step .bookly-time-range {
		width: 100%;
		margin: 0 !important;
		float: none !important;
	}

	.booking-section .bookly-service-step .bookly-time-range {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		height: auto;
		gap: 16px;
	}

	.booking-section .bookly-mobile-step-2 > .bookly-box:first-child > .bookly-time-range.bookly-left {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px !important;
	}

	.booking-section .bookly-mobile-step-2 > .bookly-nav-steps > .bookly-mobile-prev-step,
	.booking-section .bookly-mobile-step-2 > .bookly-nav-steps > .bookly-mobile-prev-step + div {
		width: auto !important;
		min-width: 0;
		flex: 1 1 calc(50% - 8px) !important;
	}

	.booking-section .bookly-service-step .bookly-time-range .bookly-form-group {
		display: flex;
		width: 100% !important;
		height: auto;
		margin: 0 !important;
		flex-direction: column;
		float: none !important;
	}

	.booking-section .bookly-service-step .bookly-available-date .bookly-form-group > div,
	.booking-section .bookly-service-step .bookly-time-range .bookly-form-group > div {
		width: 100%;
		margin: 0 !important;
	}

	.booking-section .bookly-service-step .bookly-available-date label,
	.booking-section .bookly-service-step .bookly-time-range label {
		margin-bottom: 12px !important;
	}

	.booking-section .bookly-service-step .bookly-available-date input,
	.booking-section .bookly-service-step .bookly-time-range select {
		width: 100% !important;
		min-height: 56px;
		padding: 10px 48px 10px 16px !important;
		border: 1px solid rgba(39, 38, 53, 0.18) !important;
		border-radius: 4px !important;
		background-color: #fff !important;
		background-position: right 16px center !important;
		box-shadow: 0 4px 12px rgba(39, 38, 53, 0.06);
	}

	.booking-section .bookly-service-step .bookly-available-date input:focus,
	.booking-section .bookly-service-step .bookly-time-range select:focus {
		border-color: var(--accent, #c58052) !important;
		box-shadow: 0 0 0 3px rgba(197, 128, 82, 0.14);
	}
}

@media (max-width: 600px) {
	.booking-section .bookly-form .bookly-week-days {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
	}

	.booking-section .bookly-service-step .bookly-week-days > .bookly-form-group {
		display: flex !important;
		min-width: 0;
		min-height: 52px;
		padding: 10px 12px !important;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		border: 1px solid rgba(39, 38, 53, 0.16);
		border-radius: 4px;
		background: #fff;
	}

	.booking-section .bookly-form .bookly-week-days .bookly-col-label {
		margin: 0 !important;
		text-align: left;
	}

	.booking-section .bookly-form .bookly-week-days input[type="checkbox"] {
		width: 28px;
		height: 28px;
		margin: 0 !important;
		flex: 0 0 28px;
	}

	.booking-section .bookly-service-step .bookly-time-range {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.booking-section .bookly-mobile-step-2 > .bookly-box:first-child > .bookly-time-range.bookly-left {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px !important;
	}

	.booking-section .bookly-form .bookly-nav-steps > .bookly-back-step,
	.booking-section .bookly-form .bookly-nav-steps > .bookly-mobile-prev-step,
	.booking-section .bookly-form .bookly-nav-steps > .bookly-back-step + div,
	.booking-section .bookly-form .bookly-nav-steps > .bookly-mobile-prev-step + div {
		width: 100% !important;
		flex: 1 1 100% !important;
	}
}

@media (max-width: 360px) {
	.booking-section .bookly-form .bookly-week-days {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
