/* ==========================================================================
   HOME / LANDING  (/)
   Page stylesheet - the LAST sheet this page loads, so it wins ties.

   This page loads, in order:
     1. shared/global/*      (17 ordered layers, via _Layout, every page)
     2. pages/home.css

   Everything here is namespaced to this page.
   ========================================================================== */

.product-grid-wrapper {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #fff;
}

@media (max-width: 768px) {
    #productPreviewModal .modal-content {
        width: 90vw;
    }
}

@media (max-width: 480px) {
    #productPreviewModal .modal-content {
        width: 95vw;
        max-width: 95vw;
        height: auto;
        max-height: 90vh;
    }
}

#landing-product-grid {
    margin-top: 20px;
    width: 100%;
    overflow-x: hidden;
}

@media (min-width: 1056px) {
    #landing-product-grid .bx--col {
        padding-left: 0;
        padding-right: 0;
    }
    
    #landing-product-grid .bx--col:first-child {
        padding-left: 9px;
    }
}

@media (max-width: 768px) {
    #landing-product-grid {
        margin-left: 0;
        margin-right: 0;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    #landing-product-grid {
        padding: 0;
        box-sizing: border-box;
    }
}

h5.landing-product-grid-header {
    margin-bottom: 24px;
    margin-left: -12px;
    font-size: 1.25rem;
    font-weight: 400;
    font-family: "IBM Plex Sans";
}

@media (max-width: 768px) {
    h5.landing-product-grid-header {
        margin-left: 0;
        margin-right: 0;
    }
}

.landing-product-grid-header-row {
    padding: 7px 0px;
/*    background-color: #ededee;*/
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    font-weight: 600;
    font-size: 0.8125rem;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
}

.landing-product-grid-header-row > div {
    min-width: 0;
    flex-shrink: 1;
}

@media (max-width: 768px) {
    .landing-product-grid-header-row {
        display: none;
    }
}

.landing-product-grid-data-row {
    padding-top: 14px;
    padding-bottom: 7px;
    border: 1px solid #ccc;
    border-top: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: 100%;
    margin: 0;
}

.landing-product-grid-data-row:hover {
    background-color: #fafafb;
}

.landing-product-grid-data-row:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.landing-product-grid-data-row > div {
    display: flex;
    align-items: flex-start;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    flex-shrink: 1;
    flex-direction: column;
}

.product-cell-label {
    display: none;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--c-brand);
    margin-bottom: 8px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .landing-product-grid-data-row {
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
        border:none;
        border-bottom:1px solid rgb(204,204,204)
    }

    .landing-product-grid-data-row > div {
        width: 100%;
        margin-bottom: 12px;
    }

    .landing-product-grid-data-row > div:last-child {
        margin-bottom: 10px;
    }

    .product-cell-label {
        display: block;
    }
}

@media (max-width: 480px) {
    #landing-product-grid {
        width: 358px;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-product-grid-data-row {
        flex-direction: column;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .landing-product-grid-data-row > div {
        width: 100%;
        margin-bottom: 10px;
    }

    .landing-product-grid-data-row > div:last-child {
        margin-bottom: 0;
    }

    .product-cell-label {
        display: block;
        font-size: 0.6875rem;
    }
}

.btn-landing-subscribe {
    background-color: #fff;
    color: #508DFF;
    border: 1px solid #508DFF;
    padding: 8px 20px;
    min-width:110px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left:5px;
    
}

.btn-landing-subscribe:hover {
    background-color: #f0f7ff;
}

.btn-landing-open {
    background-color: #fff;
    color: #909090;
    border: 1px solid var(--c-brand);
    padding: 8px 20px;
    min-width: 110px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 5px;
}

.btn-landing-open:hover {
    background-color: #f9f9f9;
}

.img-product-preview {
    cursor: pointer;
}

.action-cell {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: flex-start;
    height: auto;
    padding-top: 0px;
    width: 160px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    box-sizing: border-box;
    margin: 0 auto;
}

.subscribe-button-container {
    text-align: left;
    flex-shrink: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    flex: 0 1 auto;
}

.image-container {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: none;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: none;
    background: transparent;
}

.action-cell .icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.image-container, .subscribe-button-container {
    min-width: 48px;
}

@media (max-width: 1024px) {
    .action-cell {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        padding-left: 0;
        margin: 0;
        width: 100%;
        min-width: 0;
    }

    .subscribe-button-container {
        flex: 0 0 auto;
        min-width: auto;
    }

    .btn-landing-open,
    .btn-landing-subscribe {
        height: 36px;
        min-height: 36px;
        width: auto;
        padding: 0 10px;
        font-size: 0.8125rem;
        white-space: nowrap;
        box-sizing: border-box;
        margin: 0;
    }

    .image-container {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        min-width: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    #landing-product-grid .image-container {
        display: none;
    }

    .img-product-preview {
        width: 36px;
        height: 36px;
        display: block;
    }
}

@media (max-width: 480px) {
    .action-cell {
        padding-left: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
        margin: 0 auto;
        width: auto;
        max-width: 100%;
    }

    .subscribe-button-container {
        flex: 0 0 auto;
        min-width: 0;
        text-align: left;
    }

    .btn-landing-subscribe,
    .btn-landing-open {
        width: 110px;
    }

    .image-container {
        justify-content: center;
        flex-shrink: 0;
    }
}

.product-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    width: 100px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.product-tag[data-tag="free"] {
    background-color: #d0f0ff;
    color: #0043ce;
    border: 1px solid #0043ce;
}

.product-tag[data-tag="originator"] {
    background-color: #e5f1ff;
    color: #0043ce;
    border: 1px solid #0043ce;
}

.product-tag[data-tag="aggregator"] {
    background-color: #e8f4f8;
    color: #055ae6;
    border: 1px solid #055ae6;
}

.product-tag[data-tag="servicers"] {
    background-color: #f1e8ff;
    color: #6f42c1;
    border: 1px solid #6f42c1;
}

.about-milliman-row {
    padding: 16px 0;
    border: 1px solid #ccc;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-milliman-link {
    color: #0f62fe;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.about-milliman-link:hover {
    text-decoration: underline;
    background-color: rgba(15, 98, 254, 0.08);
}

@media (max-width: 768px) {
    .about-milliman-row {
        padding: 12px 0;
    }

    .about-milliman-link {
        font-size: 0.8125rem;
        padding: 6px 12px;
    }
}

.landing-filter-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-filter-container label {
    font-weight: 600;
    color: var(--c-brand);
    font-size: 0.875rem;
}

.product-filter-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: var(--c-brand);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.product-filter-select:hover {
    border-color: #508DFF;
}

.product-filter-select:focus {
    outline: none;
    border-color: #508DFF;
    box-shadow: 0 0 0 2px rgba(80, 141, 255, 0.2);
}


.btn-modal-submit {
    background-color: var(--c-brand);
    color: #fff;
    border: 1px solid var(--c-brand);
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    transition: all 0.2s ease;
}

.btn-modal-submit:hover {
    background-color: #1a1f25;
    border-color: #1a1f25;
}

.btn-modal-submit:active {
    background-color: #0f1417;
}

.btn-modal-submit:disabled {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #a8a8a8;
    cursor: not-allowed;
}


.form-control-invalid {
    border-color: #da1e28 !important;
}

@media (max-width: 768px) {
    .bx--col.bx--col-sm-2 {
        margin-bottom: 10px;
    }

    .bx--col.bx--col-sm-2 img {
        margin-left: 2px;
    }

    .landing-filter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-filter-select {
        width: 100%;
    }

    .product-tag {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .landing-product-grid-header-row,
    .landing-product-grid-data-row {
        flex-direction: column;
    }

    .landing-product-grid-header-row > div,
    .landing-product-grid-data-row > div {
        width: 100% !important;
        flex: 0 0 100%;
    }

    .product-tag {
        width: 100%;
        margin: 0 auto 10px;
        display: block;
    }

    .btn-modal-submit {
        width: 100%;
    }
}

.landing.modal-header {
    text-align: center;
}

.landing.modal-header h2 {
    display: inline-block;
    margin-left: 50px;
}

.landing.modal-content {
    width: 50%;
}

.landing.modal-body {
    padding: 0px;
}

.landing.modal-body #product-preview-gallery-image {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {

    .landing.modal-header h2 {
        margin-left: -30px;
    }
}

@media (max-width: 550px) {

    .landing.modal-header h2 {
        font-size: 1rem;
        margin:0 auto;
    }

    
}

@media (max-width: 400px) {

    .modal-header.landing {
        min-height: 75px;
    }

    .bx--col.bx--col-sm-2 img {
        margin-left: 8px;
    }
}

