/* Map checkout template */

/* Display of selected pickup point in checkout */
.instabox-service-selected-location {
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    flex-direction: row;
    flex-shrink: 0;
    justify-content: space-between;
    border: 1px solid #dddddd;
    border-radius: 5px;
    padding: 5px;
}
.instabox-service-selected-location-title {
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    flex-direction: row;
}
.instabox-service-selected-location-change {
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    flex-shrink: 0;
    padding-left: 10px;
    text-decoration: underline;
    color: rgb(109, 109, 109);
}
.instabox-service-selected-location-change:hover {
    cursor: pointer;
    color: rgb(109, 109, 109);
    text-decoration: underline !important
}

/* Modal */
.instabox-service-select-dialog-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    padding-top: 50px;
    padding-bottom: 20px;
    transition: opacity 0.15s ease 0s;
    background: rgba(52, 52, 52, 0.5);
}

.instabox-service-select-dialog-container {
    display: block;
    overflow: hidden;
    width: 820px;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 50%;

    /* Use this for centering if unknown width/height */
    transform: translate(-50%, -50%);

    background: white;
    box-shadow: 0px 3px 15px 6px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.instabox-service input[type="radio"] {
    vertical-align: top;
    margin-top: 6px;
}
.admin-bar .instabox-service-select-dialog-container {
    margin-top: 48px;
    margin-bottom: 25px;
}

.instabox-header-area {
    position: relative;
}
.instabox-service-select-dialog-content {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 30% auto 10px;
    gap: 0px 0px;
    height: 100%;
}
@media (min-width: 769px) { 
    .instabox-service-select-dialog-content {
        grid-template-columns: 320px 500px;
        grid-template-rows: 100px auto 90px;
    }
    .instabox-service-select-dialog-container {
        max-height: calc(100vh - 80px);
    }
    .admin-bar .instabox-service-select-dialog-container {
        margin-top: 25px;
    }
}
.instabox-map-area {
    grid-row: 1 / span 3;
}
.instabox-services-area {
    overflow-y: scroll;
}
.instabox-service-select-dialog-close {
    position: absolute;
    top: 5px;
    right: 18px; 
    color: lightgray; 
    font-size: 30px;  
    font-weight: bold;
    cursor: pointer
}
.instabox-service-select-dialog-close:hover {
    color: darkgray;
}

/* Body when modal is open */
body.instabox-modal-open {
    height: 100vh;
    overflow-y: hidden;
    padding-right: 15px;
}

/* Modal grid view */
.instabox-header-area h3 {
    margin: 10px 30px 10px 15px;
}
.instabox-service-select-dialog-services {
    margin: 10px 10px 10px 15px;
}
.form-row .instabox-services label {
    display: inline-block;
    max-width: 90%;
}
.form-row .instabox-services input[type=radio] {
    width: auto;
}

ul.instabox-services {
    list-style: none;
    margin: 0;
}
ul#shipping_method li.instabox-service {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.service-description {
    color: black;
    font-size: 1em;
    font-weight: bold;
}
.service-address,
.service-directions,
.service-opening-hours {
    color: black;
    font-size: 0.9em;
    font-weight: 400;
}
.service-opening-hours {
    color: #787573;
    font-style: italic;
}

/* confirm button */
.instabox-confirm-area {
    margin: 20px;
}
.instabox-confirm-service {
    box-sizing: border-box;
    display: inline-block;
    width: 100%;
    background-color: rgb(38, 37, 37);
    height: 50px;
    justify-content: center;
    padding: 19px 24px;
    position: relative;
    color: #ffffff;
    font-weight: 300;
    line-height: 1;
    text-align: center;
}
.instabox-confirm-service:hover {
    color: #ffffff;
    background-color: rgb(38, 37, 37);
    cursor: pointer;
}
