.zc-delivery-estimate {
    position: relative;
    width: 100%;
}

.zc-delivery-estimate .is-hidden {
    display: none !important;
}

.zc-delivery-estimate__line {
    display: block;
    width: 100%;
    line-height: inherit;
}

.zc-delivery-estimate__stock,
.zc-delivery-estimate__separator,
.zc-delivery-estimate__delivery,
.zc-delivery-estimate__normal,
.zc-delivery-estimate__override,
.zc-delivery-estimate__prefix,
.zc-delivery-estimate__date,
.zc-delivery-estimate__country-static,
.zc-delivery-estimate__country-selector,
.zc-delivery-estimate__country-suffix {
    display: inline;
    vertical-align: baseline;
}

.zc-delivery-estimate__stock {
    color: #2e7d32;
    white-space: wrap;
}

.zc-delivery-estimate__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 999px;
    background-color: currentColor;
    vertical-align: 0.08em;
}

.zc-delivery-estimate__separator {
    opacity: 0.65;
    white-space: pre-wrap;
}

.zc-delivery-estimate__delivery {
    color: #333;
}

.zc-delivery-estimate__country-selector {
    position: relative;
}

.zc-delivery-estimate__country-button,
.zc-delivery-estimate__country-option {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    margin: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.zc-delivery-estimate__country-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0;
    color: #111;
    background: transparent;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    vertical-align: baseline;
}

.zc-delivery-estimate__country-button:focus-visible,
.zc-delivery-estimate__country-option:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.zc-delivery-estimate__country-static {
    color: #111;
    font-weight: 500;
}

.zc-delivery-estimate__chevron {
    display: block;
    flex: 0 0 auto;
    width: 0.72em;
    height: 0.48em;
    transition: transform 180ms ease;
}

.zc-delivery-estimate.is-country-menu-open .zc-delivery-estimate__chevron {
    transform: rotate(180deg);
}

.zc-delivery-estimate__country-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    min-width: 210px;
    max-width: min(340px, calc(100vw - 32px));
    max-height: 280px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
}

.zc-delivery-estimate__country-menu[hidden] {
    display: none !important;
}

.zc-delivery-estimate__country-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 5px;
    color: #222;
    background: transparent;
}

.zc-delivery-estimate__country-option:hover,
.zc-delivery-estimate__country-option:focus-visible,
.zc-delivery-estimate__country-option[aria-selected="true"] {
    background: #f3f4f6;
}

.zc-delivery-estimate__country-days {
    flex: 0 0 auto;
    opacity: 0.65;
    font-size: 0.88em;
}

.zc-delivery-estimate__date {
    font-weight: 500;
}

.zc-delivery-estimate[data-stock-state="pending"] .zc-delivery-estimate__stock {
    color: #6b7280;
}

.zc-delivery-estimate[data-stock-state="in_stock"] .zc-delivery-estimate__stock {
    color: #2e7d32;
}

.zc-delivery-estimate[data-stock-state="low_stock"] .zc-delivery-estimate__stock {
    color: #b26a00;
}

.zc-delivery-estimate[data-stock-state="backorder"] .zc-delivery-estimate__stock {
    color: #6b5aa6;
}

.zc-delivery-estimate[data-stock-state="out_of_stock"] .zc-delivery-estimate__stock {
    color: #b42318;
}

.zc-delivery-estimate[data-has-override="yes"] .zc-delivery-estimate__stock {
    color: #8a5a00;
}

@media (max-width: 767px) {
    .zc-delivery-estimate__country-menu {
        left: 0;
        right: auto;
        max-width: min(320px, calc(100vw - 24px));
    }
}
