.td-cart-widget {
    margin: 0 0 24px 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.4;
}

/* Themes (Breakdance, Astra, Twenty Twenty-Four) style global h3 at 24-32px
   which blows up the widget heading. Win on specificity rather than
   !important so the merchant can still override if they want to. */
.td-cart-widget .td-cart-widget__title,
h3.td-cart-widget__title {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    color: inherit;
}

.td-cart-widget__field {
    position: relative;
    margin-bottom: 12px;
}

.td-cart-widget .td-cart-widget__input,
input.td-cart-widget__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    box-sizing: border-box;
    color: inherit;
    font-family: inherit;
}

.td-cart-widget__input:focus {
    outline: none;
    border-color: currentColor;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.td-cart-widget__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    margin: 4px 0 0 0;
    padding: 4px 0;
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10), 0 2px 4px rgba(15, 23, 42, 0.06);
}

.td-cart-widget__menu[hidden] { display: none; }

.td-cart-widget__item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background-color 80ms ease, border-color 80ms ease;
    color: inherit;
}

.td-cart-widget__item:hover,
.td-cart-widget__item.is-active {
    background: rgba(0, 0, 0, 0.04);
    border-left-color: currentColor;
}

.td-cart-widget__postcode {
    min-width: 48px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.td-cart-widget__locality {
    flex: 1 1 auto;
    text-transform: capitalize;
}

.td-cart-widget__radios {
    display: flex;
    gap: 16px;
    margin: 0 0 12px 0;
    align-items: center;
}

.td-cart-widget .td-cart-widget__radios label,
.td-cart-widget__radios label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

/*
 * Don't restyle the button — let theme classes (wp-block-button__link,
 * wc-block-components-button) drive its appearance so it matches Proceed to
 * Checkout. We only guarantee width here.
 */
.td-cart-widget__submit {
    display: block;
    width: 100%;
    text-align: center;
}

.td-cart-widget__status {
    margin-top: 10px;
    min-height: 1.2em;
    font-size: 13px;
    color: inherit;
    opacity: 0.7;
}

.td-cart-widget__status.is-loading { opacity: 0.9; }
.td-cart-widget__status.is-success { color: #1f883d; opacity: 1; }
.td-cart-widget__status.is-error   { color: #d63638; opacity: 1; }

.td-cart-widget__message {
    list-style: none;
    margin: 0;
    padding: 10px 14px;
    text-align: center;
    font-size: 13px;
    font-style: italic;
    color: inherit;
    opacity: 0.7;
    cursor: default;
}

.td-cart-widget__message--loading { opacity: 0.9; }
.td-cart-widget__message--empty   { opacity: 0.7; }
.td-cart-widget__message--error   { color: #d63638; opacity: 1; }
