.wma-add-new-address-form-container, .wma-edit-saved-address-form-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wma-manage-addresses-title {
    font-size: 16px;
    color: #212121;
    font-weight: bold;
    margin-bottom: 10px;
}

.wma-new-address-form-title, .wma-edit-saved-form-title, .wma-new-address-popup-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.wma-new-address-form-fields-options, .wma-edit-saved-address-fields-options, .wma-new-address-popup-fields-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wma-address-1-container {
    width: 100%;
}

.wma-address-1-container,
.wma-address-2-container,
.wma-country-container,
.wma-state-container {
    width: 100%;
}

.wma-address-1-container textarea {
    min-height: 100px;
}

#wma-add-new-address-form input,
#wma-add-new-address-form textarea,
#wma-add-new-address-form select,
#wma-add-new-address-popup-form input,
#wma-add-new-address-popup-form textarea,
#wma-add-new-address-popup-form select,
#wma-edit-saved-address-form input,
#wma-edit-saved-address-form textarea,
#wma-edit-saved-address-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccd6eb;
    border-radius: 4px;
    font-size: 13px;
    background-color: #fff;
    box-sizing: border-box;
}

#wma-add-new-address-form input:focus,
#wma-add-new-address-form select:focus,
#wma-add-new-address-popup-form input:focus,
#wma-add-new-address-popup-form textarea:focus,
#wma-add-new-address-popup-form select:focus,
#wma-edit-saved-address-form input:focus,
#wma-edit-saved-address-form textarea:focus,
#wma-edit-saved-address-form select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 3px rgba(74, 144, 226, 0.5);
}

.wma-new-address-type-container,
.wma-edit-address-type-container,
.wma-popup-new-address-type-container {
    margin: 15px 0;
}

.wma-new-address-type-text,
.wma-edit-address-type-text,
.wma-new-address-type-custom-text,
.wma-edit-address-type-custom-text,
.wma-popup-new-address-type-text {
    font-weight: bold;
    margin-bottom: 10px;
}

.wma-new-address-type-container label,
.wma-edit-address-type-container label,
.wma-popup-new-address-type-container label {
    margin: 0;
}

.wma-new-address-type-options, .wma-edit-address-type-options, .wma-popup-new-address-type-options {
    display: flex;
    gap: 20px;
    align-items: center;
}

.wma-new-address-type-custom-field-container,
.wma-edit-address-type-custom-field-container,
.wma-popup-new-address-type-custom-field-container {
    margin-top: 15px;
}

.wma-new-address-type-home-options,
.wma-new-address-type-work-options,
.wma-new-address-type-custom-options,
.wma-edit-address-type-home-options,
.wma-edit-address-type-work-options,
.wma-edit-address-type-custom-options,
.wma-popup-new-address-type-home-options,
.wma-popup-new-address-type-work-options,
.wma-popup-new-address-type-custom-options {
    display: flex;
    align-items: center;
}

.wma-new-address-buttons-container,
.wma-edit-address-buttons-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.wma-new-address-buttons-container .button,
.wma-edit-address-buttons-container .button {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wma-new-address-buttons-container .button:hover,
.wma-edit-address-buttons-container .button:hover {
    background-color: #3b7bc4;
}

.wma-new-address-buttons-container .wma-cancel-new-address-button,
.wma-edit-address-buttons-container .wma-update-saved-address-cancel-button {
    background-color: #f44336;
}

.wma-new-address-buttons-container .wma-cancel-new-address-button:hover,
.wma-edit-address-buttons-container .wma-update-saved-address-cancel-button:hover {
    background-color: #d32f2f;
}

.wma-saved-addresses-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wma-saved-address-card {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wma-saved-address-content {
    color: #212121;
}

.wma-saved-address-type {
    background: #f5f5f5;
    padding: 3px 8px;
    font-size: 11px;
    color: #878787;
    font-weight: bold;
    border-radius: 4px;
    width: fit-content;
}

.wma-saved-address-type-action-buttons {
    display: flex;
    justify-content: space-between;
}

.wma-saved-address-actions-buttons {
    display: flex;
    gap: 5px;
}

.wma-saved-address-actions-buttons .button {
    min-height: unset;
    background-color: #fff;
    padding: 0;
}

.wma-saved-address-actions-buttons .wma-edit-saved-address-button {
    border: 1px solid #3b7bc4;
    color: #3b7bc4;
    padding: 4px;
    border-radius: 4px;
}

.wma-saved-address-actions-buttons .wma-delete-saved-address-button {
    border: 1px solid #f44336;
    color: #f44336;
    padding: 4px;
    border-radius: 4px;
}

.wma-saved-address-user-name-phone {
    display: flex;
    gap: 5px;
    margin-bottom: 6px;
    font-weight: bold;
}

.wma-saved-address-postcode {
    font-weight: bold;
}

.wma-default-saved-address-button {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.wma-saved-address-actions-buttons .wma-default-saved-address-button:hover {
    background-color: #fff;
}

.wma-default-saved-address-button .wma-star {
    width: 21px;
    height: 21px;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.wma-default-saved-address-button .wma-star-filled {
    fill: #FFD700;
}

.wma-default-saved-address-button .wma-star-empty {
    fill: none;
    stroke: #CCCCCC;
}

.wma-saved-address-1, .wma-saved-address-2, .wma-saved-address-city-state-country-postcode {
    font-size: 13px;
}

.wma-add-new-address-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.wma-add-new-address-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wma-default-delivery-address-container {
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wma-default-delivery-address-change-button-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wma-delivery-address-change-button-container .button {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-transform: capitalize;
    min-height: 35px;
    padding: 10px;
}

.wma-deliver-to-name-postcode-address-type {
    display: flex;
    margin-bottom: 4px;
    text-align: center;
    gap: 5px;
}

.wma-selection-address-name-postcode-address-type {
    display: flex;
    margin-bottom: 4px;
    text-align: center;
    gap: 5px;
    font-weight: bold;
    color: #212121;
}

.wma-delivery-address-type,
.wma-selection-address-type {
    background: #f5f5f5;
    padding: 3px 8px;
    font-size: 10px;
    color: #878787;
    font-weight: bold;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
}

.wma-delivery-address-name, .wma-delivery-address-postcode {
    font-weight: bold;
    color: #212121;
}

.wma-address-selection-item {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    padding: 15px 0;
    gap: 8px;
    cursor: pointer;
}

.wma-address-selection-popup-title-add-new-address-pc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wma-address-selection-popup-title-add-new-address-pc .button {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    min-height: 35px;
    padding: 8px;
    text-transform: capitalize;
}

.wma-add-new-address-icon {
    display: flex;
}

.wma-address-selection-popup-title {
    font-size: 18px;
    font-weight: bold;
    color: #212121;
}

.wma-use-selected-address-button-container .button {
    background-color: #4a90e2;
    color: #fff;
    border-radius: 4px;
    width: 100%;
}

.wma-deliver-to-text-edit-button .button {
    background-color: #fff;
    padding: 0;
    min-height: unset;
    text-transform: capitalize;
}

.wma-deliver-to-text-edit-button .button:hover {
    background-color: #fff;
}

#wma-address-selection-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
    min-height: unset;
    background: none;
    border: none;
    cursor: pointer;
}

#wma-address-selection-close-button svg {
    width: 24px;
    height: 24px;
}

.wma-popup-new-address-buttons-container {
    display: flex;
    gap: 10px;
}

.wma-popup-new-address-buttons-container .button {
    width: 50%;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wma-popup-new-address-buttons-container .wma-popup-cancel-new-address-button {
    background-color: #f44336;
}

.wma-popup-new-address-buttons-container .wma-popup-cancel-new-address-button:hover {
    background-color: #d32f2f;
}

.wma-address-selection-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
    
.wma-address-selection-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 95%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wma-new-address-form-fields-options > div:not(.wma-address-1-container),
    .wma-edit-saved-address-fields-options > div:not(.wma-address-1-container),
    .wma-new-address-popup-fields-options > div:not(.wma-address-1-container) {
        width: calc(50% - 10px);
    }

@media (min-width: 769px) {

    #wma-address-selection-close-button {
        top: -5px;
        right: -30px;
    }
    
    #wma-address-selection-close-button svg {
        color: #fff;
    }

    .wma-use-selected-address-button-container .wma-address-selection-popup-add-new-address-button {
        display: none;
    }
}

@media (max-width: 768px) {
    
    .wma-default-delivery-address-content {
        flex-direction: column;
    }
    
    .wma-address-selection-popup-title {
        font-size: 14px;
    }
    
    .wma-address-selection-popup-title-add-new-address-pc .button {
        display: none;
    }
    
    .wma-use-selected-address-button-container {
        display: flex;
        gap: 10px;
    }
    
    .wma-address-selection-popup-add-new-address-button {
        flex: 1;
    }
    
    .wma-use-selected-address-button-container .wma-address-selection-popup-add-new-address-button {
        background-color: #fff;
        color: #333;
        border: 1px solid #e0e0e0;
    }
    
    .wma-address-selection-popup {
        align-items: flex-end; 
        justify-content: center;
    }
    
    .wma-address-selection-popup-content {
        width: 100%;
        max-width: none;
        border-radius: 15px 15px 0 0;
        position: relative;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .wma-address-selection-popup-content.active {
        transform: translateY(0);
    }
    
    .wma-add-new-address-popup {
        align-items: flex-end; 
        justify-content: center;
    }

    .wma-add-new-address-popup-content {
        width: 100%;
        max-width: none;
        height: 80%;
        max-height: 100%;
        padding: 15px;
        border-radius: 15px 15px 0 0;
        position: relative;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out, height 0.3s ease-in-out;
        overflow-y: auto;
    }

    .wma-add-new-address-popup-content.active {
        transform: translateY(0);
    }
    
    .wma-add-new-address-form-container, .wma-edit-saved-address-form-container {
        padding: 15px;
    }
}