.addresses-page {
    padding-bottom: 30px
}

.addresses-intro {
    position: relative;
    display: flex;
    min-height: 188px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 28px 34px;
    border: 1px solid #e9e1d3;
    border-radius: 20px;
    background: linear-gradient(112deg,#f5eee2,#f7f4ec 50%,#edf3ed);
    box-shadow: 0 14px 36px #263b3408
}

    .addresses-intro:before {
        position: absolute;
        inset: auto -35px -96px auto;
        width: 280px;
        height: 280px;
        border: 1px solid #b36e431b;
        border-radius: 50%;
        content: ""
    }

.addresses-intro-copy {
    position: relative;
    z-index: 1;
    max-width: 580px
}

.addresses-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: var(--copper-dark);
    font-size: 11px;
    font-weight: 700
}

    .addresses-eyebrow .icon {
        width: 16px;
        height: 16px
    }

.addresses-intro h2 {
    margin: 0 0 7px;
    color: var(--ink);
    font: 400 clamp(21px,3vw,29px)/1.5 var(--heading-font)
}

.addresses-intro p {
    max-width: 500px;
    color: #70776c;
    font-size: 12px;
    line-height: 2
}

.addresses-intro-art {
    position: relative;
    display: grid;
    width: 165px;
    height: 130px;
    flex: 0 0 165px;
    place-items: center;
    margin-inline: 20px 26px
}

.addresses-art-orbit {
    position: absolute;
    border: 1px solid #b36e4333;
    border-radius: 50%;
    transform: rotate(-25deg)
}

.addresses-art-orbit-one {
    width: 140px;
    height: 92px
}

.addresses-art-orbit-two {
    width: 110px;
    height: 142px;
    transform: rotate(35deg)
}

.addresses-art-pin {
    position: relative;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid #fff9;
    border-radius: 24px;
    background: linear-gradient(145deg,#fffefa,#eee5d7);
    box-shadow: 0 14px 30px #5c4b3520;
    color: var(--forest);
    transform: rotate(-7deg)
}

    .addresses-art-pin .icon {
        width: 35px;
        height: 35px;
        stroke-width: 1.5
    }

.addresses-art-spark {
    position: absolute;
    color: var(--copper);
    font-size: 24px
}

.addresses-art-spark-one {
    top: 8px;
    right: 20px
}

.addresses-art-spark-two {
    bottom: 9px;
    left: 18px;
    color: #5b8a77
}

.addresses-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 28px 0 16px
}

.addresses-toolbar-title {
    display: flex;
    align-items: center;
    gap: 12px
}

.addresses-section-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border: 1px solid #e3e8e0;
    border-radius: 14px;
    background: #f3f6ef;
    color: var(--forest)
}

    .addresses-section-icon .icon {
        width: 20px;
        height: 20px
    }

.addresses-toolbar h3 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700
}

.addresses-toolbar p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px
}

.addresses-toolbar .button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-inline: 17px;
    border-radius: 9px;
    font-size: 11px
}

    .addresses-toolbar .button .icon, .addresses-empty .button .icon {
        width: 16px;
        height: 16px
    }

    .addresses-toolbar .button:disabled {
        opacity: .55;
        cursor: not-allowed
    }

.addresses-loading {
    display: flex;
    min-height: 135px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 11px
}

.addresses-spinner {
    width: 19px;
    height: 19px;
    border: 2px solid #d9e2dc;
    border-top-color: var(--forest);
    border-radius: 50%;
    animation: address-spin .8s linear infinite
}

@keyframes address-spin {
    to {
        transform: rotate(360deg)
    }
}

.addresses-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px
}

.address-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    padding: 19px 19px 15px;
    border: 1px solid #e9e8df;
    border-radius: 15px;
    background: linear-gradient(145deg,#fff,#fffefa);
    box-shadow: 0 7px 20px #263b3408;
    transition: border-color .2s,box-shadow .2s,transform .2s
}

    .address-card:hover {
        border-color: #c9d8cd;
        box-shadow: 0 13px 30px #263b3410;
        transform: translateY(-2px)
    }

    .address-card.is-default {
        border-color: #d9e4d5
    }

.address-card-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg,var(--copper),#d4ae83);
    opacity: .6
}

.address-card.is-default .address-card-accent {
    background: linear-gradient(180deg,#4d9483,#23483f);
    opacity: 1
}

.address-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px
}

.address-card-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px
}

.address-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid #eee7da;
    border-radius: 13px;
    background: #f8f4ec;
    color: var(--copper-dark)
}

.address-card.is-default .address-card-icon {
    border-color: #e0eae0;
    background: #f1f6ef;
    color: var(--forest)
}

.address-card-icon .icon {
    width: 20px;
    height: 20px
}

.address-card-title h3 {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap
}

.address-card-subtitle {
    display: block;
    margin-top: 3px;
    color: #85887e;
    font-size: 9px
}

.address-default-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid #e0eadf;
    border-radius: 50px;
    background: #f2f7f0;
    color: #477253;
    font-size: 9px
}

    .address-default-badge .icon {
        width: 12px;
        height: 12px
    }

.address-card-recipient {
    display: flex;
    min-height: 31px;
    align-items: center;
    gap: 7px;
    color: #54635a;
    font-size: 10px
}

    .address-card-recipient strong {
        color: #354a40;
        font-size: 10px
    }

    .address-card-recipient b {
        font-size: 10px;
        font-weight: 500
    }

.address-inline-icon {
    display: inline-flex;
    color: #798c7c
}

    .address-inline-icon .icon {
        width: 14px;
        height: 14px
    }

.address-recipient-divider {
    width: 1px;
    height: 15px;
    margin-inline: 4px;
    background: #e6e9e3
}

.address-card-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 9px 0 0;
    padding: 10px 11px;
    border-radius: 9px;
    background: #f8f8f4;
    color: #536058
}

    .address-card-location .address-inline-icon {
        flex: 0 0 auto;
        margin-top: 3px;
        color: var(--copper)
    }

    .address-card-location p {
        margin: 0;
        font-size: 10px;
        line-height: 1.95;
        overflow-wrap: anywhere
    }

.address-postal {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: #8a8e83;
    font-size: 9px
}

    .address-postal b {
        color: #59655d;
        font-size: 10px;
        font-weight: 500
    }

.address-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px
}

.address-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

.address-action {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 7px;
    color: #647068;
    font-size: 9px;
    transition: background .18s,color .18s
}

    .address-action:hover {
        background: #f0f3ed;
        color: var(--forest)
    }

    .address-action .icon {
        width: 13px;
        height: 13px
    }

.address-edit-action {
    color: var(--forest)
}

.address-delete-action {
    color: #a26a60
}

    .address-delete-action:hover {
        background: #fbefec;
        color: #a43f35
    }

.address-card-index {
    color: #c6c7bd;
    font: italic 13px var(--heading-font)
}

.addresses-empty {
    display: flex;
    min-height: 290px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 1px dashed #d8ded6;
    border-radius: 17px;
    background: linear-gradient(135deg,#fffefa,#f8f8f2);
    text-align: center
}

.addresses-empty-icon {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    margin-bottom: 14px;
    border: 1px solid #e9e3d8;
    border-radius: 22px;
    background: #f7f2e8;
    color: var(--copper-dark);
    transform: rotate(-5deg)
}

    .addresses-empty-icon .icon {
        width: 29px;
        height: 29px
    }

.addresses-empty h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font: 400 18px var(--heading-font)
}

.addresses-empty p {
    max-width: 340px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 10px;
    line-height: 2
}

.addresses-empty .button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    gap: 7px;
    padding-inline: 14px;
    border-radius: 8px;
    font-size: 10px
}

.address-modal[hidden] {
    display: none
}

.address-modal {
    position: fixed;
    z-index: 1300;
    inset: 0;
    display: grid;
    overflow-y: auto;
    place-items: center;
    padding: 20px;
    animation: address-fade .18s ease both
}

@keyframes address-fade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.address-modal-panel {
    position: relative;
    width: min(100%,710px);
    max-height: min(92vh,820px);
    overflow-y: auto;
    padding: 26px 28px 22px;
    border: 1px solid #fff;
    border-radius: 19px;
    background: var(--paper);
    box-shadow: 0 28px 90px #17261f42;
    animation: address-rise .22s ease both
}

@keyframes address-rise {
    from {
        opacity: 0;
        transform: translateY(9px) scale(.99)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.address-modal-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 15px;
}

.address-modal-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid #e9e0d2;
    border-radius: 14px;
    background: #f5eee3;
    color: var(--copper-dark)
}

    .address-modal-icon .icon {
        width: 22px;
        height: 22px
    }

.address-modal-heading h2 {
    color: var(--ink);
    font: 400 18px var(--heading-font)
}

.address-modal-heading p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px
}

.address-modal-close {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    margin-inline-start: auto;
    border: 1px solid #e9e7df !important;
    border-radius: 50%;
    background: #fff !important;
    color: #788078 !important;
    transition: color .18s,background .18s
}

    .address-modal-close:hover {
        background: #f4eee6 !important;
        color: var(--ink) !important
    }

    .address-modal-close .icon {
        width: 16px;
        height: 16px
    }

.address-form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #527061;
    font-size: 10px;
    font-weight: 700
}

    .address-form-section-title i {
        height: 1px;
        flex: 1;
        background: linear-gradient(90deg,#d9e1d9,transparent)
    }

.address-form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px 15px;
    margin-bottom: 20px
}

.address-recipient-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.address-field {
    display: grid;
    min-width: 0;
    gap: 5px;
    color: #4a574f;
    font-size: 10px
}

    .address-field > span {
        display: flex;
        align-items: center;
        gap: 5px
    }

    .address-field b {
        color: #b8664c;
        font-size: 11px
    }

    .address-field small {
        color: #9a9b90;
        font-size: 8px;
        font-weight: 400
    }

    .address-field input, .address-field select, .address-field textarea {
        width: 100%;
        min-height: 42px;
        padding: 9px 11px;
        border: 1px solid #e0e3dc;
        border-radius: 8px;
        outline: none;
        background: #fff;
        color: #34483d;
        font: 10px var(--body-font);
        transition: border-color .18s,box-shadow .18s
    }

    .address-field select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b7d71' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: 12px center;
        padding-inline-start: 30px
    }

        .address-field select:disabled {
            background-color: #f4f4f0;
            color: #a0a399
        }

    .address-field textarea {
        min-height: 82px;
        resize: vertical;
        line-height: 1.9
    }

        .address-field input:focus, .address-field select:focus, .address-field textarea:focus {
            border-color: #87a897;
            box-shadow: 0 0 0 3px #4d948315
        }

        .address-field input::placeholder, .address-field textarea::placeholder {
            color: #b1b4aa;
            font-size: 9px
        }

.address-field-wide {
    grid-column: 1/-1
}

.address-default-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1px 0 17px;
    cursor: pointer
}

    .address-default-check input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0
    }

.address-checkbox-mark {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    border: 1px solid #cbd4cb;
    border-radius: 6px;
    background: #fff;
    color: transparent;
    transition: .18s
}

    .address-checkbox-mark .icon {
        width: 12px;
        height: 12px
    }

.address-default-check input:checked + .address-checkbox-mark {
    border-color: var(--forest);
    background: var(--forest);
    color: #fff
}

.address-default-check input:focus-visible + .address-checkbox-mark {
    outline: 2px solid var(--copper);
    outline-offset: 2px
}

.address-default-check strong, .address-default-check small {
    display: block
}

.address-default-check strong {
    color: #405247;
    font-size: 10px
}

.address-default-check small {
    margin-top: 2px;
    color: #8f948a;
    font-size: 8px
}

.address-form-error {
    margin: 0 0 12px;
    padding: 9px 11px;
    border: 1px solid #f0d8d1;
    border-radius: 8px;
    background: #fff4f0;
    color: #a44738;
    font-size: 10px
}

.address-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line)
}

.address-form-actions > span {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px
}

    .address-form-actions .button {
        display: inline-flex;
        min-width: 120px;
        min-height: 40px;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding-inline: 14px;
        border-radius: 8px;
        font-size: 10px
    }

        .address-form-actions .button .icon {
            width: 14px;
            height: 14px
        }

    .address-form-actions .button-secondary {
        border: 1px solid #e5e4dc;
        background: #fff;
        color: #687268
    }

.address-save-button.is-loading {
    opacity: .7;
    cursor: wait
}

body.address-page-modal-open {
    overflow: hidden
}

@media(max-width:860px) {
    .addresses-list {
        grid-template-columns: 1fr
    }

    .address-card {
        padding: 17px
    }

    .addresses-intro {
        min-height: 170px;
        padding: 24px 26px
    }

    .addresses-intro-art {
        margin-inline: 10px 2px
    }
}

@media(max-width:600px) {
    .addresses-page {
        padding-bottom: 20px
    }

    .addresses-intro {
        min-height: 150px;
        padding: 20px 18px;
        border-radius: 15px
    }

    .addresses-intro-copy {
        max-width: calc(100% - 75px)
    }

    .addresses-intro h2 {
        font-size: 19px
    }

    .addresses-intro p {
        font-size: 10px
    }

    .addresses-intro-art {
        width: 80px;
        height: 90px;
        flex-basis: 80px;
        margin: 0
    }

    .addresses-art-orbit-one {
        width: 75px;
        height: 52px
    }

    .addresses-art-orbit-two {
        width: 57px;
        height: 79px
    }

    .addresses-art-pin {
        width: 48px;
        height: 48px;
        border-radius: 17px
    }

        .addresses-art-pin .icon {
            width: 25px;
            height: 25px
        }

    .addresses-art-spark {
        font-size: 16px
    }

    .addresses-art-spark-one {
        top: 2px;
        right: 2px
    }

    .addresses-art-spark-two {
        bottom: 4px;
        left: 1px
    }

    .addresses-toolbar {
        align-items: flex-start;
        margin: 22px 0 13px
    }

    .addresses-toolbar-title {
        gap: 9px
    }

    .addresses-section-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px
    }

    .addresses-toolbar h3 {
        font-size: 12px
    }

    .addresses-toolbar p {
        font-size: 9px
    }

    .addresses-toolbar .button {
        min-height: 38px;
        padding-inline: 10px;
        font-size: 9px
    }

        .addresses-toolbar .button .icon {
            width: 14px;
            height: 14px
        }

    .address-card-head {
        align-items: flex-start
    }

    .address-default-badge {
        padding: 4px 6px;
        font-size: 8px
    }

    .address-card-title h3 {
        font-size: 12px
    }

    .address-card-recipient {
        flex-wrap: wrap;
        gap: 6px
    }

    .address-card-footer {
        align-items: flex-end
    }

    .address-card-actions {
        gap: 2px
    }

    .address-action {
        padding: 5px 6px;
        font-size: 8px
    }

    .address-modal {
        align-items: end;
        padding: 8px
    }

    .address-modal-panel {
        width: 100%;
        max-height: 94vh;
        padding: 20px 17px 16px;
        border-radius: 17px 17px 12px 12px
    }

    .address-modal-heading {
        margin-bottom: 16px
    }

    .address-form-grid {
        grid-template-columns: 1fr;
        gap: 11px;
        margin-bottom: 17px
    }

    .address-field-wide {
        grid-column: auto
    }

    .address-field input, .address-field select, .address-field textarea {
        min-height: 44px;
        font-size: 11px
    }

    .address-field textarea {
        min-height: 78px
    }

    .address-form-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px
    }

    .address-form-actions > span {
        width: 100%;
        order: 1
    }

    .address-form-actions > span .button {
        min-width: 0;
        flex: 1
    }

    .address-form-actions .address-default-check {
        width: 100%;
        order: 0
    }

    .addresses-empty {
        min-height: 255px
    }
}
