.user-address-book { padding-top: 10px;
    padding-bottom: 45px; }
.user-address-book-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:25px; }
.ua-address-list { display:grid; gap:15px;
    margin-top: 18px; }
.ua-address-card {
    background: #fff;
    box-shadow: 0 2px 7px rgba(0,0,0,.05);
    border: 1px solid #dce1e5;
    border-radius: 4px;
    padding: 17px 18px; }
.ua-address-title { font-weight:700; margin-bottom:8px; }
.ua-default-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    margin-left: 9px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #e8f3fa;
    color: #0171bb; }
.ua-address-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px; }
.ua-address-actions button { text-decoration:underline;
    padding: 7px 12px;
    border: 1px solid #d5d9dd;
    background: #fff;
    cursor: pointer; }
.ua-address-actions button:not(:disabled):not([aria-disabled="true"]):is(:focus-visible) { background-color: var(--action-hover-bg); color: var(--action-hover-text); border-color: var(--action-hover-bg); }
@media (hover: hover) {
.ua-address-actions button:not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible) { background-color: var(--action-hover-bg); color: var(--action-hover-text); border-color: var(--action-hover-bg); } }
.ua-empty,.ua-loading { padding:25px; border:1px solid #e1e4e8; background:#fff; }
.ua-modal { align-items:center; justify-content:center; padding:20px;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999; }
.ua-modal.active { display:flex; }
.ua-modal-background {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55); }
.ua-modal-window { z-index:1; overflow:auto;
    position: relative;
    width: calc(100% - 32px);
    max-width: 540px;
    max-height: calc(100vh - 60px);
    margin: 30px auto;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0,0,0,.28); }
.ua-modal-close {
    cursor: pointer;
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 13px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f3f5;
    color: #555;
    font-size: 24px;
    line-height: 32px; }
body.ua-modal-open {
    overflow: hidden; }

.ua-modal.is-open {
    display: block;
}

.ua-form-title {
    margin-bottom: 22px;
    margin: 0 42px 21px 0;
    padding: 0 0 13px;
    border-bottom: 1px solid #e1e5e9;
    color: #222;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.ua-field {
    margin: 0 0 14px;
}





.ua-field textarea {
    height: 74px;
    min-height: 74px;
    resize: vertical;
}

.ua-default-check {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 20px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
}

.ua-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.ua-cancel {
    padding: 10px 18px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

.ua-address-card-head {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #222;
    font-size: 16px;
}

.ua-address-body {
    line-height: 1.55;
}

.ua-message.success {
    margin: 10px 0;
    color: #267347;
}

.ua-message.error {
    margin: 10px 0;
    color: #d81d42;
}

/* ===== Address Book UI v2 ===== */

.user-address-book-head .ua-add-address {
    border: 0;
    border-radius: 3px;
    background: #0171bb;
    color: #fff;
    padding: 11px 18px;
    min-height: 40px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: none;
}

@media (hover: hover) {

.user-address-book-head .ua-add-address:hover {
    background: #00adee;
    color: #fff;
} }

#ua-modal-content {
    padding: 25px 28px 26px;
}

@media (hover: hover) {

.ua-modal-close:hover {
    background: #e2e5e8;
    color: #222;
} }

.ua-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
}

.ua-field.ua-full {
    grid-column: 1 / -1;
}

.ua-field label > span {
    color: #d81d42;
}





.ua-field.has-error input,
.ua-field.has-error select,
.ua-field.has-error textarea {
    border-color: #d81d42;
    box-shadow: 0 0 0 2px rgba(216,29,66,.08);
}

.ua-field-error {
    min-height: 0;
    margin-top: 4px;
    color: #d81d42;
    font-size: 12px;
    line-height: 1.3;
}

.ua-default-check input {
    width: 15px;
    height: 15px;
    margin: 0;
}

.ua-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 105px;
    padding: 0 18px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
    line-height: 40px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: none;
}

.ua-btn-primary {
    border: 1px solid #0171bb;
    background: #0171bb;
    color: #fff;
}

@media (hover: hover) {

.ua-btn-primary:hover {
    border-color: #00adee;
    background: #00adee;
    color: #fff;
} }

.ua-btn-secondary {
    border: 1px solid #cfd4d8;
    background: #f2f3f4;
    color: #444;
}

@media (hover: hover) {

.ua-btn-secondary:hover {
    border-color: #aeb5bb;
    background: #e4e6e8;
    color: #222;
} }

.ua-btn:disabled {
    opacity: .6;
    cursor: default;
}

.ua-btn.ua-btn-small {
    height: 34px;
    min-width: 0;
    padding: 0 13px;
    border: 1px solid #cbd2d8;
    background: #fff;
    color: #164f73;
    font-size: 13px;
    line-height: 34px;
}

@media (hover: hover) {

.ua-btn-small:hover {
    border-color: #0171bb;
    background: #f2f8fc;
    color: #0171bb;
} }

.ua-address-name {
    margin-bottom: 3px;
    font-weight: 600;
}

.ua-address-comment {
    margin-top: 7px;
    color: #777;
    font-size: 13px;
}

@media (max-width: 600px) {
    .ua-modal-window {
        width: calc(100% - 18px);
        max-height: calc(100vh - 18px);
        margin: 9px auto;
    }

    #ua-modal-content {
        padding: 22px 17px 20px;
    }

    .ua-form-grid {
        grid-template-columns: 1fr;
    }

    .ua-field {
        grid-column: 1 / -1;
    }

    .ua-form-actions {
        flex-direction: column-reverse;
    }

    .ua-btn {
        width: 100%;
    }
}

/* ===== MY ADDRESSES FINAL ===== */

.ua-empty {
    display: block;
    width: auto;
    min-height: 0;
    margin: 14px 0 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.ua-add-address,
.user-address-book-head .ua-add-address {
    padding: 10px 18px;
    border: 1px solid #0171bb;
    border-radius: 3px;
    box-shadow: none;
}

@media (hover: hover) {

.ua-add-address:hover,
.user-address-book-head .ua-add-address:hover {
    border-color: #00adee;
} }

/* ===== FINAL ADDRESS BOOK ACCENTS ===== */

.ua-add-address,
.user-address-book-head .ua-add-address,
.ua-btn-primary {
    background: #0171bb;
    border-color: #0171bb;
    color: #fff;
}

@media (hover: hover) {

.ua-add-address:hover,
.user-address-book-head .ua-add-address:hover,
.ua-btn-primary:hover {
    background: #00adee;
    border-color: #00adee;
} }

/* Empty state = text only */

/* ===== MY ADDRESSES FINAL ===== */

/* Buttons */
