.twostep-delivery-date-picker {
	position: relative;
	width: min(100%, 320px);
}

.twostep-delivery-date-picker__label {
	margin-bottom: 8px;
	font-weight: 600;
}

.twostep-delivery-date-control {
	position: relative;
	display: flex;
}

.twostep-delivery-date-display {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #d3d3d3;
	border-right: 0;
	border-radius: 10px 0 0 10px;
	background-color: #fff;
	font: inherit;
	cursor: pointer;
}

.twostep-delivery-date-display::placeholder {
	color: #777;
	opacity: 1;
}

.twostep-delivery-date-trigger-button {
	flex: 0 0 48px;
	border: 1px solid #d3d3d3;
	border-radius: 0 10px 10px 0;
	background-color: #fff;
	font-size: 18px;
	cursor: pointer;
}

.twostep-delivery-date-display:focus-visible,
.twostep-delivery-date-trigger-button:focus-visible {
	outline: 2px solid #4a4a4a;
	outline-offset: 2px;
	z-index: 1;
}

.tdm-delivery-date-native-input {
	position: absolute;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0 !important;
}

.twostep-delivery-calendar {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 20;
	width: 100%;
	padding: 12px;
	border: 1px solid #d3d3d3;
	border-radius: 12px;
	background-color: #fff;
	box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
}

.twostep-delivery-calendar[hidden] {
	display: none;
}

.twostep-delivery-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.twostep-delivery-calendar-header strong {
	font-size: 16px;
}

.twostep-delivery-calendar-nav,
.twostep-delivery-calendar-day {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font: inherit;
}

.twostep-delivery-calendar-nav:focus-visible,
.twostep-delivery-calendar-day:focus-visible {
	outline: 2px solid #4a4a4a;
	outline-offset: 2px;
}

.twostep-delivery-calendar-nav {
	width: 40px;
	height: 40px;
	font-size: 24px;
}

.twostep-delivery-calendar-nav:disabled {
	color: #a6a6a6;
	cursor: not-allowed;
}

.twostep-delivery-calendar-weekdays,
.twostep-delivery-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	text-align: center;
}

.twostep-delivery-calendar-weekdays {
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 600;
}

.twostep-delivery-calendar-day,
.twostep-delivery-calendar-empty {
	width: 100%;
	min-height: 40px;
}

.twostep-delivery-calendar-day {
	cursor: pointer;
}

.twostep-delivery-calendar-day:hover:not(:disabled) {
	background-color: #f8f5ec;
}

.twostep-delivery-calendar-day:disabled {
	color: #a6a6a6;
	background-color: #f1f1f1;
	cursor: not-allowed;
	text-decoration: line-through;
}

.twostep-delivery-calendar-day.is-selected:not(:disabled) {
	color: #fff;
	background-color: #4a4a4a;
	font-weight: 700;
}

.twostep-delivery-calendar-note {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.5;
}
