.speedy-panel {
	margin: 12px 0 4px;
	padding: 16px;
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.speedy-panel__title {
	margin: 0 0 12px;
	font-size: 0.95em;
	font-weight: 600;
}

.speedy-panel__selected {
	margin: 8px 0 0;
	font-size: 0.85em;
	color: #1c7c3f;
}

.speedy-panel__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
	gap: 10px;
}

.speedy-field {
	position: relative;
	margin: 0 0 12px;
}

.speedy-field--small {
	margin-bottom: 0;
}

.speedy-field__label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.85em;
	font-weight: 600;
}

.speedy-required {
	margin-left: 2px;
	border: 0;
	text-decoration: none;
	color: #cc1818;
}

.speedy-field__input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #b0b0b0;
	border-radius: 4px;
	background: #fff;
	font-size: 0.95em;
	line-height: 1.4;
}

.speedy-field__input:focus {
	outline: 2px solid #1e40af;
	outline-offset: -1px;
}

.speedy-field__input:disabled {
	background: #f0f0f0;
	color: #767676;
}

.speedy-field--error .speedy-field__input {
	border-color: #cc1818;
}

.speedy-field__error {
	margin: 4px 0 0;
	font-size: 0.8em;
	color: #cc1818;
}

.speedy-field__help {
	margin: 4px 0 0;
	font-size: 0.8em;
	color: #666;
}

.speedy-suggest {
	position: absolute;
	z-index: 50;
	left: 0;
	right: 0;
	max-height: 260px;
	overflow-y: auto;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #c0c0c0;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.speedy-suggest--message {
	padding: 10px 12px;
	font-size: 0.85em;
	color: #666;
}

.speedy-suggest__item {
	display: block;
	margin: 0;
	padding: 9px 12px;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
	font-size: 0.9em;
}

.speedy-suggest__item:last-child {
	border-bottom: 0;
}

.speedy-suggest__item:hover {
	background: #eef4ff;
}

.speedy-suggest__label {
	display: block;
	font-weight: 500;
}

.speedy-suggest__meta {
	display: block;
	margin-top: 2px;
	font-size: 0.85em;
	color: #666;
}

/* Скриване на стандартните адресни полета, когато Speedy ги замества. */
body.speedy-hide-native-address .wc-block-components-address-form .wc-block-components-address-form__address_1,
body.speedy-hide-native-address .wc-block-components-address-form .wc-block-components-address-form__address_2,
body.speedy-hide-native-address .wc-block-components-address-form .wc-block-components-address-form__city,
body.speedy-hide-native-address .wc-block-components-address-form .wc-block-components-address-form__postcode,
body.speedy-hide-native-address .wc-block-components-address-form #shipping-address_1,
body.speedy-hide-native-address .wc-block-components-address-form #shipping-address_2,
body.speedy-hide-native-address .wc-block-components-address-form #shipping-city,
body.speedy-hide-native-address .wc-block-components-address-form #shipping-postcode {
	display: none !important;
}

body.speedy-hide-native-address .wc-block-components-address-address-wrapper {
	display: block;
}
