.woocommerce-MyAccount-content .woocommerce-Addresses .mafwc-for-myaccount .edit-links .mafwc-use-this{
    display: none!important;
}

.woocommerce-MyAccount-content .woocommerce-Addresses .mafwc-for-myaccount .edit-links{
   display: flex;
    gap: 10px;
    justify-content: flex-end; /* Aligns the <a> tags to the right */
    align-items: center; /* Vertically centers the items if needed */
}

/* Enhanced styles for manage panel */
.mafwc-manage-panel {
    position: relative;
    background-color: #f9f9f9;
    padding: 15px;
    border-top: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    margin-top: 10px;
    margin-bottom:15px;
}

/* Close button positioning */
.mafwc-manage-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    font-weight: bold;
    margin-bottom: 15px; /* Added margin bottom to create visual space below the icon */
}

.mafwc-manage-close:hover {
    color: #333;
}

/* Align buttons in actions */

.mafwc-manage-actions {
    display: flex;
    justify-content: space-between; /* Aligns all <a> tags to the right */
    gap: 10px; /* Adds space/gap between the links */
    margin-top: 30px;
    flex-wrap: wrap;
}

a.mafwc-address-link:where(:not(.wp-element-button)) {
    text-decoration: underline !important;
}

/* Ensure links don't stretch unnecessarily */
.mafwc-manage-actions a.button {
    flex: none;
    min-width: auto;
}


.mafwc-address-item{
    margin-bottom: 1em;
    margin-top: 1em;
}

.mafwc-address-item .edit-links{
    margin-bottom: 1em;
}

.mafwc-address-link{float:right;}

/* Responsive for smaller screens */
@media screen and (max-width: 768px) {
    .mafwc-manage-actions {
        justify-content: center;
    }
    
    .mafwc-manage-actions .button {
        min-width: auto;
        flex: none;
    }
}
