
/* --- Sidebar Wrapper & Animation --- */
#addressSidebar {
    pointer-events: none;
}
#addressSidebar.active {
    pointer-events: auto;
}
.address-sidebar-container {
    position: fixed;
    z-index: 30; /* Higher than the first sidebar */
    background: #fff;
    width: 100%;
    max-width: 420px;
    right: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
#addressSidebar.active .address-sidebar-container {
    transform: translateX(0);
}

.as-overlay {
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#addressSidebar.active .as-overlay {
    opacity: 0.6;
    visibility: visible;
}
.stop-scroll {
    overflow: hidden;
}
.container_addresses {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    overflow-y: auto;
    max-height: 380px;
}
.checkout-cart-index .data.table tr.totals.sub {
    display: none;
    visibility: hidden;
    margin: 0;
    height: 0;
}
.field.field-latitude, .field.field-longitude,.field.country.required {
    display: none;
    visibility: hidden;
}
.ma-bottom-container {
    display: flex;
    position: absolute;
    bottom: 2%;
    left: 50%; 
    transform: translateX(-50%); 
    width:max-content;max-width:90%; 
    padding: 2px 14px;
    background: #fff;
    align-items: center;
    border-radius: 10px;
}

/* --- Header --- */
.as-header {
    padding: 24px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.as-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px 0;
}
.as-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}
.as-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

/* --- Address List & Cards --- */
.as-address-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.as-address-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.as-address-card.selected {
    border-color: #333; 
}

/* --- Custom Radio Buttons --- */
.as-radio-container {
    position: relative;
    padding-top: 2px;
}
.as-radio-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.as-radio-custom {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid #CCC;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}
.as-radio-input:checked ~ .as-radio-custom {
    border-color: #E91E63;
}
.as-radio-input:checked ~ .as-radio-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #E91E63;
    border-radius: 50%;
}

/* --- Card Details & Badges --- */
.as-address-details {
    flex-grow: 1;
}
.as-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.as-address-label {
    font-weight: 600;
    font-size: 14px;
    color: #111;
}
.as-badge {
    display: none; /* Hidden by default */
    background: #E91E63;
    color: #FFF;
    font-size: 10px;
    font-weight: 400;
    padding: 5px 8px;
    border-radius: 4px;
}
.as-address-card.selected .as-badge {
    display: inline-block; /* Shows badge when parent is selected */
}
.as-address-body {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* --- Footer Buttons --- */
.as-footer {
    padding: 20px;
    background: #FFF;
    border-top: 1px solid #EAEAEA;
    display: flex;
    gap: 12px;
}
.as-btn {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.as-btn-outline {
    background: #FFF;
    border: 1px solid #CCC;
    color: #111;
}
.as-btn-outline:hover {
    background: #F9F9F9;
    border-color: #999;
}
.as-btn-solid {
    background: #1A1A1A;
    border: 1px solid #1A1A1A;
    color: #FFF;
}
.as-btn-solid:hover {
    background: #333;
    color:#fff;
}



#modal-overlaygooglemap{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.5);z-index:1000;display:flex;justify-content:center;align-items:center}
#modal-contentgooglemap{background:#fff;width:90%;padding:10px 0px 0px;max-width:1000px;margin:0 auto;box-shadow:0 2px 10px rgba(0,0,0,0.1);position:relative;border-radius:5px;}
.ah-confirm-location-google {
      /* margin: 0 auto !important; */
    height: 42px;
    background: #000;
    border-radius: 10px;
    /* width: fit-content; */
    /* margin: 1% 0; */
    text-transform: uppercase;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    border: none;
    padding: 2px 10px;
    
}
   #modal-contentgooglemap .header-container.page-header {
       padding:0px 15px 0px;
   }
.ah-address-msg strong{font-weight:500;color:#000}
.header-container.page-header button{border-radius:50px;padding:2px 8px;background:#CACACA;    position: absolute;
    right: 10px; border:none; top:10px;}
.header-container{display:flex;justify-content:space-between;align-items:center}
.ah-address-msg{color:#333;font-size:14px;padding:10px 0; display: flex;
    column-gap: 6px;}
.header-container h2{margin:0 0 10px 0;font-size:20px;font-weight:600;color:#1E1E1E}
#addressmap {
    width:96%;font-size:16px;outline:none;text-overflow:ellipsis;z-index:12;background-color:#fff;padding:20px;margin-bottom:10px;border:1px solid #CACACA;border-radius:5px; position: absolute;
    top: 10%;
    left: 13px;
    max-width: 400px;}
button#locate-me-button svg{margin-right:6px}
.ahmap-body #ahmap{height:550px!important;width:100%;overflow:hidden;margin-bottom: 4px;}
button#locate-me-button{display: flex;position:absolute;float:right;margin:0;align-content:flex-end;padding:7px 15px;bottom:70px;z-index:1;background:#fff;right:15px;border:1px solid #E6E6E6;color:#333;border-radius:5px;font-weight:600}

.ahmap-body img {
    position: absolute;
    margin: 0;
    top: 61%;
    left: 50%;
    transform: translate(-50%, -50%);
}
button#confirm-location-google[disabled] {
    opacity: 0.8;background: grey;
}
.ah-gs-lg-btn{display:none;}
button.ah-confirm-location-google.ah-confirm-location {
    width: 49%;margin-top:10px;
    margin-left: 10px !important;
}
button#removeButton {
    float: left;
    width: 48%;
    padding: 10px;
    height: 42px;border:  1px solid #000;;
}
.ah-map-label-service{display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 19%;
    background: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    color:#e94242;
}
.gm-style-iw-chr {
    position: absolute;
    right: 0;
}
.gm-style-iw.gm-style-iw-c {
    border-radius: 3px;
    /* background-color: rgba(253, 236, 236, 0.97); */
    /* border: 1px solid rgb(251, 211, 216); */
    color: rgb(203, 117, 128);
    box-shadow: rgba(0, 0, 0, 0.03) 0px 2px 3px 0px;
    padding-left:0px;

}
.ah-confirm-location-google:hover,.ah-confirm-location-google:focus {
    background: #000;color: #fff;
}
.ah-msg {
     margin: 15px 20px 3px 15px;
    font-weight: 600;
    font-size: 14px;
}

.content.minicart-items.ah-address-list .field.addresses .shipping-address-item.not-selected-item {
    display: block !important;
    border: 1px solid #cacaca !important;
    border-radius: 10px;    padding: 6px !important;
}
.content.minicart-items.ah-address-list button.action.action-show-popup {
    display: block !important;
}

.firecheckout #checkout .opc-wrapper .shipping-address-item:not(.selected-item):before {
    display: none;
    content: "";
    width: auto;
    display: inline;
    float: left;
    padding: 15px 8px;
    background-color: transparent;
}
.firecheckout #checkout .opc-wrapper .fc-compact-address-button.fc-active ~ .addresses .shipping-address-item.selected-item {
    display: block;
    padding-bottom: 0 !important;
    padding: 6px;
}
.firecheckout-col1-set.firecheckout #checkout .opc-wrapper .fc-compact-address-button.fc-active ~ .addresses .control .shipping-address-items {
    max-height: none;
    padding-right: 0;
}

.content.minicart-items.ah-address-list span.fc-ah-delivery{display: none;}
.content.minicart-items.ah-address-list button.action.action-show-popup {
    display: block !important;
    border: 0;
    margin: 0;
}
ul.location-info.ahmap_selected li {
    margin: 0; padding: 0 5px;
}
/*ul#location-info:before {*/
/*    content: url(https://www.ansargallery.com/qatar/map_loc_icon.svg);*/
/*}*/
ul.location-info.ahmap_selected {
    display: flex;
    margin: 0;
}
ul.location-info.ahmap_selected .location-value {
    font-weight: 600;
}

.block.items-in-cart .field-tooltip .field-tooltip-action:before {
    display: none;
    visibility: hidden;
}

.fc-form-tooltips.firecheckout #checkout .field.items-in-cart .field-tooltip {
    top: 0 !important;
    right: 0 !important;
}
.horizontal-dates li, .horizontal-dates li label,.horizontal-times li, .horizontal-times li label{
    cursor: pointer;
}
.address .field.choice.fc-dirty {
    display: none !important;
    visibility: hidden !important;
    height: 0;
    width: 0;
    padding: 0;
}
/*.minicart-items-wrapper.overflowed .horizontal-times{display:none;}*/
 .address_btn {
    width:100%;
    padding: 10px 15px;
    border: none;
    color:#fff;
    font-size: 16px;
    text-transform: capitalize;
    border-radius: 5px;
}

.address_btn.add_new, .address_btn.add_new:hover {
    background-color:#B7D635;
      color:#000;
}
.address_btn.add_new:before{
    content: url('/media/wysiwyg/plus_icon_new.svg')
}
.address_btn.cancel_add, .address_btn.cancel_add:hover {
    background-color:transparent;
    border:1px solid #cacaca;
    color: #000;
}
.address_btn.confirm_add, .address_btn.confirm_add:hover {
    background-color:#000;
      color:#fff;
}
.saved_address_block label {
    font-size:16px;
    font-weight:600;
    line-height:17px;
}
.saved_address_block {
    background-color:#F8F8F8;
    border:1px solid #EBEBEB;
    padding:10px;
    color:#9D9D9D;
    border-radius:6px;
    text-transform: capitalize;
}
.saved_address_block.selected {
    background-color:#fff;
    color:#000;
}
.address_ratio {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #9D9D9D;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}
.selected .address_ratio{
     border: 2px solid #09802D;
}
.address_ratio:checked::before {
    content: "";
    display: block;
    width: 11.5px;
    height: 11.5px;
    background-color: #09802D;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#saved_address_selector .actions_trigger {
    justify-content: center;
}
div#saved_address_selector {
    padding:10px 15px;
}
#modal-contentgooglemap #saved_address_selector .header-container.page-header {
    
}

@media screen and (max-width: 768px) {
     #sidepannel.active .delivery-sidebar-container, #addressSidebar.active .address-sidebar-container, #confirmSidebar.active .confirm-sidebar-container {
        transform: translateY(0) !important;
    }
#addressmap {
    width: 80%;
    font-size: 16px;
    top: 8%;
    left: 12px;
    max-width: 400px;
}
     .address_btn {
        font-size:14px;
        padding: 6px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        width:100%;
    }
    .firecheckout .items-in-cart.block {
        margin:0 8px;
    }
    .header-container h2 {font-size: 16px;}
    #modal-contentgooglemap {
        padding:8px !important;
        overflow:clip;
    }
    /*#modal-contentgooglemap, #saved_address_selector {*/
    /*    width: 100%;*/
    /*    padding: 10px;*/
    /*    max-width: 900px;*/
    /*    border-radius: 5px;*/
    /*    top: 0;*/
    /*    box-sizing: border-box;*/
    /*    margin: 0px 8px;*/
    /*}*/
    #modal-overlaygooglemap,.pac-container{z-index:9999999;}
    /*#modal-overlaygooglemap{*/
    /*    z-index: 9999999;*/
    /*}*/
    div#modal-contentgooglemap .header-container.page-header {
        display: flex !important;
    }
}
