.address {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 50%;
    flex: 1;
    box-sizing: border-box;
    min-width: 0;
}

.address-header {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.address-header button {
    flex-shrink: 0;
}

.address-header p {
    font-size: 1.3rem;
    font-weight: bold;
    color: #141414;
    margin: 0;
    text-align: start;
}

.address-container {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background-color: white;
    box-sizing: border-box;
    border-radius: 16px;
}

.address-container-details {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.address-container-details > p {
    margin: 0;
    word-wrap: break-word;
    line-height: 1.6;
}

.address-container-details-divider {
    width: 100%;
    height: 1px;
    background: #E5E7EB;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.address-container-details-divider-vertical {
    width: 2px;
    height: 20px;
    background: #E5E7EB;
    margin: 0 0.2rem;
}

.address-btn button {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #525252;
    font-size: 0.95rem;
}

.dialog-edit {
    display: flex;
    width: 100%;
    gap: 1.5rem;
    box-sizing: border-box;
}

.dialog-edit-container {
    width: 100%;
    background-color: #E5E5E5;
    flex: 1;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-edit-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
    align-items: flex-start;
    box-sizing: border-box;
}

.dialog-edit-content > div:first-child {
    margin-bottom: 0.5rem;
}

.dialog-edit-content > div:first-child p {
    margin: 0;
    text-align: start;
}

.dialog-edit-content-image {
    height: 24px;
    width: 24px;
    flex-shrink: 0;
}

.dialog-edit-content-divider {
    width: 100%;
    height: 1px;
    background: #E5E7EB;
    margin: 0.3rem 0;
}

.dialog-edit-content-btn {
    width: 100%;
    margin-top: 2rem;
}

.address-save-as{
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.3rem;
    font-weight: 500;
    color: #141414;
}

.home-btn button {
    padding: 0.7rem 1.2rem;
    background-color: #FBEFFF;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    border: 1px solid #B704F6;
    margin: 0;
    color: #141414;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.home-btn button:hover {
    background-color: #FFE0E0;
}

.other-btn button {
    padding: 0.7rem 1.2rem;
    background-color: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    border: 1px solid #D6D6D6;
    margin: 0;
    color: #525252;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.other-btn button:hover {
    background-color: #F9FAFB;
    border-color: #B0B0B0;
}

.dialog-delete {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
}

.dialog-delete p {
    margin: 0;
    text-align: start;
    font-size: 1rem;
}

.dialog-delete p:first-child {
    font-size: 1.2rem;
}

.dialog-delete-btn-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.dialog-delete-btn-row button {
    flex: 1;
}

.cancel-button button {
    font-family: 'PlusJakartaSans';
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #D6D6D6;
    cursor: pointer;
    background-color: #FFFFFF;
    align-items: center;
    color: #B704F6;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.6rem;
}

.confirm-button button {
    font-family: 'PlusJakartaSans';
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border: 0px;
    border-radius: 8px;
    cursor: pointer;
    background-color: #B704F6;
    align-items: center;
    color: #EEFDFD;
    font-size: 1.1rem;
    line-height: 1.6rem;
    gap: 1rem;
}


/* Desktop Large - 1200px and above */
@media (min-width: 1200px) {
    .address-header p {
        font-size: 1.4rem;
    }
    
    .address-container {
        padding: 2rem;
    }
    
    .dialog-edit-container {
        min-height: 450px;
    }
}

/* Laptop - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .dialog-edit-container {
        min-height: 420px;
    }
}

/* Tablet - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .address {
        max-width: 100%;
    }
    
    .address-header p {
        font-size: 1.2rem;
    }
    
    .address-container {
        padding: 1.2rem;
    }
    
    .dialog-edit {
        flex-direction: column;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .dialog-edit-container {
        min-height: 250px;
        flex: none;
    }
    
    .home-btn button,
    .other-btn button {
        font-size: 14px;
        padding: 0.6rem 1rem;
    }
}

/* Mobile - 767px and below */
@media (max-width: 767px) {
    .address {
        max-width: 100%;
        width: 100%;
    }
    
    .address-header {
        gap: 0.6rem;
    }
    
    .address-header p {
        font-size: 1.1rem;
    }
    
    .address-container {
        padding: 1rem;
    }
    
    .address-container-details {
        gap: 0.6rem;
    }
    
    .address-container-details > p {
        font-size: 0.9rem;
    }
    
    .address-btn button {
        font-size: 0.9rem;
    }
    
    .dialog-edit {
        flex-direction: column;
        gap: 1.2rem;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .dialog-edit-container {
        min-height: 200px;
        flex: none;
    }
    
    .dialog-edit-content {
        gap: 0.7rem;
    }
    
    .dialog-edit-content-btn {
        margin-top: 1.5rem;
    }
    
    .home-btn button,
    .other-btn button {
        font-size: 13px;
        padding: 0.6rem 1rem;
    }
    
    .dialog-delete p:first-child {
        font-size: 1.1rem;
    }
    
    .dialog-delete p {
        font-size: 0.9rem;
    }
    
    .dialog-delete-btn-row {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Mobile Small - 479px and below */
@media (max-width: 479px) {
    .address-header p {
        font-size: 1rem;
    }
    
    .address-container {
        padding: 0.8rem;
    }
    
    .address-container-details > p {
        font-size: 0.85rem;
    }
    
    .address-btn button {
        font-size: 0.85rem;
    }
    
    .dialog-edit {
        gap: 1rem;
    }
    
    .dialog-edit-container {
        min-height: 180px;
    }
    
    .dialog-edit-content-image {
        height: 20px;
        width: 20px;
    }
    
    .dialog-edit-content-btn {
        margin-top: 1.2rem;
    }
    
    .home-btn button,
    .other-btn button {
        font-size: 12px;
        padding: 0.5rem 0.9rem;
    }
    
    .dialog-delete p:first-child {
        font-size: 1rem;
    }
    
    .dialog-delete p {
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile - 360px and below */
@media (max-width: 360px) {
    .address-header p {
        font-size: 0.95rem;
    }
    
    .address-container-details > p {
        font-size: 0.8rem;
    }
    
    .dialog-edit-container {
        min-height: 160px;
    }
    
    .home-btn button,
    .other-btn button {
        font-size: 11px;
        padding: 0.5rem 0.8rem;
    }
    
    .dialog-delete p:first-child {
        font-size: 0.95rem;
    }
    
    .dialog-delete p {
        font-size: 0.8rem;
    }
}
