.summary-container {
    margin-top:var(--ms-navbar-height);
    padding: 1.5rem 1rem;
    padding-bottom: 3rem;

    /* calc 100vh - #data-request padding top - #data-request padding-bottom - navbar height - footer height - height of loader icon */
    min-height: calc(100vh - 1.5rem - 3rem - var(--ms-navbar-height) - 92px + 1.5rem); 
    display:flex;
    flex-direction: column;
}

.summary-container.has-search .order-item:not(.search-true){
    display:none;
}

.summary-container .order-title-container{
    display:flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.summary-container .order-actions{
    display:flex;
    justify-content: space-between;
    align-items: center;

}

.summary-container .clear-order-container{
    width:100%;
}

.summary-container .search-container{
    margin:0;
}

.summary-container .module-container{
    position:relative;
    margin-top:3rem;
    background-color: white;
    border-radius:calc(0.5rem + 4px);
    border-width: 1px;
    color: black;
    box-shadow: 
        0 0 #0000, 0 0 #0000,
        0 0 #0000, 0 0 #0000, 
        0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
    display:flex;
    flex-direction: column;
    justify-content: center;
}

.summary-container .module-container.empty-order-container{
    padding: 1.5rem;
}

.empty-order-container{
    display:flex;
    align-items: center;
}

.empty-order-container .empty-order-logo{
    font-size: 10rem;
    margin-right: 3rem;
}

.empty-order-container .empty-order-logo svg{
    color: var(--ms-blue-color);
}

.empty-order-container .empty-order-text{
    display:flex;
    flex-direction: column;
    align-items: center;

}

.empty-order-container .actions{
    margin-top: 0.5rem;
}
.empty-order-container .actions a{
    color: black;
    text-decoration: none;
}


.module-container.order-item{
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0;
}

.module-container.order-item .cart-badge{
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgb(var(--ms-blue-color));
    padding: 0.3rem 0.7rem;
    z-index: 10;
    border-radius: 5px;
    color: white;
}

.module-container.order-item .module-header{
    display:flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e2e2e2;
    color: #565959;
    padding: 1rem 1.5rem;
    border-top-left-radius: calc(0.5rem + 4px);
    border-top-right-radius: calc(0.5rem + 4px);
}

.module-container.order-item .module-header .header-item{
    display:flex;
    flex-direction: column;
}

.module-container.order-item .module-header .title{
    text-transform: uppercase;
    font-size: 12px;
    line-height: 16px;
}

.module-container.order-item .module-header .item{
    font-size: 14px;
    line-height: 20px;
}

.module-container.order-item .map-item {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    min-width:200px;
    min-height: 200px;
    max-height: 200px;
}

.module-container.order-item .actions{
    display:flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.email-download-message{
    font-size: 0.875rem;
}

.download-error-msg{
    width: 100%;
    font-size: 0.875em;
    color: #dc3545;
}

.order-container .item{
    display:flex;
    flex-direction: column;
}

.order-container .item .map-item{
    margin: 1.5rem;
}

.order-container .item .order-content{
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    width: 100%;
}


.order-container .item .private-datasets{
    margin-top: 1.5rem;
}

/* zipcodes */
.order-container .point-list-container,
.order-container .zipcode-list-container{
    margin: 1.5rem;
    margin-right: 0;
    max-width:50%;
    width:50%;
    min-width: 50%;

}

.zipcode-list-container .header-text{
    font-size: 14px;
    line-height: 20px;
    color: #565959;
}

.zipcode-list .zipcode-country{
    font-size: 1.5rem;
    font-weight: bold;
}

.zipcode-list .zipcodes{
    display:flex; 
    flex-wrap:wrap;
}

.zipcode-list .zipcodes .zipcode-expand-container{
    width: 100%;
    display:flex;
    flex-wrap: wrap;
}

.zipcode-list .zipcode-item{
    margin-right: 0.5rem;
}

summary.zipcode-expand-btn{
    font-size: 0.9rem;
    color: #565959;

}
summary.zipcode-expand-btn::-webkit-details-marker{
    display: none;
}

/* state: dataset-aware zipcode_data */
.order-container .zipcode-area-row{
    display:flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.order-container .zipcode-area-row:last-child{
    margin-bottom: 0;
}

.order-container .zipcode-area-label{
    min-width: 70px;
    font-size: 12px;
    line-height: 18px;
    color: #6b7280;
}

.order-container .zipcode-dataset-group{
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.order-container .zipcode-dataset-group:first-child{
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.order-container .zipcode-dataset-name{
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* Points */
.order-container .point-list-container{
    margin: 1.5rem;

}

.point-list-container .header-text{
    font-size: 14px;
    line-height: 20px;
    color: #565959;
}

.point-list .point-country{
    font-size: 1.5rem;
    font-weight: bold;
}

.point-table-wrapper{
    width: max-content;
    overflow-x: auto;
    margin-top: 1rem;
}

.point-table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: rgb(107 114 128 / 1);
    font-size: .875rem;
    line-height: 1.25rem;
    background-color: white;
    border: 0.5px solid #e5e7eb;
    border-radius: 5px;
}

.point-table thead th{
    background-color: rgb(249 250 251 /1);
    color: rgb(55 65 81 / 1);
    text-transform: uppercase;
    font-size: .75rem;
    line-height: 1rem;
    padding: .5rem;
    text-align: center;
}

.point-table tbody tr{
    background-color: rgb(255 255 255 / 1);
    border-bottom-width: 1px;
    border-color: #e5e7eb;
}

.point-table tbody tr:last-child{
    border-bottom: 0;
}

.point-table .point-cell{
    padding: .5rem;
    text-align: center;
}

.point-expand-btn{
    font-size: 0.9rem;
    color: #565959;
    cursor: pointer;
    margin-top: 0.5rem;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
}

.point-expand-btn:hover{
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.point-row--hidden{
    display: none;
}

.point-expand-indicator{
    margin-top: 0.5rem;
    text-align: center;
}

.point-expand-text{
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

/* Table CSS */
.order-datasets{
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-datasets .request-table{
    color: rgb(107 114 128 / 1);
    font-size: .875rem;
    line-height: 1.25rem;
    text-align: left;
    width: 100%;
    margin-bottom: 10px;
    table-layout: fixed;
}

.order-datasets .request-table .request-head{
    color: rgb(55 65 81 / 1);
    text-transform: uppercase;
    font-size: .75rem;
    line-height: 1rem;
}

.order-datasets .request-table .request-head th{
    background-color: rgb(249 250 251 /1);

}

.order-datasets .request-table tr{
    background-color: rgb(255 255 255 / 1);
    border-bottom-width: 1px;
    border-color: #e5e7eb;
}

.order-datasets .request-table tr:last-child {
    border-bottom: 0;
}

.order-datasets .request-table th{
    padding-bottom: .75rem;
    padding-top: .75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.order-datasets .request-table td{
    padding-bottom: 1rem;
    padding-top: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 5px; 
}

.order-datasets .order-download:hover .icon{
    transition: all 0.1s ease-in-out;
    color: RGB(80, 80, 80)
}


/* guest and private download option modal */
#public_order_modal .download-option-container,
#private_order_modal .download-option-container{
    display: flex;
    flex-direction: column;
}


#private_order_modal .order-modal-button,
#public_order_modal .order-modal-button{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem;
    padding: 1rem;
    border-radius: calc(0.5rem + 4px);
    border: 0.5px solid gray;
    cursor: pointer;
    position: relative;
    height: fit-content;
}

#private_order_modal .public-download-option-button:hover,
#private_order_modal .private-download-option-button:hover,
#public_order_modal .download-option-email-button:hover,
#public_order_modal .download-option-direct-button:hover{
    background-color: hsl(240 4.8% 95.9%);
}

#private_order_modal .public-download-option-button:disabled:hover,
#private_order_modal .private-download-option-button:disabled:hover{
    background-color: inherit;
}

#private_order_modal .public-download-option-button:disabled,
#private_order_modal .private-download-option-button:disabled{
    cursor: auto;
}
#public_order_modal .download-option-email-button:disabled,
#public_order_modal .download-option-direct-button:disabled{
    cursor: wait;
}
/* END guest download option modal */

/* ACCORDION STUFF */
.order-datasets .header {
    display:flex;
    align-items: center;
    padding: 10px; 
    cursor: pointer;
    width: 100%;
}

.order-datasets .title {
    flex:1;
}


.order-datasets .icon {
    display:flex;
    justify-content: center;
    align-items:center;
    width:20px;
    transition: rotate 0.1s ease-in-out;
    color: rgb(128, 128, 128);
    cursor: pointer;
} 


.order-datasets .content {
    padding:10px;
} 

.order-datasets .content-transition {
    animation: accordion-up
} 

.order-datasets .content{
    overflow: hidden;
    padding:0;
}

.order-datasets .content p{
    margin:10px;
    font-size: 0.9em;
}

.order-datasets .menu {
    border: 0.5px solid gray;
    border-bottom:none;

}
.order-datasets .menu:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.order-datasets .menu:last-child {
    border-bottom: 0.5px solid gray;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.order-content .additional-notes-container{
    font-size: 0.7rem;
    margin-top: 10px;
    margin-left: calc(5px + 1.5rem);
    margin-right: 1.5rem;
}

.order-content .additional-notes-container span{
    color: gray;
    margin-right: 5px;
}

#checkout-btn{
    margin-top: 20px;
}

.public-order-loading-overlay{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(1,1,1,0.1);
    top: 0;
    left: 0;
}

/* State order type: Data column (States/Counties/Zipcodes) inside request table */
.order-datasets .request-table td.state-data-cell{
    vertical-align: top;
    padding: 0.75rem 1rem;
    min-width: 0;
    max-width: 320px;
    width: 28%;
    background-color: rgb(249 250 251 / 1);
}

.order-datasets .request-table td.state-data-cell .state-data-cell-content{
    display:flex;
    flex-direction: column;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: rgb(55 65 81 / 1);
}

.order-datasets .request-table td.state-data-cell .zipcode-country{
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(55 65 81 / 1);
    margin-bottom: 0.5rem;
}

.order-datasets .request-table td.state-data-cell .zipcode-areas{
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.order-datasets .request-table td.state-data-cell .zipcode-area-row{
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0;
}

.order-datasets .request-table td.state-data-cell .zipcode-area-label{
    flex-shrink: 0;
    min-width: 58px;
    font-size: 0.6875rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #6b7280;
    margin-top: 3px;
}

.order-datasets .request-table td.state-data-cell .zipcodes{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
}

.order-datasets .request-table td.state-data-cell .zipcode-item{
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1.25;
}

/* Align "Data" header with state data cell */
.order-datasets .request-table .request-head th:first-child{
    background-color: rgb(249 250 251 / 1);
    width: 28%;
    max-width: 320px;
}




/* Zipcode ellipsis when items are truncated */
.zipcode-ellipsis {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

/* Modal Styling - consistent with order-datasets */
#zipcode_details_modal .modal-content {
    border: 1px solid #e5e7eb;
    border-radius: calc(0.5rem + 4px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

#zipcode_details_modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#zipcode_details_modal .modal-body {
    padding: 1.5rem;
    background-color: rgb(249 250 251);
}

.zipcode-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zipcode-modal-header {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
}

.zipcode-modal-header h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.zipcode-modal-header h5 {
    color: rgb(55 65 81);
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
}

.zipcode-modal-section {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
}

.zipcode-modal-section-title {
    color: rgb(55 65 81);
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zipcode-modal-section-title i {
    color: rgb(var(--ms-blue-color));
}

.zipcode-modal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.zipcode-modal-pills .zipcode-item {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: rgb(55 65 81);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #zipcode_details_modal .modal-body {
        padding: 1rem;
    }

    .zipcode-modal-section {
        padding: 1rem;
    }
}

@keyframes accordion-up {
    0% {
        height: max-content;
    }
    to {
        height: 0
    }
}

@keyframes accordion-down {
    0% {
        height: 0
    }
    to {
        height: max-content;
    }
}


@media (min-width: 992px) {
    .summary-container{
        max-width: 80vw;
        margin:auto;
        margin-top:var(--ms-navbar-height);
        width: stretch;
    }

    .module-container.order-item .map-item {
        min-width:50%;
        min-height: 250px;
    }
    
    .order-datasets{
        margin-top: 1.5rem;
    }
    .summary-container .order-title-container{
        flex-direction: row;
    }

    .summary-container .module-container .order-container .item{
        flex-direction: row;
    }

    .order-container .item .map-item{
        margin-right:0;
    }

}