#cm-fee-waive-on-cart-total,
.cm-fee-waive-text {
	color: #555;
	font-family: inherit;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	margin: 8px 0 12px;
}

.ui-datepicker-buttonpane {
	display: none;
}

.cm-calculate-fee {
	cursor: pointer;
	background: #3f3f3f;
	margin-top: 15px;
	color: white;
	border: 1px solid;
	border-radius: 5px;
	padding: 10px;
}

.cm-main-label-checkout {
	margin: 15px 0px;
	font-family: inherit;
	font-style: normal;
}

.cm-store-options {
	width: 100%;
}

.cm-checkout-inputs {
	width: 100%;
}

.cm-address-checkout-fee {
	display: none;
}

.cm-calculate-fee {
	color: white;
}

.cm-cost-per-unit {
	font-family: inherit;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	color: #666;
	margin: 8px 0;
}

.cm-distance-text,
#cm-distance {
	font-family: inherit;
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
	color: #222;
	margin: 10px 0 6px;
	line-height: 1.4;
}

/* Compact checkout delivery summary */
.cm-delivery-info-card {
	margin: 12px 0 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
	overflow: hidden;
	font-family: inherit;
}

.cm-delivery-live {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 12px;
}

.cm-delivery-stat {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	padding: 9px 10px;
	border-radius: 9px;
	background: #f8fafc;
}

.cm-delivery-stat-icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 8px;
	background: #fff1f2;
	color: #dc2626;
	font-size: 14px;
	font-weight: 700;
}

.cm-delivery-stat-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cm-delivery-stat-copy small {
	color: #64748b;
	font-size: 11px;
	line-height: 1.25;
}

.cm-delivery-stat-copy .cm-cost-per-unit,
.cm-delivery-stat-copy .cm-distance-text {
	margin: 2px 0 0;
	color: #111827;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cm-delivery-status {
	display: none;
	margin: 0 12px 10px;
	padding: 9px 10px;
	border-radius: 8px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 12px;
	line-height: 1.4;
}

.cm-delivery-status:not(:empty) {
	display: block;
}

.cm-delivery-rules {
	border-top: 1px solid #eef2f7;
}

.cm-delivery-rules summary {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 11px 13px;
	color: #374151;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.cm-delivery-rules summary::-webkit-details-marker {
	display: none;
}

.cm-rules-info-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: #374151;
}

.cm-rules-chevron {
	margin-left: auto;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: #374151;
	transition: transform .2s ease;
}

.cm-delivery-rules[open] .cm-rules-chevron {
	transform: rotate(180deg);
}

.cm-delivery-rules-body {
	padding: 0 13px 13px;
}

.cm-delivery-rule,
.cm-delivery-rule.cm-fee-waive-text,
.cm-delivery-rule.cm-max-range-text {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px dashed #e5e7eb;
	color: #4b5563;
	font-size: 12px;
	line-height: 1.45;
}

.cm-delivery-rule>span:first-child {
	color: #16a34a;
	font-weight: 700;
}

.cm-tiered-pricing {
	padding-top: 10px;
}

.cm-tiered-pricing>strong {
	display: block;
	margin-bottom: 6px;
	color: #111827;
	font-size: 12px;
}

.cm-tiered-pricing>small {
	color: #6b7280;
	font-size: 11px;
}

.cm-tiered-pricing ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cm-tiered-pricing li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	color: #4b5563;
	font-size: 12px;
}

.cm-tiered-pricing li b {
	color: #111827;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.cm-delivery-live {
		grid-template-columns: 1fr;
	}
}

/* Map container — Leaflet needs explicit size + visible parent */
#map,
.wccpd-checkout-map {
	height: 420px;
	width: 100%;
	max-width: 100%;
	margin: 16px 0 24px;
	border-radius: 8px;
	overflow: hidden;
	background: #e9ecef;
	z-index: 1;
}

.wccpd-custom-container,
.wccpd-custom-container h3,
.wccpd-custom-container p,
.wccpd-custom-container label,
.wccpd-custom-container span,
.wccpd-custom-container button,
.wccpd-custom-container input,
.wccpd-custom-container select {
	font-family: inherit;
	font-style: normal;
}

.wccpd-osm-suggestions {
	font-family: inherit;
	font-size: 14px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

/* Compact site-wide delivery location chip */
/* Neutralize theme's global :is(button,.btn,[type=button],...) rule that
   forces uppercase text, box-shadow, min-height and font-weight on our controls. */
.wccpd-location-bar,
.wccpd-location-modal .wccpd-location-close,
.wccpd-location-modal .wccpd-location-primary,
.wccpd-location-modal .wccpd-location-secondary {
	vertical-align: middle !important;
	text-decoration: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	box-shadow: none !important;
	letter-spacing: normal !important;
	min-height: 0 !important;
	background-image: none !important;
	font-family: inherit !important;
	font-style: normal !important;
	outline: none !important;
}

.wccpd-location-modal .wccpd-location-primary,
.wccpd-location-modal .wccpd-location-secondary {
	font-weight: 600 !important;
}

.wccpd-location-bar {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 9px !important;
	width: 50px;
	max-width: min(320px, calc(100vw - 32px));
	box-sizing: border-box;
	padding: 8px !important;
	border: 1px solid rgba(17, 24, 39, .12) !important;
	border-radius: 12px !important;
	background: rgba(255, 255, 255, .96) !important;
	color: #111827 !important;
	cursor: pointer !important;
	z-index: 99990;
	position: fixed !important;
	top: 16px;
	right: 18px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, .14) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	text-align: left !important;
	font-family: inherit !important;
	font-style: normal !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	overflow: hidden;
	transition: width .22s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wccpd-location-bar:hover,
.wccpd-location-bar:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(220, 38, 38, .35);
	box-shadow: 0 12px 32px rgba(15, 23, 42, .18) !important;
	outline: none;
}

@media (hover: hover) and (pointer: fine) {
	.wccpd-location-bar:hover {
		width: min(320px, calc(100vw - 32px));
	}

	.wccpd-location-bar:hover .wccpd-location-copy,
	.wccpd-location-bar:hover .wccpd-location-chevron {
		visibility: visible;
		opacity: 1;
	}

	.wccpd-location-bar:hover .wccpd-location-copy {
		width: min(225px, calc(100vw - 125px));
	}
}

.wccpd-location-bar .wccpd-location-pin {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	border-radius: 9px;
	background: transparent;
	font-size: 17px;
	line-height: 1;
}

.wccpd-location-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 0;
	visibility: hidden;
	opacity: 0;
	transition: width .22s ease, opacity .15s ease;
}

.wccpd-location-copy strong {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	font-family: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wccpd-location-copy span {
	font-size: 11px;
	line-height: 1.35;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	font-family: inherit;
}

.wccpd-location-chevron {
	color: #9ca3af;
	font-size: 24px;
	line-height: 1;
	margin-left: 2px;
	visibility: hidden;
	opacity: 0;
	transition: opacity .15s ease;
}

@media (max-width: 767px) {
	.wccpd-location-bar {
		top: 12px;
		right: 10px;
		width: 50px;
		padding: 8px;
	}
}

.wccpd-location-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.wccpd-location-modal.is-open {
	display: flex;
}

.wccpd-location-dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 92vh;
	overflow: auto;
	background: #fff;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	font-family: inherit;
}

.wccpd-location-close {
	position: absolute !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	top: 10px;
	right: 12px;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: #111 !important;
	font-size: 28px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer !important;
}

.wccpd-location-dialog h2 {
	margin: 0 32px 8px 0;
	font-size: 22px;
	font-family: inherit;
}

.wccpd-location-dialog>p {
	margin: 0 0 14px;
	color: #555;
	font-size: 14px;
}

.wccpd-location-primary {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	width: 100% !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: #111 !important;
	color: #fff !important;
	padding: 12px 14px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
	transition: opacity .2s ease, background-color .2s ease !important;
}

.wccpd-location-primary:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.wccpd-location-separator {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0;
	color: #888;
	font-size: 12px;
	text-transform: uppercase;
}

.wccpd-location-separator::before,
.wccpd-location-separator::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e5e5e5;
}

.wccpd-location-search-wrap {
	position: relative;
	margin-bottom: 10px;
}

#wccpd-location-search {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
	font-family: inherit;
}

.wccpd-coordinate-option {
	margin: 0 0 12px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 10px 12px;
}

.wccpd-coordinate-option summary {
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}

.wccpd-coordinate-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 12px 0 10px;
}

.wccpd-coordinate-fields label,
.wccpd-coordinate-fields span {
	display: block;
	font-family: inherit;
	font-size: 12px;
}

.wccpd-coordinate-fields input {
	width: 100%;
	box-sizing: border-box;
	margin-top: 4px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 9px 10px;
	font-family: inherit;
}

.wccpd-location-secondary {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	width: 100% !important;
	border: 1px solid #222 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #222 !important;
	padding: 9px 12px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
	transition: background-color .2s ease, color .2s ease !important;
}

.wccpd-location-results {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	position: absolute;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	max-height: 200px;
	overflow: auto;
	z-index: 5;
	display: none;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.wccpd-location-results li {
	padding: 10px 12px;
	cursor: pointer;
	font-size: 13px;
	border-bottom: 1px solid #f1f1f1;
}

.wccpd-location-results li:hover {
	background: #f7f7f7;
}

.wccpd-location-status {
	min-height: 18px;
	font-size: 13px;
	color: #666;
	margin: 0 0 8px;
}

.wccpd-location-map {
	height: 280px;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #e9ecef;
	margin: 0 0 14px;
}

.cm-max-range-text {
	font-family: inherit;
	font-size: 13px;
	color: #666;
	margin: 6px 0 12px;
}

body.wccpd-location-open {
	overflow: hidden;
}

@media only screen and (max-width: 650px) {

	#map,
	.wccpd-checkout-map {
		height: 300px;
		width: 100%;
	}

	.wccpd-location-map {
		height: 220px;
	}

	.wccpd-coordinate-fields {
		grid-template-columns: 1fr;
	}
}

/* Device specific visibility */
@media (min-width: 768px) {
	.wccpd-location-bar.wccpd-show-mobile-only {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.wccpd-location-bar.wccpd-show-desktop-only {
		display: none !important;
	}
}

/* Shortcode Specific Styles */
.panito-location-shortcode-wrapper {
	width: auto;
	max-width: 100% !important;
	display: inline-block !important;
	box-sizing: border-box !important;
	float: right !important;
}
@media (max-width: 767px) {
	.panito-location-shortcode-wrapper {
		max-width: 170px !important;
	}
}

.panito-location-shortcode-wrapper .wccpd-location-bar {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	width: auto !important;
	max-width: 100% !important;
	margin-right: 15px !important;
	z-index: 10 !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .08) !important;
	transition: box-shadow .2s ease;
}

@media (min-width: 768px) {
	.panito-location-shortcode-wrapper .wccpd-location-bar {
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		padding: 0 !important;
		border-radius: 0 !important;
	}
	.panito-location-shortcode-wrapper .wccpd-location-bar.is-set {
		background: transparent !important;
	}
	.panito-location-shortcode-wrapper .wccpd-location-bar:hover {
		background: transparent !important;
		box-shadow: none !important;
	}
	.panito-location-shortcode-wrapper .wccpd-location-summary {
		display: none !important;
	}
	.panito-location-shortcode-wrapper .wccpd-location-pin {
		background: transparent !important;
		font-size: 13px !important;
		width: auto !important;
		height: auto !important;
		flex: 0 0 auto !important;
		margin-right: 6px !important;
	}
	.panito-location-shortcode-wrapper .wccpd-location-copy strong {
		font-size: 12px !important;
		font-weight: 400 !important;
		color: #777777 !important;
	}
	.panito-location-shortcode-wrapper .wccpd-location-chevron {
		color: #777777 !important;
		font-size: 12px !important;
	}
}

.panito-location-shortcode-wrapper .wccpd-location-bar:hover {
	transform: none !important;
	box-shadow: 0 4px 12px rgba(15, 23, 42, .12) !important;
}

.panito-location-shortcode-wrapper .wccpd-location-copy {
	visibility: visible !important;
	opacity: 1 !important;
	width: auto !important;
	flex: 1 !important;
	min-width: 0 !important;
	overflow: hidden !important;
}

.panito-location-shortcode-wrapper .wccpd-location-chevron {
	visibility: visible !important;
	opacity: 1 !important;
	display: block !important;
}

.panito-location-shortcode-wrapper .wccpd-location-bar.is-set {
	background: rgba(255, 255, 255, 1) !important;
}

/* Delivery Options Toggle Button Group */
.cm-delivery-options-toggle-wrapper {
	margin: 14px 0 18px !important;
	width: 100% !important;
}

.cm-delivery-option-buttons {
	display: flex !important;
	gap: 6px !important;
	width: 100% !important;
	background: #edf2f7 !important;
	padding: 5px !important;
	border-radius: 14px !important;
	border: 1px solid #e2e8f0 !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

.cm-delivery-opt-btn {
	flex: 1 1 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 11px 14px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #4a5568 !important;
	background: transparent !important;
	border: 1px solid transparent !important;
	border-radius: 9px !important;
	cursor: pointer !important;
	transition: all 0.2s ease-in-out !important;
	outline: none !important;
	text-align: center !important;
	line-height: 1.3 !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.cm-delivery-opt-btn:hover {
	color: #1a202c !important;
	background: rgba(255, 255, 255, 0.6) !important;
	border-radius: 9px !important;
}

.cm-delivery-opt-btn.active {
	background: #ffffff !important;
	color: #0f172a !important;
	font-weight: 700 !important;
	border-radius: 9px !important;
	border: 1px solid #cbd5e1 !important;
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08) !important;
}

.cm-delivery-opt-btn .cm-opt-svg {
	flex-shrink: 0 !important;
	stroke: currentColor !important;
}

@media (max-width: 576px) {
	.cm-delivery-option-buttons {
		flex-direction: column !important;
		gap: 6px !important;
	}

	.cm-delivery-opt-btn {
		width: 100% !important;
		padding: 10px 12px !important;
		justify-content: flex-start !important;
	}
}

/* Compact Order Notes Field */
#order_comments,
textarea[name="order_comments"],
.wc-block-components-textarea,
.wc-block-checkout__add-note textarea,
.wc-block-components-checkout-order-notes-block textarea {
	height: 48px !important;
	min-height: 48px !important;
	max-height: 140px !important;
	padding: 10px 14px !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	resize: vertical !important;
	transition: height 0.2s ease-in-out, border-color 0.2s ease-in-out !important;
}

#order_comments:focus,
textarea[name="order_comments"]:focus,
.wc-block-components-textarea:focus,
.wc-block-checkout__add-note textarea:focus,
.wc-block-components-checkout-order-notes-block textarea:focus {
	height: 85px !important;
}

/* Align (optional) text inline on the same line */
.woocommerce-additional-fields .optional,
#order_comments_field .optional,
.thwcfd-field-wrapper .optional,
.form-row .optional,
.woocommerce-checkout span.optional,
span.optional {
	top: 0 !important;
	position: relative !important;
	vertical-align: baseline !important;
}

/* Google Places Autocomplete Suggestion Dropdown */
.pac-container {
	z-index: 10000 !important;
	border-radius: 8px !important;
	margin-top: 2px !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
	font-family: inherit !important;
}
.pac-item {
	padding: 8px 12px !important;
	cursor: pointer !important;
	font-size: 13px !important;
}