/* Address Card */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

#overlay{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    height:100%;
    background:#00000034;
    z-index:1000;
}


.address-wraper{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.address-card {
    transition: all ease-in-out 0.5s;
    padding: 5%;
    gap:8px;
    display: flex;
    font-family: 'Cairo';
    background: white;
    border-radius: 15px !important;
    text-align: left;
    position: relative;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.address-name {
    font-size: 18px;
    font-family: 'Cairo';
    font-weight: bold;
    text-align: center;
}

.full-name, .address-line, .city, .postcode,.state {
    display: flex;
    gap:5px;
    font-family: 'Cairo';
    justify-content: center;
    align-items: flex-end;
}

.actions{
    display: flex;
    justify-content: space-between;
}

.edit-address, .delete-address {
    background: #212121;
    color: #fff;
    cursor:pointer;
    font-family: 'Cairo';
    padding: 5px 30px;
    border-radius: 15px;
    border: 1px solid #212121;
    transition: all ease 0.3s;
}

.edit-address:hover, .delete-address:hover {
    background: transparent ;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
    color: #212121 ;
}


.address-card .lable{
    font-size:12px;
    font-family: 'Cairo';
    font-weight: bold;
}
.address-card .content{
    font-size:16px;
    font-family: 'Cairo';
}

.add-address-button{
    cursor:pointer;
    background: #212121;
    font-family: 'Cairo';
    color: #fff;
    padding: 10px 20px;
    border-radius: 15px;
    border: 1px solid #212121;
    transition: all ease 0.3s;
}

.add-address-button:hover{
    background: transparent ;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
    color: #212121 ;
}

/* Popup Forms */
#add-address-popup, #edit-address-popup{
    position: fixed;
    border-radius: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    z-index: 1000;
    width: 80vw;
    max-width: 45vw;
}

#delete-address-popup{
    position: fixed;
    border-radius: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    z-index: 1000;
    width: 80vw;
    max-width: 20vw;
}

#delete-address-popup p{
    font-family: 'Cairo', sans-serif;
    font-size:14px;
}
#delete-address-popup #delete-address-name{
    font-family: 'Cairo', sans-serif;
    font-size:20px;
    font-weight: bold;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 15px; /* Space between rows and columns */
}

/* Full-width form groups */
.form-group.full-width {
    grid-column: span 2; /* Span across both columns */
}

/* Half-width form groups */
.form-group.half-width {
    display: flex;
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
}

/* Labels */
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* Input Fields */
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: #212121;
    outline: none;
}

/* Save Button */
.save-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.save-button input[type="submit"] {
    background: #212121 !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border: 1px solid #212121 !important;
    border-radius: 15px !important;
    font-size: 16px !important;
    font-family: 'Cairo', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.save-button input[type="submit"]:hover {
    background: transparent !important;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset !important;
    color: #212121 !important;
}

/* Delete Popup */
.delete-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

#confirm-delete, #cancel-delete {
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    padding: 5px 20px;
    border: 1px solid #ddd;
    border-radius: 15px;
}

#confirm-delete {
    background: #ff4444;
    color: #fff;
}

#cancel-delete {
    background: #ddd;
}

#saved-addresses-grid {
    transition: opacity 0.3s ease;
}


/* Example: style for the new selects */
.saved-address-select {
    color: #333333;
    background:#F5F7F9 !important;
    background-clip: padding-box;
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 26px 15px 8px 15px;
    word-break: normal;
    line-height: inherit;
    font-size: 15px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    background: #fff;
    box-shadow: none;
    line-height: 1;
    border-radius:10px;
    border:1px solid rgb(217, 217, 217);
}
