/* ==========================================================================
   ACCOUNT ADDRESS BOOK PAGE STYLES (Women Accessories)
   File: public/assets/css/account_address_book.css
   ========================================================================== */

/* Breadcrumb Bar (#f8f8f8) */
.address-book-breadcrumb-bar {
    width: 100%;
    background-color: #f8f8f8;
    padding-top: clamp(1.4rem, 1.6vw, 2.0rem);
    padding-bottom: clamp(1.4rem, 1.6vw, 2.0rem);
    border-bottom: 1px solid #f0f0f0;
}

.address-book-breadcrumb-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(2.4rem, 4.8vw, 7.8rem);
    padding-right: clamp(2.4rem, 4.8vw, 7.8rem);
}

.address-book-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.95vw, 1.35rem);
    color: #595959;
    line-height: 1;
    margin: 0;
}

.address-book-breadcrumb-link {
    color: #595959;
    text-decoration: none;
    transition: color 0.2s ease;
}

.address-book-breadcrumb-link:hover {
    color: #111111;
    text-decoration: none;
}

.address-book-breadcrumb-sep {
    color: #777777;
    margin: 0 0.2rem;
}

.address-book-breadcrumb-badge {
    background-color: #ff97aa;
    color: #111111;
    font-weight: 500;
    font-size: clamp(1.15rem, 0.9vw, 1.25rem);
    padding: 0.45rem 1.4rem;
    border-radius: 5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.2rem 0.6rem rgba(255, 151, 170, 0.25);
}

/* ==========================================================================
   MAIN ADDRESS BOOK SECTION
   ========================================================================== */

.address-book-main-section {
    background-color: #ffffff;
    padding-top: clamp(4.4rem, 6.0vw, 8.0rem);
    padding-bottom: clamp(6.4rem, 8.8vw, 12.0rem);
    width: 100%;
}

.address-book-main-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(2.4rem, 4.8vw, 7.8rem);
    padding-right: clamp(2.4rem, 4.8vw, 7.8rem);
}

/* Header Row */
.address-book-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
    margin-bottom: clamp(3.6rem, 4.8vw, 5.8rem);
}

.address-book-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.8rem, 3.4vw, 4.4rem);
    font-weight: 500;
    line-height: 1.2;
    color: #111111;
    margin: 0;
    letter-spacing: -0.015em;
}

.btn-book-add-address {
    height: clamp(4.4rem, 4.0vw, 5.2rem);
    padding: 0 clamp(2.6rem, 3.2vw, 4.2rem);
    border-radius: 5rem;
    background-color: #35f3ff !important;
    color: #000000 !important;
    border: none;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.15rem, 0.9vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0.2rem 1.2rem rgba(53, 243, 255, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.btn-book-add-address:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
    box-shadow: 0 0.4rem 1.6rem rgba(53, 243, 255, 0.5);
    color: #000000 !important;
}

.btn-book-add-address .btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.2s ease;
}

.btn-book-add-address:hover .btn-arrow {
    transform: translate(0.25rem, -0.25rem);
}

/* Inline Address Book Form (Opens at same place, exact match to checkout) */
.address-book-form-wrap {
    width: 100%;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
}

.address-book-form-wrap .row {
    --bs-gutter-y: 1.6rem;
    --bs-gutter-x: 1.6rem;
}

/* ==========================================================================
   SAVED ADDRESS CARDS GRID
   ========================================================================== */

.saved-address-card {
    background-color: #f8f8f8;
    border-radius: 2.8rem;
    padding: clamp(2.8rem, 3.4vw, 4.0rem);
    height: 100%;
    min-height: 21.0rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.saved-address-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.04);
}

.saved-address-top {
    display: flex;
    flex-direction: column;
    gap: 1.0rem;
}

.saved-address-tag {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666666;
    line-height: 1;
    margin: 0;
}

.saved-address-text {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.35rem, 1.1vw, 1.5rem);
    font-weight: 400;
    color: #111111;
    line-height: 1.5;
    margin: 0;
}

.saved-address-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: clamp(2.4rem, 2.8vw, 3.4rem);
}

.btn-card-action {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 0.8rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-card-edit {
    background-color: #00f0ff;
    color: #000000;
}

.btn-card-edit:hover {
    filter: brightness(0.94);
    transform: scale(1.05);
}

.btn-card-delete {
    background-color: #dc2626;
    color: #ffffff;
}

.btn-card-delete:hover {
    filter: brightness(0.92);
    transform: scale(1.05);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 767.98px) {
    .address-book-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.8rem;
    }

    .btn-book-add-address {
        align-self: flex-start;
    }

    .saved-address-card {
        padding: 2.4rem;
        border-radius: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .address-book-main-container,
    .address-book-breadcrumb-container {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }

    .btn-book-add-address {
        width: 100%;
        max-width: 32rem;
    }

    .saved-address-card {
        padding: 2.0rem 1.8rem;
        border-radius: 2.0rem;
    }
}

/* Address type icons are the fixed HOME / WORK / OTHER SVGs supplied for this page. */
.saved-address-type {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.saved-address-type-icon {
    display: inline-block;
    flex: 0 0 auto;
}

/* Keep the saved-address edit form aligned with the two-column New Address form. */
.address-book-form-wrap .new-address-columns-grid {
    margin-bottom: 0;
}

.address-book-form-wrap .new-address-action-row {
    gap: 1.2rem;
}

@media (max-width: 767.98px) {
    .address-book-form-wrap .new-address-action-row {
        flex-wrap: wrap;
    }
}

.address-book-form-wrap .new-address-columns-grid {
    margin-bottom: clamp(3.6rem, 4.6vw, 6.0rem);
}

.address-book-form-wrap .new-address-action-row {
    align-items: center;
}
