/* 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;
}
