.twg-fulfillment-schedule {
	padding: 1rem;
	background: var(--base);
	margin-top: 1.5rem;
	border-radius: 10px;
	overflow: visible;
}

.twg-fulfillment-schedule__title {
	font-size: var(--fs-20);
	line-height: 1.35;
	margin: 0 0 12px;
	font-family: var(--gp-font--primary);
}

.twg-fulfillment-schedule__notes,
.twg-fulfillment-schedule__reminder {
	padding: 1rem;
	background: #f7efd6;
	color: #705b19;
	border-radius: 8px;
	font-size: 14px;
	margin: 0 0 12px;
	position: relative;
	padding-left: 3rem;
}

.twg-fulfillment-schedule__notes::before,
.twg-fulfillment-schedule__reminder::before {
	content: "!";
	display: block;
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	border-radius: 50%;
	background: #705b19;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	margin-right: 8px;
	margin-bottom: 0.5rem;
	position: absolute;
	left: 1rem;

}

.twg-fulfillment-schedule__notes p {
	margin: 0 0 6px;
}

.twg-fulfillment-schedule__label {
	font-weight: 600;
	margin-bottom: 8px;
}

.twg-fulfillment-date-picker {
	max-width: 360px;
	position: relative;
}

.twg-fulfillment-date-picker__input {
	background: #fff;
	border: 1px solid #9f9f9f;
	border-radius: .5rem;
	box-sizing: border-box;
	cursor: pointer;
	padding: 10px 12px;
	width: 100%;
}

.twg-fulfillment-date-picker__input:focus {
	border-color: #1e1e1e;
	outline: none;
}

.twg-fulfillment-date-picker__popover {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
	box-sizing: border-box;
	left: 0;
	padding: 12px;
	position: absolute;
	top: calc(100% + 6px);
	width: min(360px, calc(100vw - 48px));
	z-index: 20;
}

.twg-fulfillment-calendar {
	max-width: 1000px;
	margin: 0 auto;

}

.twg-fulfillment-calendar__header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.twg-fulfillment-calendar__nav {
	align-items: center;
	appearance: none;
	background: #fff;
	border: 1px solid #b5b5b5;
	border-radius: 4px;
	color: #1e1e1e;
	cursor: pointer;
	display: inline-flex;
	font-size: 22px;
	height: 34px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 34px;
}

.twg-fulfillment-calendar__nav-arrow {
	position: relative;
	top: -2px;
}

.twg-fulfillment-calendar__weekdays,
.twg-fulfillment-calendar__grid {
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.twg-fulfillment-calendar__weekdays {
	color: #646970;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 4px;
	text-align: center;
}

.twg-fulfillment-calendar__day {
	appearance: none;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	color: #1e1e1e;
	cursor: pointer;
	font: inherit;
	min-height: 38px;
	padding: 0;
	text-align: center;
}

.twg-fulfillment-calendar__day.is-disabled {
	background: #f6f7f7;
	color: #8c8f94;
	cursor: not-allowed;
}

.twg-fulfillment-calendar__day.is-outside-month {
	visibility: hidden;
}

.twg-fulfillment-calendar__day.is-selected {
	background: #1e1e1e;
	border-color: #1e1e1e;
	color: #fff;
}

.twg-fulfillment-calendar__day.has-special-schedule:not(.is-selected) {
	border-color: #007cba;
}

.twg-fulfillment-schedule__selected {
	font-weight: 600;
	margin: 12px 0 0;
}

.twg-fulfillment-schedule__slots {
	border: 0;
	margin: 12px 0 0;
	padding: 0;
}

.twg-fulfillment-schedule__slots legend {
	font-weight: 600;
	margin-bottom: 8px;
}

.twg-fulfillment-schedule__slots label {
	align-items: center;
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.twg-fulfillment-fields,
.twg-fulfillment-shipping-note,
.twg-fulfillment-delivery-availability-note {
	border-top: 1px solid #dcdcde;
	margin-top: 16px;
	padding-top: 16px;
}

.twg-fulfillment-fields {
	border: none;
	padding: 1rem;
	background: #f9f9f9;
	border-radius: 10px;
}

.twg-fulfillment-fields textarea,
.twg-fulfillment-fields input[type="text"],
.twg-fulfillment-fields input[type="email"],
.twg-fulfillment-fields input[type="tel"],
.twg-fulfillment-fields select {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border-radius: .5rem;
	background: #ffffff;
	border: 1px solid #9f9f9f;
}

.twg-fulfillment-fields select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231e1e1e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 14px 8px;
	padding-right: 40px;
}

.twg-fulfillment-date-picker__input {
	border-radius: .5rem !important;
	background: #ffffff !important;
	border: 1px solid #9f9f9f !important;
}

.twg-fulfillment-fields textarea:focus,
.twg-fulfillment-fields input[type="text"]:focus,
.twg-fulfillment-fields select:focus {
	border-color: black;
	outline: none;
}

.twg-fulfillment-fields__title {
	line-height: 1.35;
	margin: 0 0 12px;
	font-family: var(--gp-font--primary);
	font-size: var(--fs-20);
}

.twg-fulfillment-fields__row {
	margin: 0 0 14px;
}

.twg-fulfillment-fields__sender-grid {
	display: grid;
	gap: 0 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.twg-fulfillment-fields__sender-grid > .twg-fulfillment-fields__row:has(#twg-fulfillment-sender-phone) {
	grid-column: -1 / 1;
}

.twg-fulfillment-fields__conditional-group {
	background: #f2f2f2;
	border-left: 3px solid #9f9f9f;
	margin: -2px 0 14px 10px;
	padding: 12px 12px 12px 14px;
}

.twg-fulfillment-fields__row label,
.twg-fulfillment-fields__radios legend {
	display: block;
	font-weight: 400;
	margin-bottom: 6px;
}

.twg-fulfillment-fields__radios label {
	padding-left: 0.5rem;
}

.twg-fulfillment-fields__row input[type="text"],
.twg-fulfillment-fields__row textarea,
.twg-fulfillment-fields__row select {
	box-sizing: border-box;
	width: 100%;
}

.twg-fulfillment-fields__checkbox,
.twg-fulfillment-fields__radios label {
	align-items: center;
	display: flex !important;
	gap: 8px;
	margin-bottom: 10px;
	font-weight: 400;
}

.twg-fulfillment-fields__checkbox input[type="checkbox"] {
	appearance: none;
	background: #ffffff;
	border: 1px solid #9f9f9f;
	border-radius: .35rem;
	box-sizing: border-box;
	cursor: pointer;
	flex: 0 0 auto;
	height: 20px;
	margin: 0;
	position: relative;
	width: 20px;
}

.twg-fulfillment-fields__checkbox input[type="checkbox"]:checked {
	background: #1e1e1e;
	border-color: #1e1e1e;
}

.twg-fulfillment-fields__checkbox input[type="checkbox"]:checked::after {
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	content: "";
	height: 10px;
	left: 6px;
	position: absolute;
	top: 2px;
	transform: rotate(45deg);
	width: 5px;
}

.twg-fulfillment-fields__checkbox input[type="checkbox"]:focus {
	border-color: black;
	outline: none;
}

.twg-fulfillment-fields__checkbox input[type="checkbox"]:focus-visible {
	box-shadow: 0 0 0 2px rgba(30, 30, 30, 0.18);
}

.twg-fulfillment-fields__radios {
	border: 0;
	margin: 0 0 14px;
	padding: 0;
}

.twg-fulfillment-fields__note {
	color: #646970;
	display: block;
	font-size: 14px;
	margin: 4px 0 0;
}

.twg-fulfillment-fields__required {
	color: #b32d2e;
}

.twg-fulfillment-shipping-note {
	font-size: 14px;
	margin-bottom: 0;
	background: #f0f9ff;
	color: #034275;
	padding: 1rem;
	border-radius: 10px;
	border: none;
}

.twg-fulfillment-delivery-availability-note {
	background: #fff8e5;
	border: none;
	border-radius: 10px;
	color: #614200;
	font-size: 14px;
	margin-bottom: 0;
	padding: 1rem;
}

.twg-fulfillment-fields-loading {
	background: #f0f9ff;
	border: none;
	border-radius: 10px;
	color: #034275;
	font-size: 14px;
	margin: 12px 0 0;
	padding: 1rem;
}

.twg-fulfillment-pickup-only .wc-block-checkout__shipping-method-option[data-twg-fulfillment-hidden="true"] {
	display: none !important;
}

.twg-fulfillment-delivery-only .wc-block-components-shipping-rates-control__no-results-notice,
.twg-fulfillment-delivery-only .wc-block-components-shipping-rates-control__no-shipping-address-message {
	display: none;
}

[data-twg-fulfillment-express-hidden="true"] {
	display: none !important;
}

.wc-block-cart__payment-options {
	display: none !important;
}

.twg-fulfillment-fields__product-group {
	margin-bottom: 1.25rem;
}

.twg-fulfillment-fields__product-title {
	font-family: var(--gp-font--primary) !important;
	font-size: 1.2rem !important;
	margin-bottom: 0.5rem !important;
}

.wc-block-checkout :is(input, textarea, select, button, a[href], [tabindex]):focus-visible {
	outline: 3px solid var(--accent, #b32d2e) !important;
	outline-offset: 3px !important;
}

@media (max-width: 600px) {
	.twg-fulfillment-fields__sender-grid {
		grid-template-columns: 1fr;
	}
}
