
/* =========================================================
   USER ADDRESS PAGE
========================================================= */

.user-address-page {
    width: 100%;
}

.address-page-header {
    margin-bottom: 30px;
}

.address-eyebrow,
.modal-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #999;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.address-page-header .title {
    margin-bottom: 6px;
}

.address-page-header p {
    margin: 0;
    color: #777;
}

/* =========================================================
   ADDRESS CARD
========================================================= */

.address-card {
    position: relative;

    height: 100%;
    overflow: hidden;

    background: #fff;

    border: 1px solid #e9e9e9;
    border-radius: 14px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.address-card:hover {
    border-color: #d8d8d8;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);

    transform: translateY(-2px);
}


/* =========================================================
   CARD HEADER
========================================================= */

.address-card-header {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 82px;

    padding: 18px 65px 18px 22px;

    border-bottom: 1px solid #eeeeee;

    background: #fff;
}

.address-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.address-card-title > div:last-child span {
    display: block;

    margin-bottom: 3px;

    color: #999;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-card-title h4 {
    margin: 0;

    color: #222;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}


/* =========================================================
   ADDRESS ICON
========================================================= */

.address-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    font-size: 17px;
}

.billing-icon {
    background: #f5f2ff;
    color: #6d4aff;
}

.shipping-icon {
    background: #eef8f3;
    color: #24915a;
}


/* =========================================================
   EDIT ICON BUTTON
========================================================= */

.address-edit-btn {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #e7e7e7;
    border-radius: 50%;

    background: #fff;

    color: #777;

    font-size: 13px;

    cursor: pointer;

    outline: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.address-edit-btn:hover {
    border-color: #111;

    background: #111;

    color: #fff;

    transform: translateY(-1px);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.address-edit-btn:active {
    transform: scale(0.94);
}

.address-edit-btn i {
    font-size: 12px;
}


/* =========================================================
   TOOLTIP
========================================================= */

.address-edit-btn::after {
    content: attr(data-tooltip);

    position: absolute;

    right: 0;
    top: calc(100% + 8px);

    z-index: 20;

    padding: 6px 9px;

    border-radius: 5px;

    background: #222;
    color: #fff;

    font-size: 10px;
    font-weight: 500;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-3px);

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.address-edit-btn::before {
    content: "";

    position: absolute;

    right: 13px;
    top: calc(100% + 3px);

    width: 7px;
    height: 7px;

    background: #222;

    transform: rotate(45deg);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.address-edit-btn:hover::after,
.address-edit-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

.address-edit-btn:hover::after {
    transform: translateY(0);
}


/* =========================================================
   CARD BODY
========================================================= */

.address-card-body {
    min-height: 270px;

    padding: 24px 22px;
}

.address-card-body h5 {
    margin: 0 0 10px;

    color: #222;

    font-size: 16px;
    font-weight: 600;
}

.address-card-body p {
    margin: 0 0 5px;

    color: #666;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   CONTACT
========================================================= */

.address-contact {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 12px;

    color: #555;

    font-size: 13px;
}

.address-contact i {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #f6f6f6;

    font-size: 11px;
}


/* =========================================================
   EMPTY ADDRESS
========================================================= */

.empty-address {
    height: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 20px;

    text-align: center;
}

.empty-address-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 50%;

    background: #f7f7f7;

    color: #999;

    font-size: 20px;
}

.empty-address h5 {
    margin-bottom: 5px;
}

.empty-address p {
    max-width: 250px;

    margin-bottom: 18px;

    color: #999;
}

.address-add-btn {
    padding: 9px 16px;

    border: 1px solid #ddd;
    border-radius: 5px;

    background: #fff;
    color: #222;

    font-size: 13px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.address-add-btn:hover {
    border-color: #111;

    background: #111;
    color: #fff;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

    .address-card-header {
        min-height: 75px;

        padding: 15px 55px 15px 16px;
    }

    .address-icon {
        width: 38px;
        height: 38px;

        font-size: 15px;
    }

    .address-card-title h4 {
        font-size: 15px;
    }

    .address-edit-btn {
        top: 16px;
        right: 14px;

        width: 34px;
        height: 34px;
    }

    .address-card-body {
        min-height: 240px;

        padding: 20px 16px;
    }

}


/* =========================================================
   ADDRESS MODAL
========================================================= */

.address-modal {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
}

.address-modal .modal-header {
    padding: 22px 25px;
    border-bottom: 1px solid #eee;
}

.address-modal .modal-title {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
}

.address-modal .modal-body {
    padding: 25px;
}

.address-modal label {
    display: block;
    margin-bottom: 7px;

    color: #444;

    font-size: 13px;
    font-weight: 500;
}

.address-modal input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #e2e2e2;
    border-radius: 6px;

    outline: none;

    font-size: 14px;

    transition: border-color 0.2s ease;
}

.address-modal input:focus {
    border-color: #999;
}

.address-modal .modal-footer {
    padding: 18px 25px;
    border-top: 1px solid #eee;
}

.address-cancel-btn {
    height: 45px;

    padding: 0 20px;

    border: 1px solid #ddd;
    border-radius: 5px;

    background: #fff;
    color: #555;

    cursor: pointer;
}

.address-cancel-btn:hover {
    background: #f7f7f7;
}


/* =========================================================
   LOADER
========================================================= */

.address-btn-loader {
    align-items: center;
    gap: 8px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .address-card-header {
        padding: 16px;
    }

    .address-card-body {
        min-height: 240px;
        padding: 20px 16px;
    }

    .address-modal .modal-body {
        padding: 18px;
    }

    .address-modal .modal-header {
        padding: 18px;
    }

    .address-modal .modal-footer {
        padding: 15px 18px;
    }

}

/* =========================================================
   ADDRESS MODAL
========================================================= */

.address-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   HEADER
========================================================= */

.address-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px 28px;

    border-bottom: 1px solid #eeeeee;
    background: #fff;
}

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

.address-modal-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: #f5f5f5;

    color: #222;

    font-size: 19px;
}

.modal-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: #999;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.address-modal .modal-title {
    margin: 0;

    color: #1d1d1d;

    font-size: 21px;
    font-weight: 600;
}

.address-modal-heading p {
    margin: 3px 0 0;

    color: #999;

    font-size: 12px;
}

.address-modal-close {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #f5f5f5;

    color: #555;

    cursor: pointer;

    transition: all 0.2s ease;
}

.address-modal-close:hover {
    background: #111;
    color: #fff;
}

.address-modal-close i {
    font-size: 15px;
}


/* =========================================================
   BODY
========================================================= */

.address-modal-body {
    max-height: 65vh;

    overflow-y: auto;

    padding: 26px 28px;
}

.address-modal-body::-webkit-scrollbar {
    width: 5px;
}

.address-modal-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.address-modal-body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #ccc;
}


/* =========================================================
   FORM SECTION
========================================================= */

.address-form-section {
    padding-bottom: 28px;
    margin-bottom: 28px;

    border-bottom: 1px solid #eeeeee;
}

.address-form-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;

    border-bottom: 0;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.address-section-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
}

.section-number {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #f6f6f6;

    color: #777;

    font-size: 11px;
    font-weight: 700;
}

.address-section-heading h6 {
    margin: 0 0 2px;

    color: #222;

    font-size: 15px;
    font-weight: 600;
}

.address-section-heading p {
    margin: 0;

    color: #999;

    font-size: 12px;
}


/* =========================================================
   FORM GROUP
========================================================= */

.address-form-group label {
    display: flex;
    align-items: center;
    gap: 3px;

    margin-bottom: 7px;

    color: #444;

    font-size: 12px;
    font-weight: 600;
}

.address-form-group label span {
    color: #e53935;
}

.address-form-group label small {
    margin-left: 3px;

    color: #aaa;

    font-size: 10px;
    font-weight: 400;
}


/* =========================================================
   INPUT
========================================================= */

.address-input-wrap {
    position: relative;
}

.address-input-wrap > i {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #999;

    font-size: 14px;

    pointer-events: none;

    transition: color 0.2s ease;
}

.address-input-wrap input {
    width: 100%;
    height: 48px;

    padding: 0 15px 0 43px;

    border: 1px solid #e4e4e4;
    border-radius: 7px;

    background: #fff;

    color: #222;

    outline: none;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.address-input-wrap input::placeholder {
    color: #b3b3b3;
}

.address-input-wrap input:hover {
    border-color: #ccc;
}

.address-input-wrap input:focus {
    border-color: #222;

    background: #fff;

    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.address-input-wrap:focus-within > i {
    color: #222;
}


/* =========================================================
   FOOTER
========================================================= */

.address-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 28px;

    border-top: 1px solid #eeeeee;

    background: #fafafa;
}

.address-secure-info {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #999;

    font-size: 11px;
}

.address-secure-info i {
    color: #777;
}


/* =========================================================
   ACTIONS
========================================================= */

.address-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-cancel-btn {
    height: 44px;

    padding: 0 18px;

    border: 1px solid #dedede;
    border-radius: 6px;

    background: #fff;

    color: #555;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;
}

.address-cancel-btn:hover {
    border-color: #222;
    color: #222;
}


/* =========================================================
   SAVE BUTTON
========================================================= */

.address-save-btn {
    min-width: 145px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border: 0;
    border-radius: 6px;

    background: #111;
    color: #fff;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;
}

.address-save-btn:hover {
    background: #2b2b2b;
    color: #fff;
}

.address-save-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.address-btn-text,
.address-btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.address-btn-loader.d-none {
    display: none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .address-modal-header {
        padding: 18px;
    }

    .address-modal-heading {
        gap: 10px;
    }

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

    .address-modal .modal-title {
        font-size: 18px;
    }

    .address-modal-heading p {
        display: none;
    }

    .address-modal-body {
        max-height: 70vh;
        padding: 20px 18px;
    }

    .address-modal-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 15px 18px;
    }

    .address-secure-info {
        justify-content: center;
    }

    .address-modal-actions {
        width: 100%;
    }

    .address-cancel-btn,
    .address-save-btn {
        flex: 1;
    }

}
