/* Vyroby Delivery — вибір відділення Meest і тексти доставки в блочному оформленні */

/* «Безкоштовно» біля варіанта, коли ціна невідома: під назвою вже є «за тарифами перевізника» / «Безкоштовно — від …» */
.wc-block-checkout__shipping-option--free { display: none !important; }
.wc-block-components-shipping-rates-control__package__description--free { font-size: 0 !important; }
.wc-block-components-shipping-rates-control__package__description--free .wc-block-components-shipping-rates-control__package__delivery_time { font-size: .875rem; }

/* Підсумок: «Доставка — за тарифами перевізника» замість «БЕЗКОШТОВНО» */
.vd-ship-text .wp-block-woocommerce-checkout-order-summary-shipping-block .wc-block-components-totals-item__value,
.vd-ship-text .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item__value {
	font-size: 0 !important;
}
.vd-ship-text .wp-block-woocommerce-checkout-order-summary-shipping-block .wc-block-components-totals-item__value::after,
.vd-ship-text .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item__value::after {
	content: var(--vd-ship-text);
	font-size: .875rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
}

.vd-meest { margin: 12px 0 4px; padding: 14px 16px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 6px; background: #fff; }
.vd-meest.has-error { border-color: #cc1818; }
.vd-meest__field + .vd-meest__field, .vd-meest__chosen + .vd-meest__field, .vd-meest__chosen + .vd-meest__chosen { margin-top: 14px; }
.vd-meest__label { display: block; font-size: .8125rem; opacity: .75; margin-bottom: 4px; }
.vd-meest__input {
	box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem;
	border: 1px solid rgba(0, 0, 0, .35); border-radius: 4px; background: #fff; color: inherit;
}
.vd-meest__input:focus { outline: 2px solid currentColor; outline-offset: 1px; }
.vd-meest__list { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid rgba(0, 0, 0, .12); border-radius: 4px; max-height: 300px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vd-meest__list li + li { border-top: 1px solid rgba(0, 0, 0, .08); }
.vd-meest__opt {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%; text-align: left; padding: 11px 12px;
	background: none; border: 0; font: inherit; color: inherit; cursor: pointer; min-height: 44px;
}
.vd-meest__opt:hover, .vd-meest__opt:focus { background: rgba(139, 69, 19, .07); }
.vd-meest__list--branches .vd-meest__opt { flex-direction: column; align-items: flex-start; }
.vd-meest__opt-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vd-meest__opt-addr { font-size: .9375rem; }
.vd-meest__count { margin-left: auto; font-size: .75rem; opacity: .6; }
.vd-meest__muted { font-size: .8125rem; opacity: .7; }
.vd-meest__badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: .75rem; background: #fff3c4; color: #5a4300; white-space: nowrap; }
.vd-meest__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vd-meest__chip {
	padding: 6px 12px; min-height: 34px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 17px; background: #fff;
	font: inherit; font-size: .8125rem; color: inherit; cursor: pointer;
}
.vd-meest__chip.is-active { background: #8b4513; border-color: #8b4513; color: #fff; }
.vd-meest__chosen { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vd-meest__chosen strong { font-weight: 600; }
.vd-meest__link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .875rem; text-decoration: underline; color: inherit; cursor: pointer; white-space: nowrap; }
.vd-meest__warn { margin: 8px 0 0; color: #8a2424; }
.vd-meest__error p { margin: 8px 0 0; }

/* Нова Пошта */
.vd-np__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(0, 0, 0, .25); border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
.vd-np__tab { min-height: 44px; padding: 8px 6px; border: 0; border-left: 1px solid rgba(0, 0, 0, .15); background: #fff; font: inherit; font-size: .9375rem; color: inherit; cursor: pointer; }
.vd-np__tab:first-child { border-left: 0; }
.vd-np__tab.is-active { background: #8b4513; color: #fff; }
.vd-np__badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .75rem; white-space: nowrap; background: #eef2f7; color: #24425f; margin-right: 6px; }
.vd-np__badge--postomat { background: #fdeee4; color: #7a3410; }
.vd-np__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.vd-np__row .vd-meest__field + .vd-meest__field { margin-top: 0; }
.vd-np__cm { margin-top: 14px; }
.vd-np__comment { min-height: 64px; resize: vertical; }
.vd-np__row { align-items: end; }

/* Панель всередині картки обраного способу доставки */
.vd-inline-host { cursor: auto; width: 100%; flex-basis: 100%; }
.vd-inline-host .vd-meest { margin: 12px 0 2px; padding: 12px 0 0; border: 0; border-top: 1px solid rgba(0, 0, 0, .1); border-radius: 0; background: transparent; }
.vd-inline-host .vd-meest.has-error { border-top-color: #cc1818; }
