.rdc-suggestions {
    position: fixed;
    z-index: 999998;
    max-height: 340px;
    overflow-y: auto;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d8d2dc;
    border-radius: 10px;
    box-shadow: 0 16px 42px rgba(28, 18, 42, .18);
}
.rdc-suggestion {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #eee8f1;
    background: #fff;
    color: #24212a;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.rdc-suggestion:last-child { border-bottom: 0; }
.rdc-suggestion:hover,
.rdc-suggestion:focus { background: #f7effb; outline: none; }

body.woocommerce-cart .rdc-cart-destination-row > td {
    padding: 12px 0 16px !important;
    border-top: 0 !important;
}
.rdc-cart-destination {
    padding: 14px;
    border: 1px solid #eadfeb;
    border-radius: 12px;
    background: #fff;
}
.rdc-cart-destination > label {
    display: block;
    margin-bottom: 8px;
    color: #1e1725;
    font-weight: 700;
    font-size: 15px;
}
.rdc-cart-destination__controls {
    display: block;
}
.rdc-cart-destination__controls .rdc-city-input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
}
.rdc-cart-region {
    min-height: 18px;
    margin-top: 7px;
    color: #494251;
    font-size: 13px;
    font-weight: 600;
}
.rdc-cart-destination__hint {
    margin: 5px 0 0;
    color: #6a6370;
    font-size: 12px;
    line-height: 1.4;
}

body.woocommerce-cart .woocommerce-shipping-calculator { display: none !important; }
body.woocommerce-checkout .rdc-system-hidden-field,
body.woocommerce-checkout #billing_country_field,
body.woocommerce-checkout #shipping_country_field,
body.woocommerce-checkout #billing_state_field,
body.woocommerce-checkout #shipping_state_field,
body.woocommerce-checkout #billing_postcode_field,
body.woocommerce-checkout #shipping_postcode_field {
    display: none;
}
body.woocommerce-checkout .rdc-readonly-region-field input {
    background: #f6f4f7;
    color: #39343e;
    cursor: default;
}
body.woocommerce-checkout #order_comments {
    min-height: 84px;
    max-height: 360px;
    overflow-y: auto;
    resize: none;
    box-sizing: border-box;
}
body.rdc-destination-updating .cart_totals,
body.rdc-destination-updating form.checkout {
    opacity: .66;
    pointer-events: none;
    transition: opacity .16s ease;
}


/* Личный кабинет → адрес доставки */
body.woocommerce-account .rdc-system-hidden-field,
body.woocommerce-account #billing_country_field,
body.woocommerce-account #billing_state_field,
body.woocommerce-account #billing_postcode_field,
body.woocommerce-account #billing_address_1_field,
body.woocommerce-account #billing_address_2_field {
    display: none !important;
}
body.woocommerce-account .rdc-readonly-region-field input {
    background: #f7f4f8;
    color: #39343e;
    cursor: default;
}
.rdc-account-address-note {
    display: grid;
    gap: 4px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #eadfeb;
    border-radius: 12px;
    background: #fff8fd;
    color: #5d5262;
    line-height: 1.45;
}
.rdc-account-address-note strong {
    color: #1d1722;
    font-size: 15px;
}
.rdc-account-address-note.is-selected {
    border-color: #e400c6;
    box-shadow: 0 8px 24px rgba(228, 0, 198, .08);
}

/* Rukodel theme integration. Safe fallbacks keep the core reusable on Gift and Pro. */
.rdc-suggestion:hover,
.rdc-suggestion:focus {
    background: color-mix(in srgb, var(--rs-primary, #7b2f86) 8%, #fff);
}
.rdc-account-address-note.is-selected {
    border-color: var(--rs-primary, #7b2f86);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--rs-primary, #7b2f86) 10%, transparent);
}
body.rukodel-classic-checkout .rdc-readonly-region-field input,
body.rukodel-classic-checkout #billing_region_display {
    background: #f6f3f8 !important;
}

/* Cart keeps the city; carrier controls and the final price belong to checkout. */
.rdc-cart-delivery-note td {
    font-size: 13px;
    line-height: 1.5;
    color: #62566c;
    text-align: left !important;
    white-space: normal;
}
