body {
    padding-bottom: 0px;
}

/**************************/
/* Begin layout styling */

.navbar-toggle.pull-left {
    margin-left: 10px;
    margin-right: 0;
}

#nav-main .icon-bar {
    background-color: #fff;
}

#nav-main, .navbar-nav {
    background-color: rgba(125,154,189,1);
    color: #fff;
    /*border-color: 0;*/
}

    #nav-main a {
        font-family: "Open Sans", sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 1px;
        color: #fff;
    }
    #nav-main ul.nav > li > a {
        text-transform: uppercase;
    }
    #nav-main ul.nav > li > a.normal-case {
        text-transform: none;
    }
    #nav-main .dropdown-menu a {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    #nav-main .dropdown-menu {
        background-color: rgba(125,154,189,1);
        border-radius: 0;
        border-top-color: rgba(125,154,189,1);
    }
    #nav-main .open a {
        background-color: rgba(125,154,189,1);
    }
    #nav-main .active > a {
        background-color: rgba(125,154,189,1);
    }

    .page-title {
        border-bottom: 1px solid #eee;
        margin-bottom: 15px;
        margin-top: 20px;
    }
    .page-title:empty {
        display:none;
    }
    .page-title h2 {
        margin-top: 0;
    }
    .page-title h4 {
        color: gray;
    }

#footer {
}
    #footer #footer-info {
        background-color: rgba(125,154,189,1);
    }
        #footer #footer-info p, #footer #footer-info a {
            color: #fff;
        }
    #footer #footer-basic {
        background-color: #000;
    }
        #footer #footer-basic p, #footer #footer-basic a {
            color: rgba(125,154,189,1);
        }
    #footer .container {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    #footer h2, #footer h3, #footer h4, #footer h5 {
        text-transform: uppercase;
    }
    
@media only screen and (max-width:767px) {
    li.active.open .dropdown-menu {
        display: block;
        position: static;
        background-color: transparent;
        border: 0 none;
        box-shadow: none;
        margin-top: 0;
        width: 100%;
    }
    #nav-main .dropdown-menu {
        background-color: rgba(145, 170, 200, 1);
        border-radius: 0;
        border-top-color: rgba(145, 170, 200, 1);
    }
    #nav-main .open a {
        background-color: rgba(145, 170, 200, 1);
    }
    /*#nav-main .active > a {
        background-color: rgba(145, 170, 200, 1);
    }*/
}

.text-right-lg {
    text-align: right;
}

@media only screen and (max-width:1000px) {
    .text-right-lg {
        text-align: left;
    }
}


/*Slightly smaller then standard labels for DL's*/
.col-md-4 .dl-horizontal dt {
    width: 140px;
}

.col-md-4 .dl-horizontal dd {
    margin-left: 160px;
}

/*Don't wrap on small screens*/
.dl-horizontal dt {
    float: left;
    width: 160px;
    overflow: hidden;
    clear: left;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dl-horizontal dd {
    margin-left: 180px;
}

.dl-horizontal {
    margin-bottom:0;
}

 @media (min-width: 768px) {
    .dl-horizontal.dl-wide dt {
        width: 200px;
    }

    .dl-horizontal.dl-wide dd {
        margin-left: 220px;
    }
}

.validation-summary-errors {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #a94442;
    border-radius: 4px;
    background-color: #fff6f6;
    color: #a94442;
} 
    .validation-summary-errors ul {
        margin-bottom: 0;
        padding-left: 18px;
    }

.form-control.input-validation-error {
    border-color: #a94442;
    background-color: #fff6f6;
}
/*.form-control.valid {
    border-color: #44a942;
    background-color: #f6fff6;
}*/

.logo-large {
    width: 400px;
    height: 400px;
    background: url(images/imps_logo_dark_400.png) no-repeat;
    margin-bottom: 60px;
}

@media only screen and (max-width: 460px), screen and (max-height: 570px) {
    .logo-large {
        width: 200px;
        height: 200px;
        background: url(images/imps_logo_dark_200.png) no-repeat;
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 460px) {
    .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
        width: 100%;
    }

    .bootstrap-select.form-control:not([class*=col-]) {
        width: 100%;
    }
}

@media only screen and (min-width: 461px) {
    /* Set width on the form input elements since they're 100% wide by default */
    .input-group,
    .col-md-10 > .form-control,
    .col-md-8 > .form-control,
    select {
        max-width: 430px;
    }

    .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn),
    .bootstrap-select.form-control:not([class*=col-]) {
        width: 430px;
    }

    /*.stretch-filter .bootstrap-select.form-control:not([class*=col-]) {
        width: 100%;
    }*/
}

.form-buttons {
    margin-top: 30px;
}

form p.col-md-offset-2 {
    padding-left: 5px;
}

.bootstrap-select > .dropdown-toggle.bs-placeholder {
    color: #bbb;
}

.btn-default .glyphicon, .btn-default .fa {
    color: #666;
}
.btn-primary .glyphicon, .btn-primary .fa {
    color: #fff;
}

/* End layout styling */
/**************************/

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    min-height: 500px;
}

div.pagebuttons{
    margin-top:20px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

.griddly thead tr.header td {
    font-weight: bold;
    padding: 5px;
    color: white;
    background: #627eba;
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#627eba', EndColorStr='#485d7c')";
    background-color: rgba(125,154,189,1);
}

.griddly table thead th {
    background-image: linear-gradient(#f0f0f0, #e6e6e6);
}

.griddly table:not(.table-hover) tr > td.sorted_a,
.griddly table:not(.table-hover) tr > td.sorted_d,
.griddly table tr:not(:hover) > td > td.sorted_a,
.griddly table tr:not(:hover) > td > td.sorted_d {
    background-color: #f7f7f7;
}

.griddly table:not(.table-hover):hover tbody tr td {
    cursor: default;
}

.griddly-footer {
    min-height: 40px;
    text-align: center;
    border-top: 1px solid #dadada;
    background-color: #e7e7e7;
    padding: 5px;
}

.griddly-scrollable-container, .griddly-footer {
    border: none !important;
}

.griddly-filter-inline .griddly-scrollable-container {
    overflow-x: auto;
}

.griddly .totals-tfoot {
    font-weight: bold;
}

.griddly-footer .griddly-summary {
    float: left;
    margin-top: 2px;
    line-height: 22px;
}

.griddly {
    border: none!important;
    margin-bottom: 20px;
}

.griddly-pager input {
    width: 45px;
    padding: 2px 3px;
    height: 26px;
    border-radius: 3px;
    border: 1px solid #aaa;
    color: #555555;
    text-align: center;
}

.griddly-pager a.prev, .griddly-pager a.next {
    margin-right: 9px;
    margin-left: 9px;
}

.griddly .buttons, .griddly-buttons {
    margin-top: 10px;
    margin-bottom: 10px;
    min-height: 34px;
}

.griddly-pagesize {
    float: right;
}

@media only screen and (max-width: 770px) {
    .griddly-pagesize {
        display: none;
    }
}

.griddly th.sorted_d span.icon, .griddly th.sorted_a span.icon {
    margin-left: 5px;
}

span.griddly-pagesize select.pageSize {
    width: 110px;
    padding: 2px 3px;
    height: 26px;
    border-radius: 3px;
    border: 1px solid #c0c0c0;
    color: #555555;
}

.griddly .griddly-filters-inline {
    background-color: #fafafa;
    background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));
    background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
    background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
    background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
    *
  zoom: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
    border-bottom: 1px solid #dadada;
}

.griddly .griddly-filters-inline select,
.griddly .griddly-filters-inline input[type="text"] {
    width: 100% !important;
}

.griddly .griddly-filters-inline input[type="text"] {
    min-height: 30px;
    margin-bottom: 0;
}

.griddly .griddly-filters-inline td {
    padding: 4px 3px;
    border: none;
    overflow: hidden;
}

.griddly .griddly-filters-inline td .griddly-filter-popover {
    position: fixed;
}

.griddly .griddly-filters-inline select {
    display: none;
}

ul.upload-list {
    list-style:none;
    display:inline-block;
    padding-left:0;
}

.upload-filename {
    width: 280px;
    max-width: 280px;
    display: inline-flex;
    color: #337ab7;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow:hidden;
}

select[multiple] {
    height: 32px; /*Keeps it from jumping around when turning to a select filter*/
    visibility: hidden;
}

/*Address editor styles*/
@media only screen and (min-width: 461px) {
    .address-special > .address-container {
        max-width: 460px;
    }
}

.address-special .city {
    padding-right: 0;
}

.address-special .zip {
    padding-left: 0;
}

.address-special .state {
    padding-left: 0;
    padding-right: 0;
}

/*Bootstrap callout styles*/
.bs-callout {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 3px;
}

.bs-callout h4 {
    margin-top: 0;
    margin-bottom: 5px;
}

.bs-callout p:last-child {
    margin-bottom: 0;
}

.bs-callout code {
    border-radius: 3px;
}

.bs-callout + .bs-callout {
    margin-top: -5px;
}

.bs-callout-default {
    border-left-color: #777;
}

.bs-callout-default h4 {
    color: #777;
}

.bs-callout-primary {
    border-left-color: #428bca;
}

.bs-callout-primary h4 {
    color: #428bca;
}

.bs-callout-success {
    border-left-color: #5cb85c;
}

.bs-callout-success h4 {
    color: #5cb85c;
}

.bs-callout-danger {
    border-left-color: #d9534f;
}

.bs-callout-danger h4 {
    color: #d9534f;
}

.bs-callout-warning {
    border-left-color: #f0ad4e;
}

.bs-callout-warning h4 {
    color: #f0ad4e;
}

.bs-callout-info {
    border-left-color: #5bc0de;
}

.bs-callout-info h4 {
    color: #5bc0de;
}

/*Bootstrap 3 flex box*/

@media only screen and (min-width : 768px) {
    .row-flex, .row-flex > div[class*='col-'] {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex: 1 1 auto;
    }

    .row-flex-wrap {
        -webkit-flex-flow: row wrap;
        flex-flow: row wrap;
        align-content: flex-start;
        flex: 0;
    }

    .row-flex > div[class*='col-'], .container-flex > div[class*='col-'] {
        margin: -.2px; /* hack adjust for wrapping */
    }

        .container-flex > div[class*='col-'] div, .row-flex > div[class*='col-'] div {
            width: 100%;
        }


    .flex-col {
        display: flex;
        display: -webkit-flex;
        flex: 1 100%;
        flex-flow: column nowrap;
    }

    .flex-grow {
        display: flex;
        -webkit-flex: 2;
        flex: 2;
    }
}

/*Status box on disposition profile*/
.status-dl dt {
    font-weight: normal;
}

.status-dl .fa-check-square-o {
    color: green;
}

.status-dl .fa-square-o {
    color: gray;
}

.status-dl dt,
.status-dl dd {
    white-space: nowrap!important;
    text-overflow: ellipsis;
}

label.required:after {
    content: "*";
}

/*Button inside grid*/
.griddly tbody a.btn-sm{
    padding-top:2px;
    padding-bottom:2px;
}


/*Navbar styles*/
.navbar-brand {
    padding:3px;
}
.navbar-brand img{
    width:40px;
}
#navbar-user{
    float:right;
}
.navbar-header button{
    width:40px;
}

.editly-editable {
    background-color: #c8ffc8 !important;
}

/*Disposition profile*/
div.product-listing {
    text-align: center;
}

div.product-listing a {
    color: black;
}

div.product-listing a:hover {
    text-decoration: none;
}

div.product-listing a > div {
    margin-top: 10px;
    margin-bottom: 40px;
}

.quiz .form-control[disabled], .quiz .form-control[readonly], .quiz fieldset[disabled] .form-control {
    background: none;
    cursor: default;
}
.quiz-file-upload img {
    display: block;
}

.quiz input,
.quiz select,
.quiz div.input-group,
.quiz textarea {
    max-width: 280px;
}

.modal-spinner {
    position: fixed;
    right:0;
    bottom:0;
    left: 0;
    top: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
}

.modal-spinner i {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 50pt;
}

.tooltip .tooltip-inner {
    max-width: 300px !important;
    white-space:normal;
}

@media screen and (max-width:768px) {
    .container .jumbotron, .container-fluid .jumbotron {
        margin-bottom: 0 !important;
    }
    .body-content {
        padding: 5px;
    }
    .navbar{
        margin-bottom:0;
    }
}

/* ---- Self-service sticky bar ---- */

.ss-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    margin: -15px -15px 20px; /* bleed to container edges */
    padding: 10px 15px;
    transition: box-shadow 0.15s ease;
}

.ss-sticky-bar.scrolled {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.ss-sticky-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ss-roadmap {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.ss-roadmap li {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.ss-roadmap li + li::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 2px;
    background: #ddd;
    margin: 0 6px;
}

.ss-roadmap li.done + li::before,
.ss-roadmap li.done + li.active::before {
    background: #2a6df4;
}

.ss-roadmap li a, .ss-roadmap li span {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ss-roadmap li.done { color: #2a6df4; }
.ss-roadmap li.active { color: #333; font-weight: 600; }

.ss-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    font-size: 11px;
    font-weight: 600;
}

.ss-roadmap li.done .ss-circle {
    background: #2a6df4;
    color: #fff;
}

.ss-roadmap li.active .ss-circle {
    background: #fff;
    color: #2a6df4;
    border: 2px solid #2a6df4;
    width: 24px;
    height: 24px;
}

.ss-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

@media (min-width: 768px) {
    .ss-nav-below {
        justify-content: space-between;
    }
}

.ss-btn-prev, .ss-btn-next {
    min-height: 36px;
}

.ss-continue-form > .ss-btn-next {
    width: 100%;
}

.ss-dashboard-link {
    color: #999;
    font-size: 13px;
}

/* Dashboard mode: progress strip renders statically (not sticky) */
.ss-dashboard-strip .ss-sticky-bar {
    position: static;
    margin: 0 0 15px;
    border-bottom: 0;
    box-shadow: none;
}

.ss-dashboard-strip .ss-sticky-bar.scrolled {
    box-shadow: none;
}

@media (max-width: 767px) {
    .ss-dashboard-strip .ss-sticky-bar {
        margin: 0 0 10px;
        padding: 6px 10px 8px;
    }
}

/* Self-service Review & Pay layout */
.ss-checkout .ss-checkout-col {
    margin-bottom: 15px;
}

.ss-checkout .bs-callout {
    margin-top: 0;
    margin-bottom: 0;
    height: 100%;
}

@media (min-width: 1200px) {
    .ss-checkout {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .ss-checkout .ss-checkout-col {
        display: flex;
        margin-bottom: 0;
    }

    .ss-checkout .ss-checkout-col > .bs-callout {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

/* Order summary table */
.ss-order-summary {
    margin-bottom: 0;
    table-layout: fixed;
    width: 100%;
}

.ss-order-summary > tbody > tr > td {
    vertical-align: middle;
    word-wrap: break-word;
}

.ss-order-summary .ss-summary-label {
    width: 60%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-left: 18px;
}

.ss-order-summary tr.active .ss-summary-label,
.ss-order-summary tr.info .ss-summary-label {
    padding-left: 8px;
}

.ss-order-summary .ss-summary-name {
    width: auto;
}

.ss-order-summary .ss-summary-price {
    text-align: right;
    white-space: nowrap;
    width: 28%;
}

.ss-summary-remove {
    padding: 0 0 0 4px;
    vertical-align: baseline;
}

.ss-summary-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Payment form: stack labels above inputs inside the narrow checkout column
   and keep sub-rows (card+cvc, expiration, city/state/zip) side-by-side. */
.ss-checkout #payment-info-form .form-group {
    margin-left: 0;
    margin-right: 0;
}

.ss-checkout #payment-info-form .form-group > label.control-label {
    float: none;
    width: 100%;
    text-align: left;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 4px;
}

.ss-checkout #payment-info-form .form-group > div[class*="col-"] {
    float: none;
    width: 100%;
    max-width: none !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0 !important;
}

.ss-checkout #payment-info-form .form-group .row {
    margin-left: -6px;
    margin-right: -6px;
}

.ss-checkout #payment-info-form .form-group .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}

.ss-checkout #payment-info-form .input-group {
    width: 100%;
}

/* Address row: city/state/zip - widen state so two letters fit */
.ss-checkout #payment-info-form .address-container .row > .city { width: 50%; }
.ss-checkout #payment-info-form .address-container .row > .state { width: 22%; }
.ss-checkout #payment-info-form .address-container .row > .zip { width: 28%; }

/* Hide empty spacer col on City/State/Zip row (the form-horizontal indent) */
.ss-checkout #payment-info-form .form-group.address-special > div[class*="col-"]:empty {
    display: none;
}

/* Mobile tweaks */
@media (max-width: 767px) {
    .ss-order-summary .ss-summary-label {
        width: 65%;
    }

    .ss-order-summary .ss-summary-price {
        width: 35%;
    }
}

/* Mobile layout for sticky bar */
.ss-roadmap-mobile {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 8px;
}

.ss-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.ss-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
}

.ss-dot.done { background: #2a6df4; }
.ss-dot.active {
    background: #fff;
    border: 2px solid #2a6df4;
    width: 14px;
    height: 14px;
}

.ss-step-label {
    font-size: 12px;
    color: #666;
}

@media (max-width: 767px) {
    .ss-sticky-bar {
        padding: 8px 12px 10px;
        margin: -10px -10px 15px;
    }

    .ss-sticky-inner {
        flex-wrap: wrap;
        gap: 6px;
    }

    .ss-nav {
        flex: 1 1 100%;
        gap: 8px;
    }

    .ss-btn-prev,
    .ss-btn-next,
    .ss-continue-form {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
    }

    .ss-btn-next { font-weight: 600; }

    /* Fixed bottom nav on mobile so Continue is always reachable, even at the top of the page */
    .ss-nav-below {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;
        margin: 0;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 -2px 6px rgba(0, 0, 0, .08);
    }

    /* Reserve space so the fixed bar doesn't cover page content */
    body.has-ss-nav-below {
        padding-bottom: 72px;
    }
}

/* ---- Selected items table: prevent overflow on narrow viewports ---- */

#selected-items-table {
    width: 100%;
    table-layout: fixed;
}

#selected-items-table td,
#selected-items-table th {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ---- Selected items table: mobile card stack ---- */

@media (max-width: 575px) {
    #selected-items-table,
    #selected-items-table thead,
    #selected-items-table tbody,
    #selected-items-table tr,
    #selected-items-table td,
    #selected-items-table th {
        display: block;
        width: 100% !important;
        text-align: left !important;
    }

    #selected-items-table thead {
        display: none;
    }

    #selected-items-table tbody tr {
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        margin-bottom: 8px;
        padding: 10px;
        background: #fff;
    }

    #selected-items-table tbody tr.success { background: #dff0d8; }

    #selected-items-table tbody td {
        border: 0;
        padding: 4px 0;
    }

    #selected-items-table tbody td:nth-child(1) { font-weight: 600; }
    #selected-items-table tbody td:nth-child(1) small { font-weight: 400; }

    #selected-items-table tbody td:nth-child(2) {
        display: inline-block;
        width: auto !important;
    }

    #selected-items-table tbody td:nth-child(3) {
        display: inline-block;
        width: auto !important;
        float: right;
    }

    #selected-items-table tbody td:nth-child(4) {
        text-align: right !important;
        margin-top: 6px;
    }

    #selected-items-table tbody td:nth-child(4):empty {
        display: none;
    }
}

/* ---- Item detail modal: full-screen on xs, sticky header + footer ---- */

@media (max-width: 767px) {
    #item-detail-modal { overflow: hidden; }

    #item-detail-modal .modal-dialog {
        width: auto;
        margin: 0;
        height: 100vh;
    }

    #item-detail-modal .modal-content {
        height: 100vh;
        display: flex;
        flex-direction: column;
        border-radius: 0;
        border: 0;
    }

    #item-detail-modal form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
    #item-detail-modal .modal-header { flex: 0 0 auto; }
    #item-detail-modal .modal-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    #item-detail-modal .modal-footer { flex: 0 0 auto; }
}

/* ---- Catalog card ---- */

.catalog-card-desc {
    font-size: 12px;
    flex: 1 1 auto;
    margin: 0 0 10px;
    max-height: 7.5em;
    overflow: hidden;
    position: relative;
    word-wrap: break-word;
}

.catalog-card-desc::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.8em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
    pointer-events: none;
}

.catalog-card-desc p,
.catalog-card-desc ul,
.catalog-card-desc ol {
    margin: 0 0 4px;
}

.catalog-card-desc p:last-child,
.catalog-card-desc ul:last-child,
.catalog-card-desc ol:last-child {
    margin-bottom: 0;
}

/* Bump Add button to 44px tap target on xs */
@media (max-width: 575px) {
    .catalog-card [data-add-btn] {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ---- Add More modal: full-screen on xs, wide on desktop ---- */

#add-more-modal .modal-dialog {
    width: 90%;
    max-width: 1100px;
}

@media (max-width: 767px) {
    #add-more-modal { overflow: hidden; }

    #add-more-modal .modal-dialog {
        width: auto;
        margin: 0;
        height: 100vh;
    }

    #add-more-modal .modal-content {
        height: 100vh;
        display: flex;
        flex-direction: column;
        border-radius: 0;
        border: 0;
    }

    #add-more-modal .modal-header { flex: 0 0 auto; }
    #add-more-modal .modal-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    #add-more-modal .modal-footer { flex: 0 0 auto; }
}

/* ---- btn-block on xs helper ---- */

@media (max-width: 767px) {
    .btn-block-xs { display: block; width: 100%; }
}

/* ---- Self-service pages: narrow + center body content on large monitors ---- */

body.self-service-page .body-content {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}
