/* =========================================================
   UI 022A — ACCOUNT CONSISTENCY / ACTUAL ADDRESS VIEW FIX
   ========================================================= */

.ds24-account-page {
    background: #fff;
    color: #171717;
    font-family: Inter, Arial, sans-serif;
}

.ds24-account-page *,
.ds24-account-page *::before,
.ds24-account-page *::after {
    box-sizing: border-box;
}

.ds24-account-page a {
    color: inherit;
    text-decoration: none;
}

.ds24-account-shell {
    padding: 48px 0 96px;
    background: #fff;
}

.ds24-account-layout {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    gap: clamp(42px, 7vw, 95px);
    align-items: start;
}

.ds24-account-sidebar {
    position: sticky;
    top: 26px;
    min-width: 0;
}

.ds24-account-main {
    min-width: 0;
}

.ds24-content-head {
    min-height: 112px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e2dcd3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 35px;
}

.ds24-content-head p,
.ds24-form-title p,
.ds24-address-list > header p,
.ds24-modal-head p,
.ds24-help-strip p {
    margin: 0 0 7px;
    color: #837b72;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ds24-content-head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(39px, 4.2vw, 58px);
    line-height: .98;
    font-weight: 400;
    letter-spacing: -.04em;
}

.ds24-content-head > span {
    max-width: 350px;
    color: #716a62;
    font-size: 11px;
    line-height: 1.65;
}

.ds24-form-card {
    margin-top: 31px;
    padding: clamp(22px, 3vw, 31px);
    border: 1px solid #e1dad1;
    background: #f7f3ed;
}

.ds24-form-title {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.ds24-form-title p {
    margin: 0;
    color: #171717;
    font-size: 10px;
}

.ds24-form-title span {
    color: #817970;
    font-size: 9px;
}

.ds24-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 19px;
}

.ds24-field {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.ds24-field--wide {
    grid-column: 1 / -1;
}

.ds24-field > span {
    color: #686158;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.ds24-field input {
    width: 100%;
    min-height: 49px;
    padding: 0 14px;
    border: 1px solid #d8d0c6;
    border-radius: 0;
    outline: 0;
    background: #fff;
    color: #171717;
    font-size: 12px;
}

.ds24-field input:focus {
    border-color: #171717;
    box-shadow: 0 0 0 2px rgba(23, 23, 23, .04);
}

.ds24-save-button {
    min-width: 155px;
    min-height: 47px;
    margin-top: 24px;
    padding: 0 17px;
    border: 1px solid #171717;
    background: #171717;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 17px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

.ds24-save-button:hover {
    background: #8e703a;
    border-color: #8e703a;
}

.ds24-save-button .material-symbols-outlined {
    font-size: 17px;
}

.ds24-address-list {
    margin-top: 43px;
}

.ds24-address-list > header h3,
.ds24-modal-head h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 400;
    letter-spacing: -.03em;
}

.ds24-address-grid {
    margin-top: 19px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.ds24-address-card {
    min-height: 235px;
    padding: 21px;
    border: 1px solid #e1dad1;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.ds24-address-card.is-default {
    border-color: #9a783d;
    box-shadow: inset 0 0 0 1px #9a783d;
}

.ds24-address-card__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.ds24-address-card__head p {
    margin: 0 0 4px;
    color: #817970;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ds24-address-card__head strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.ds24-address-card__head > span {
    min-height: 25px;
    padding: 0 9px;
    border-radius: 99px;
    background: #eee5d5;
    color: #795e30;
    display: inline-flex;
    align-items: center;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.ds24-address-card__body {
    margin-top: 18px;
    color: #6f685f;
    font-size: 10px;
    line-height: 1.55;
}

.ds24-address-card__body p {
    margin: 0 0 3px;
}

.ds24-address-card__actions {
    margin-top: auto;
    padding-top: 19px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ds24-address-card__actions button {
    padding: 0 0 3px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: #625b53;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.ds24-address-card__actions button:disabled {
    opacity: .55;
    cursor: default;
}

.ds24-address-card__actions .delete {
    color: #8b4b43;
}

.ds24-address-card__actions .material-symbols-outlined {
    font-size: 14px;
}

.ds24-address-modal .modal-content {
    border: 0;
    border-radius: 0;
}

.ds24-address-modal .modal-body {
    padding: 31px;
}

.ds24-address-modal .close {
    position: absolute;
    top: 15px;
    right: 17px;
    border: 0;
    background: transparent;
    font-size: 28px;
}

.ds24-modal-head {
    margin-bottom: 24px;
}

/* Wishlist consistent with account content start */
.ds24-wishlist-grid {
    margin-top: 31px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 11px;
}

.ds24-wishlist-card {
    position: relative;
    min-width: 0;
}

.ds24-wishlist-card__media {
    aspect-ratio: 3 / 4;
    display: block;
    overflow: hidden;
    background: #eee8df;
}

.ds24-wishlist-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.ds24-wishlist-card__remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.93);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.ds24-wishlist-card__remove .material-symbols-outlined {
    font-size: 17px;
}

.ds24-wishlist-card__body {
    padding-top: 12px;
}

.ds24-wishlist-card__body > p {
    margin: 0 0 5px;
    color: #817970;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ds24-wishlist-card__name {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.2;
}

.ds24-wishlist-card__price {
    margin-top: 7px;
    font-size: 10px;
    font-weight: 600;
}

.ds24-wishlist-add,
.ds24-wishlist-sold {
    min-height: 40px;
    margin-top: 12px;
    padding: 0 12px;
    border: 1px solid #171717;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #171717;
    color: #fff !important;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ds24-wishlist-sold {
    border-color: #d8d0c6;
    background: #f2eee8;
    color: #776f67 !important;
}

.ds24-empty {
    min-height: 430px;
    margin-top: 31px;
    padding: 45px 25px;
    background: #f7f3ed;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
}

.ds24-empty > .material-symbols-outlined {
    color: #9a783d;
    font-size: 40px;
}

.ds24-empty h2 {
    margin: 15px 0 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 400;
}

.ds24-empty p {
    max-width: 430px;
    margin: 0;
    color: #716a62;
    font-size: 11px;
    line-height: 1.65;
}

.ds24-empty a {
    min-height: 42px;
    margin-top: 20px;
    padding: 0 16px;
    background: #171717;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ds24-help-strip {
    margin-top: 30px;
    padding: 24px;
    background: #171717;
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.ds24-help-strip p {
    color: #c8b28e;
}

.ds24-help-strip strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 400;
}

.ds24-help-strip > div:last-child {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: rgba(255,255,255,.68);
    font-size: 9px;
}

.ds24-help-strip a {
    color: #fff;
    border-bottom: 1px solid currentColor;
}

/* Force all modern account layouts to the exact same sidebar column/offset. */
.ds20-account__layout,
.ds21-account-layout,
.ds23-account-layout,
.ds24-account-layout {
    grid-template-columns: 205px minmax(0, 1fr) !important;
    gap: clamp(42px, 7vw, 95px) !important;
    align-items: start !important;
}

.ds20-account,
.ds21-account-shell,
.ds23-account-shell,
.ds24-account-shell {
    padding-top: 48px !important;
}

.ds20-account__sidebar,
.ds21-account-sidebar,
.ds23-account-sidebar,
.ds24-account-sidebar {
    position: sticky !important;
    top: 26px !important;
    align-self: start !important;
}

/* The account title area now has one consistent height across all modern pages. */
.ds20-account-page .ds13-page-head,
.ds21-account-page .ds13-page-head,
.ds23-account-page .ds13-page-head,
.ds24-account-page .ds13-page-head {
    min-height: 222px;
    display: flex;
    align-items: center;
}

@media (max-width: 1000px) {
    .ds24-wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ds20-account__layout,
    .ds21-account-layout,
    .ds23-account-layout,
    .ds24-account-layout {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .ds20-account__sidebar,
    .ds21-account-sidebar,
    .ds23-account-sidebar,
    .ds24-account-sidebar {
        position: static !important;
    }
}

@media (max-width: 680px) {
    .ds24-account-shell {
        padding: 32px 0 65px;
    }

    .ds24-content-head {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .ds24-content-head > span {
        max-width: 100%;
    }

    .ds24-form-card {
        margin-top: 24px;
        padding: 18px;
    }

    .ds24-form-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .ds24-form-grid,
    .ds24-address-grid {
        grid-template-columns: 1fr;
    }

    .ds24-field--wide {
        grid-column: auto;
    }

    .ds24-wishlist-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 8px;
    }

    .ds24-help-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .ds24-help-strip > div:last-child {
        justify-content: flex-start;
    }

    .ds20-account-page .ds13-page-head,
    .ds21-account-page .ds13-page-head,
    .ds23-account-page .ds13-page-head,
    .ds24-account-page .ds13-page-head {
        min-height: 170px;
    }
}
