/**
 * Coeur Store Core — delivery scheduling and ZIP pricing notice.
 */

.coeur-delivery-zip-notice {
	box-sizing: border-box;
	width: 100%;
	margin: 12px 0;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(0, 0, 0, 0.025);
	font-size: 12px;
	line-height: 1.45;
}

.coeur-delivery-schedule {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 24px;
	padding: 0;
}

/* Checkout: keep the ZIP pricing notice inside Delivery Details,
 * after the address fields and before WooCommerce's billing-address toggle. */
.wp-block-woocommerce-checkout
.coeur-delivery-zip-notice--checkout {
	margin: 14px 0 16px;
}

/* Delivery schedule uses the native Checkout H2 title classes.
 * Keep only local spacing here so its typography matches the other
 * second-level checkout section headings. */
.coeur-delivery-schedule__title {
	margin: 0 0 18px;
}

.coeur-delivery-schedule__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.coeur-delivery-schedule__field {
	min-width: 0;
}

.coeur-delivery-schedule__field > label {
	display: block;
	margin: 0 0 7px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.coeur-delivery-schedule__field > input,
.coeur-delivery-schedule__field > select {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid rgba(32, 32, 32, 0.08);
	border-radius: 0;
	background: #fff;
	color: inherit;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.coeur-delivery-schedule__field > input:focus,
.coeur-delivery-schedule__field > select:focus {
	outline: 1px solid #202020;
	outline-offset: 0;
	box-shadow: none;
}

.coeur-delivery-schedule__field > input[aria-invalid="true"],
.coeur-delivery-schedule__field > select[aria-invalid="true"] {
	border-color: currentColor;
}


.coeur-delivery-schedule__field > input[type="date"] {
	padding-right: 46px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23202020' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px 18px;
}

.coeur-delivery-schedule__field > input[type="date"]::-webkit-calendar-picker-indicator {
	width: 44px;
	height: 100%;
	margin: 0 -14px 0 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}


.coeur-delivery-schedule__field > input[type="date"]::-webkit-inner-spin-button,
.coeur-delivery-schedule__field > input[type="date"]::-webkit-clear-button {
	display: none;
	-webkit-appearance: none;
}

.coeur-delivery-schedule .wc-block-components-validation-error {
	margin-top: 5px;
	font-size: 11px;
	line-height: 1.3;
}

.coeur-delivery-schedule .wc-block-components-validation-error p {
	margin: 0;
}

.coeur-delivery-schedule__policy {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.45;
}

.coeur-delivery-schedule-editor-preview {
	display: grid;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	padding: 12px;
	border: 1px dashed currentColor;
	font-size: 12px;
	line-height: 1.4;
}

.coeur-delivery-schedule-editor-preview__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.coeur-delivery-schedule-editor-preview__grid > span {
	padding: 8px;
	border: 1px solid rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
	.coeur-delivery-schedule__grid,
	.coeur-delivery-schedule-editor-preview__grid {
		grid-template-columns: 1fr;
	}
}

.coeur-delivery-breakdown-summary {
	padding-left: 16px;
	padding-right: 16px;
}

