/* Speedy — block checkout form styles (brand red #d4002f). */
.speedy-block-form { margin: 1em 0; padding: 1em; border: 1px solid #e0e0e0; border-radius: 6px; }
.speedy-block-title { margin-bottom: .5em; }
.speedy-block-title h3 { margin: 0; }
.speedy-block-row { margin-bottom: .75em; }
.speedy-block-label { display: block; font-weight: 600; margin-bottom: .25em; }
.speedy-block-input, .speedy-block-select, .speedy-search-input {
	width: 100%; box-sizing: border-box; padding: .5em; border: 1px solid #ccc; border-radius: 4px;
}
.speedy-search { position: relative; }
.speedy-search-results {
	position: absolute; z-index: 20; left: 0; right: 0; margin: 0; padding: 0; list-style: none;
	background: #fff; border: 1px solid #ccc; border-top: 0; max-height: 240px; overflow-y: auto;
	box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.speedy-search-result { padding: .5em; cursor: pointer; }
.speedy-search-result:hover { background: #fff2f3; }

/* Delivery-type tabs (Speedy red) */
.speedy-block-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.speedy-block-types .speedy-type {
	flex: 1 1 0; min-width: 96px; box-sizing: border-box; padding: 10px 8px;
	background: #f7f7f7; border: 1.5px solid #ddd; border-radius: 10px; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
	color: #d4002f; transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.speedy-block-types .speedy-type:hover { border-color: #d4002f; background: #fdeef0; }
.speedy-block-types .speedy-type input[type="radio"] { display: none !important; }
.speedy-type-icon { color: #d4002f; line-height: 0; }
.speedy-type-icon .speedy-type-svg { display: block; }
.speedy-type-label { font-size: 13px; font-weight: 600; line-height: 1.2; }
.speedy-type-price { font-size: 12px; font-weight: 700; line-height: 1.2; opacity: .95; }
.speedy-block-types .speedy-type.speedy-type-selected {
	background: #d4002f; border-color: #d4002f; color: #fff;
	box-shadow: 0 2px 6px rgba(212, 0, 47, .28);
}
.speedy-block-types .speedy-type.speedy-type-selected .speedy-type-icon { color: #fff; }
.speedy-block-map {
	height: 320px; margin-top: 10px; border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden;
}

/* Saved (last-order) address */
.speedy-saved-summary {
	padding: .6em .8em; background: #faf6f6; border: 1px solid #efe0e2; border-radius: 6px; margin: .25em 0 .6em;
}
.speedy-link-btn {
	background: none; border: 0; padding: 0; margin: 0 0 .5em; color: #d4002f; cursor: pointer;
	text-decoration: underline; font-size: .9em;
}
.speedy-link-btn:hover { color: #a80025; }

/* Hide native address fields when Speedy shipping is selected */
body.speedy-shipping-selected .wc-block-components-address-form__address_1,
body.speedy-shipping-selected .wc-block-components-address-form__address_2,
body.speedy-shipping-selected .wc-block-components-address-form__address_2-toggle,
body.speedy-shipping-selected .wc-block-components-address-form__city,
body.speedy-shipping-selected .wc-block-components-address-form__postcode,
body.speedy-shipping-selected .wc-block-components-address-form__state {
	display: none !important;
}
body.speedy-shipping-selected.speedy-hide-country .wc-block-components-address-form__country {
	display: none !important;
}
/* "Find nearest office / APS" (geolocation) button + results — Speedy red (#d4002f). */
.speedy-nearest-row { display: block; margin-bottom: 12px; }
button.speedy-find-nearest,
.speedy-find-nearest {
	display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 9px 16px;
	background: #d4002f; border: 1px solid #d4002f; border-radius: 6px; color: #fff;
	font-weight: 600; line-height: 1.2; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08);
	transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
button.speedy-find-nearest:hover,
.speedy-find-nearest:hover { background: #a80025; border-color: #a80025; color: #fff; box-shadow: 0 2px 6px rgba(212,0,47,.35); }
button.speedy-find-nearest:disabled,
.speedy-find-nearest[disabled] { opacity: .6; cursor: default; box-shadow: none; }
.speedy-find-nearest::before { content: "\1F4CD"; font-size: 1.05em; line-height: 1; }
.speedy-nearest-msg { display: block; margin-top: 6px; font-size: 12px; color: #b00; }
.speedy-nearest-list { margin-top: 8px; }
@media (max-width: 480px) { button.speedy-find-nearest, .speedy-find-nearest { width: 100%; justify-content: center; } }

/* Let a single-finger vertical swipe over the map scroll the page (OL sets
   touch-action:none by default; drag-pan is disabled in JS on touch). */
.speedy-block-map, .speedy-block-map .ol-viewport {
    touch-action: pan-y !important;
}
