#location-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

#location-dialog.active {
    display: flex;
}

.dialog-content {
    background: #fff;
    border-radius: 16px;
    padding: 0.8em;
    min-width: 300px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.dialog-icon {
    font-size: 2.5em;
    color: #4B2991;
    margin-bottom: 0.4em;
}

.dialog-add-address {
    margin-top: 0.8em;
    border: 2px solid #4B2991;
    border-radius: 8px;
    background: none;
    color: #4B2991;
    padding: 0.5em 1.5em;
    cursor: pointer;
    transition: background 0.2s;
}

.dialog-add-address:hover {
    background: #b699f9;
}

.dialog-close {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(75, 41, 145, 0.5);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5em 1em;
    cursor: pointer;
}

.dialog-close:hover {
    background: rgba(75, 41, 145, 0.7);
}

#list-address-user {
  display: none;
  flex-direction: row;
  width: 90%;
  overflow-x: hidden;
  padding-bottom: 0.5em;
  scrollbar-width:auto;
  scrollbar-color: #4B2991 #eee;
}

.address-list-item.add-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #4B2991;
    border-radius: 16px;
    padding: 1em;
    margin-right: 0.1em;
    cursor: pointer;
    position: sticky;
    left: 0;
    background: #ffffffac;
    z-index: 2;
    min-width: 60px;
}  

.address-list-item {
    display: inline-block;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 1em;
    margin-right: 0.1em;
    vertical-align: top;
    min-width: 240px;
}

.edit-address-btn {
    margin-bottom: 0.5em;
    background: #4B2991;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.3em 0.6em;
    cursor: pointer;
}

.address-row-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5em;
}

.delete-address-btn {
    margin-bottom: 0.5em;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.3em 0.6em;
    cursor: pointer;
}