@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700);
@import url(font-awesome.min.css);

/*
   bootstrap overrides / styles which apply to everything
*/
html {
    background: #344a5f;
    font-size: 14px;
 }

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    position: relative;
    height: 100%;
    width: 100%;
}

.m-overflow-auto {
    overflow: auto;
}

.m-margin-separation {
    margin-top: 5px;
    margin-bottom: 5px;
}

.label-info {
    background-color: #344a5f;
}

/* Adjusted input, select, and table fields to fit within the container on Community flow card */
.container.slds-m-bottom_x-small {
    width:100%;
}

/* SLDS overrides for lightning components */
.nu-lightning-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.nu-lightning-wrapper .bBody .inputHeader {
    text-align: right;
}

.nu-lightning-wrapper .bBody .inputHeader .required {
    float: left;
    margin-right: -30%;
    margin-left: 30%;
}

.nu-lightning-wrapper .bBody .inputHeader .richTextLabel {
    display: inline-block;
    float:left;
    font-size: 0.875rem;
    font-weight: 700;
    padding-top: 0.375rem;
    width: 33%;
    padding-right: 1.25rem;
}

.nu-lightning-wrapper .bBody .inputHeader .richTextLabel .uiOutputRichText {
    text-align: right;
}

.nu-lightning-wrapper .bBody .slds-form-element__control .scrollable .uiInput {
    margin: 0;
    width: 98%;
    height: auto;
    overflow: hidden;
}

.nu-lightning-wrapper .bBody .slds-form-element__control .scrollable .uiInput:focus {
    margin: 0;
    width: 98%;
    height: auto;
    overflow: hidden;
}

.nu-lightning-wrapper .datePicker-openIcon .assistiveText,
.nu-lightning-wrapper .timePicker-openIcon .assistiveText {
    display: none;
}

.nu-lightning-wrapper .inlineBlockDisplay {
    display: inline-block;
    width: 100%;
}

.nu-lightning-wrapper .slds-form-element__control .slds-radio {
    margin: 0 auto;
    width: 33%;
}

.nu-lightning-wrapper .slds-scope fieldset {
    margin-top: -0.875rem;
}

.nu-lightning-wrapper .slds-scope .one-payment-wizard  fieldset {
    margin-top: 0em;
}

.nu-lightning-wrapper .slds-scope .one-payment-wizard .launch-button {
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
}

.nu-lightning-wrapper .slds-scope fieldset .input{
    padding: 0.125rem 0.875rem;
    width: 97%;
}

.nu-lightning-wrapper .slds-form-element__control .input {
    line-height: 1rem;
    width: 66%;
    height: 2rem;
    padding: 0.125rem 0.875rem;
    margin-bottom: 0.25rem;
    font-weight: 400;
    font-size: 1.1rem;
    color: #3c3d3e;
    border-radius: 0.25rem;
    border: 1px solid #cfd0d2;
}

.nu-lightning-wrapper .slds-form-element__control .input:focus,
.nu-lightning-wrapper .bBody .slds-form-element__control .scrollable .uiInput:focus,
.nu-lightning-wrapper .bBody  .slds-form-element__control select:focus {
    outline: none;
    box-shadow: 0 0 0.25rem 0.125rem rgba(0, 0, 0,.075);
}

.nu-lightning-wrapper .slds-scope {
    color: #525354;
}

.nu-lightning-wrapper .slds-scope,
.nu-lightning-wrapper .slds-scope h1,
.nu-lightning-wrapper .slds-scope h2,
.nu-lightning-wrapper .slds-scope h3,
.nu-lightning-wrapper .slds-scope h4,
.nu-lightning-wrapper .slds-scope h5,
.nu-lightning-wrapper .slds-scope h6,
.nu-lightning-wrapper .slds-scope th,
.nu-lightning-wrapper .slds-scope td {
    font-family: 'Roboto', sans-serif;
}

.nu-lightning-wrapper .slds-scope .slds-text-heading_small,
.nu-lightning-wrapper .slds-scope .slds-text-heading--small {
    font-weight: 700;
    color: #3c3d3e;
    font-size: 1.1rem;
}

.nu-lightning-wrapper .slds-scope:not(html) {
    font-size: 1rem;
}

.nu-lightning-wrapper .slds-scope .slds-card {
    border: 1px solid #cfd0d2;
}

.nu-lightning-wrapper .slds-scope .slds-button {
    box-shadow: none !important;
    text-shadow: none !important;
}

.nu-lightning-wrapper .slds-scope .slds-button:hover,
.nu-lightning-wrapper .slds-scope .slds-button:focus,
.nu-lightning-wrapper .slds-scope .slds-button.is-selected {
    text-shadow: none !important;
}

.nu-lightning-wrapper .slds-scope .slds-button_brand:hover,
.nu-lightning-wrapper .slds-scope .slds-button_brand:focus,
.nu-lightning-wrapper .slds-scope .slds-button_brand.is-selected {
    background: #005fb2 !important;
    border-color: #005fb2 !important;
}

.nu-lightning-wrapper .slds-scope .slds-button_neutral:hover,
.nu-lightning-wrapper .slds-scope .slds-button_neutral:focus,
.nu-lightning-wrapper .slds-scope .slds-button_neutral.is-selected {
    background: #f4f6f9 !important;
    border-color: #d8dde6 !important;
}

.nu-lightning-wrapper .slds-scope .slds-button .label {
    display: inline !important;
    white-space: nowrap !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
    padding: 0 !important;
    line-height: 1.875rem !important;
}

.nu-lightning-wrapper .slds-scope .slds-button_brand .label {
    color: #fff !important;
}

.nu-lightning-wrapper .slds-scope .slds-button_neutral .label {
    color: #1b5297 !important;
}

.nu-lightning-wrapper .uiBlock {
    padding-bottom: .25rem;
    margin-bottom: -1.125rem;
}

.nu-lightning-wrapper .uiBlock .bBody .inputWithInlineLabel {
    white-space: nowrap;
    padding-top: 0.25rem;
    float: right;
    width: 67%;
}

.nu-lightning-wrapper .uiBlock .bBody .slds-form-element__control .slds-radio {
    width: 100%;
}

.nu-lightning-wrapper .slds-scope .slds-form-element__legend {
        margin-top: 1rem;
}

.nu-lightning-wrapper .uiInput--datetime .datePicker-openIcon,
.nu-lightning-wrapper .uiInput--datetime .timePicker-openIcon {
    top: -0.125rem;
    margin-left: -0.5rem;
}

.uiDatePicker--default .datepicker__filter--month {
    float:none !important;
    width:100% !important;
}

.uiDatePicker--default .dateBar .prevMonth .assistiveText,
.uiDatePicker--default .dateBar .nextMonth .assistiveText {
    display: none;
}

.nu-lightning-wrapper .slds-form-element__control .slds-checkbox {
    margin: 0 auto;
    width: 33%;
}


.nu-lightning-wrapper .slds-scope .slds-form-element__control .slds-checkbox {
        width: 100%;
}

.nu-lightning-wrapper .slds-scope .one-payment-wizard .slds-form-element__control {
   clear: both;
}

/* this removes the annoying inset shadows on iOS */
input[type=text], input[type=password] {
    -webkit-appearance: none;
}

h1, h2, h3, h4, h5, h6, .section .section-head {
    font-weight: 700;
}

/* this fixes bugs with selects */
select[size] {
    height: 34px;
}

select[size].input-sm {
    height: 30px;
}

select[size].l-input-xs {
    height: 23px;
    line-height: 23px;
    padding: 2px;
}

/* this works around state pick lists since the class is removed */
/* http://salesforce.stackexchange.com/questions/73351/ */
.m-control-value span select:not(.form-control) {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 14px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #000;
    background-color: #fff;
    background-image: none;
    border: 1px solid #cfd0d2;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

.m-control-value span select:not(.form-control):disabled {
    background-color: #ddd;
}

.m-pt-5 {
    padding-top: 5px;
}

.m-pl-55 {
    padding-left: 55px;
}

/* fixes for multi-picklists */
/* TODO NC-582 Remove this section with new implementation */
select[multiple] {
    height: auto;
    min-height: 115px;
}

.multiSelectPicklistCell {
    padding-left: 10px;
    padding-right: 10px;
}

.multiSelectPicklistRow select.form-control {
    width: 100% !important;
    overflow: auto;
}

.multiSelectPicklistRow img.form-control {
    padding: 3px 7px;
    min-width: 31px;
    max-height: 23px;
}

.btn-secondary {
    background: #ccc;
    color: #525354;
}

.btn-list-button {
    margin-left: 3px;
}

/* this is just simply wrong, so we're fixing it */
.list-group-item {
    margin-bottom: 0;
}

/* layout */
.l-navbar-fixed-top-mobile {
    border-radius: 0;
}

.l-icon-spacing {
    padding-right: 10px;
}

.l-icon-spacing-left {
    padding-left: 10px;
}

.l-display-inline {
    display: inline;
}

.l-break-inline {
    word-break: break-all;
}

.l-break-word {
    word-break: break-word;
}

/* off canvas needs */
html, body {
    overflow: visible;
}

html.s-off-canvas-active, html.s-off-canvas-active body {
    overflow-x: hidden;
}

html.s-off-canvas-active .l-canvas {
    left: 265px;
}

.l-canvas {
    position: relative;
    left: 0;
    z-index: 2;
    background-color: #f0f1f2;
}

.l-off-canvas {
    background: #485C6F;
    z-index: 1;
    position: absolute;
    width: 265px;
    height: calc(100% - 50px);
    color: #fff;
    display: none;
    overflow-y: auto;
}

.l-off-canvas a {
    color: #fff;
}

.l-off-canvas a.btn-secondary {
    color: #525354;
}

.m-off-canvas-nav {
    margin-top: 3px;
}

.m-off-canvas-nav .list-group {
    border-bottom: 15px solid #5A6C7D;
    margin-bottom: 0;
}

.m-off-canvas-nav .list-group-item {
    border-bottom-color: #5A6C7D;
    padding: 12px 15px;
}

.m-off-canvas-nav a.list-group-item {
    -webkit-tap-highlight-color: #5A6C7D;
}

.m-off-canvas-nav a.list-group-item:focus,
.m-off-canvas-nav a.list-group-item:hover {
    background-color: #5A6C7D;

}

.m-off-canvas-nav .m-tertiary-navigation .list-group-item:first-child {

}

.m-off-canvas-cart-item-list {
    margin-top: -20px;
}

.m-off-canvas-cart-item-list .list-group-item {
    border-bottom-color: #5A6C7D;
    font-size: 90%;
}

/* remove gutters in checkbox select lists */
.l-no-gutter-left {
    padding-left: 0;
}

.l-no-gutter-right {
    padding-right: 0;
}

/* off canvas cart */
.page-header.m-off-canvas-header {
    background-color: transparent;
    border-bottom-color: #5A6C7D;
}

/* card list headings should have the same appearance as regular cards */
.card-list .card-list-heading,
.card-list .card-list-heading>h3 {
    font-size: 16px;
    font-weight: 700;
    color: #3c3d3e;
}

/* SF renders readonly fields as spans, but with the same class as inputs */
span.form-control {
    border: none;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
    word-wrap: break-word;
}

/* SF renders disabled links as spans, so we apply the disabled styles */
span.btn {
    background-color: #c9c7c5;
    border-color: #c9c7c5;
    cursor: not-allowed;
    pointer-events: none;
    opacity: .65;
    box-shadow: none;
}

span.btn-secondary {
    background-color: #ddd;
    border-color: #ddd;
    color: #999;
}

/* we're overriding the default behavior since it's broken in bootstrap */
.navbar-default .navbar-toggle.m-toggle-button,
.navbar-default .navbar-toggle.m-toggle-button {
    background-color: #2a94d6;
}

/* this ensures we actually have a proper toggle state */
.navbar-default .m-toggle-button.s-active {
    background-color: #55a9de;
}

/* menu button styles */
.navbar-default .navbar-toggle.m-toggle-button {
    padding: 8px;
    border-color: transparent;
    line-height: 1em;
    float: left;
    z-index: 5000;
    border-radius: 0;
}

.m-toggle-button-text {
    letter-spacing: 2px;
    font-weight: 700;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 10px;
    display: inline-block;
}

.m-navbar-logo {
    font-size: 20px;
    line-height: 20px;
    padding: 13px 15px;
    height: auto;
}

.m-wide-navbar {
    margin-top: 5px;
}

.page-header.page-header-anchor.m-page-header {
    padding: 20px 0;
    font-weight: 300;
}

.page-header.page-header-anchor.m-page-header a {
    color: #eee;
}

.page-header.page-header-anchor.m-page-header a:hover {
    color: #fff;
}

.page-header.page-header-anchor.m-page-header h1,
.page-header.page-header-anchor.m-page-header h2,
.page-header.page-header-anchor.m-page-header h3,
.page-header.page-header-anchor.m-page-header h4,
.page-header.page-header-anchor.m-page-header h5,
.page-header.page-header-anchor.m-page-header h6 {
    margin-top: 10px;
}

.m-summary-detail-box{
    min-height: 140px;
}

.m-tertiary-list-group-nav {
    margin-top: 20px;
}

/* this is used to give a row a thicker border
   best used on headings and to visually separate a single row from all others
   i.e. a summary row */
.table>tbody>tr.m-table-row-strong-border>th,
.table>tbody>tr.m-table-row-strong-border>td {
    border-top: 3px solid;
}

/* empty rows should not have a border on top */
.table>tbody>tr.m-table-row-borderless>th,
.table>tbody>tr.m-table-row-borderless>td {
    border-top: none;
}

/* order summary total card */
.m-total-column {
    width: 90%;
}

.m-footer {
    background-color: #344a5f;
    padding: 30px 0;
    margin-top: 5px;
    color: #f5f6f7;
}

/* pw strength meter */
.m-password-strength-meter .m-verdict-label {
    margin-top: 10px;
}

.m-password-strength-meter .m-meter .m-progress .progress {
    margin: 0;
    background-image: none !important;
}

.m-password-strength-meter .m-meter .m-progress .progress .bar {
    background-image: none !important;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* radio button list in a table (ugh) */
.m-radio-button-list {
    width: auto;
    margin: 0 auto;
}

.m-radio-button-list td {
    display: inline-block;
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
}

.m-radio-button-list td label {
    margin-left: 5px;
}

/* company roster */
.m-company-list-group-item {
    background: #eee;
}

.m-affiliate-list > li {
    min-height: 70px;
}

/* cc's */
.m-cc-container {
    text-align: center;
    margin: 0 0 30px 0;
}

.m-cc-body {
    margin-top: 20px;
    border-radius: 4px;
    border: thin solid #525354;
    width: 200px;
    height: 130px;
    background-color: #eeeeee;
    line-height: normal;
    font-size: 14px;
    display: inline-block
}

.m-cc-stripe {
    margin-top: 12px;
    background-color: #525354;
    height: 24px
}

.m-cc-name {
    margin: 18px 12px 0;
    border: thin solid #525354;
    background-color: #fff;
    text-align: right
}

.m-cc-numbers {
    text-align: center;
    margin: 0 20px;
    clear: both;
    z-index: 1;
    position: relative
}

.m-cc-visa-code {
    border: 2px solid red;
    float: right
}

.m-cc-amex-code {
    margin-top: 54px;
    text-align: right;
    font-size: smaller;
    margin-right: 6px;
    border: 2px solid red;
    float: right
}

.m-cc-amex-square {
    width: 76px;
    height: 76px;
    background-color: #9fcbf6;
    position: relative;
    left: 62px;
    top: -66px;
    border-radius: 4px
}

.m-cc-images i {
    font-size: 34px;
}

.m-cc-images i.currently-selected {
    color: #555;
}

.m-cc-images i.currently-unselected {
    color: #ddd;
}

.m-cc-exp-date .m-cc-exp-field {
    width: 33%;
    min-width: 90px;
}

.m-cc-exp-date .m-cc-exp-field.m-cc-exp-year {
    margin-left: 10px;
}

.m-cc-cvv {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

/* improved select lists */
.m-list-group-select {
    border-top: 1px solid #cfd0d2;
    border-left: 1px solid #cfd0d2;
    border-right: 1px solid #cfd0d2;
}

.m-list-group-select a.list-group-item.active,
.m-list-group-select a.list-group-item.active:focus,
.m-list-group-select a.list-group-item.active:hover,
.m-list-group-select div.list-group-item.active,
.m-list-group-select div.list-group-item:hover {
    background: #e3f1fa;
    color: #222;
    border-bottom-color: #cfd0d2;
}

.m-list-group-select div.list-group-item a.m-checkbox,
.m-list-group-select div.list-group-item a.m-checkbox:focus,
.m-list-group-select div.list-group-item a.m-checkbox:hover {
    color: #222;
    text-decoration: none;
    display: block;
}

.m-list-group-select .m-padded-description {
    display: block;
    padding-left: 22px;
    font-size: .85em;
    margin-top: 5px;
}

/* Override default SF button images */
td.multiSelectPicklistCell a:nth-of-type(1) img {
    content: url("./ChevronCircleRight.png");
    height: 32px;
}

td.multiSelectPicklistCell a:nth-of-type(2) img {
    content: url("./ChevronCircleLeft.png");
    height: 32px;
}

.m-form-top-margin {
    margin-top: 10px;
}

/* striped card detail lists */
.card ul.card-detail.m-card-detail-striped li {
    padding: 5px 15px;
}

.card ul.card-detail.m-card-detail-striped li:nth-child(even) {
    background: #eee;
}

/* custom card list styles */
.m-card-list-description {
    padding: 15px;
    font-size: inherit;
    font-weight: normal;
}

.m-card-no-heading {
    padding-top: 15px;
}

/* event page */
.m-event-banner img {
    max-width: 100%;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    -moz-border-radius-topleft: 4px;
    -moz-border-radius-topright: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.m-add-this {
    margin-bottom: 15px;
}

.card .m-event-description {
    margin-top: 15px;
    line-height: 1.6em;
}

/* store */
.m-product-image {
    margin: auto;
}

/* expandable descriptions */
.m-expandable-description-toggle {
    display: block;
    margin-bottom: 5px;
}

.m-expandable-description {
    display: block;
    margin-bottom: 5px;
}

.m-expandable-description.s-collapsed {
    display: none;
}

.card ul.card-detail.m-card-detail-striped.m-store-details li {
    padding: 5px 0px;
}

.card ul.card-detail.m-card-detail-striped.m-store-details li:nth-child(even) {
    background: #fff;
}

.card .card-heading img,
.card .card-detail img {
    max-width: 100%;
}

/* Card detail fields are floated right by default in Bootstrap. But if they expand to
    their own row, we still always want them left justified. */
.card .card-detail-value {
	text-align: left;
}

.card ul.card-detail {
    word-break: break-word;
}

.card .m-store-details .card-detail-label {
	font-size: 14px;
}

/* In product's detail, label should be left justified &
    the value associated with the label should be right justified. */
.m-product-label {
    padding: 5px 0px;
    margin-bottom: 2px;
}

.m-product-price {
    display: flex;
    justify-content: space-between;
    padding: 5px 0px;
    margin-bottom: 2px;
}

/* format description fields */
.description-field {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* button row card */
.m-button-row-item {
    margin-bottom: 15px;
}

.m-button-row-item.m-button-left {
    margin-right: 5px;
}

.m-button-row-item.m-button-right {
    margin-left: 5px;
}

/* login component */
.m-login {
    margin: 0 0 20px 0;
}

/* Social Login Component */
.m-social-heading {
    font-size: 16px;
    margin-bottom: 20px;
}

.m-social-login {
    margin-bottom: -5px;
    z-index: 1000;
    background-color: #fff;
    padding: 20px 20px 0 20px;
    border-left: 1px solid #cfd0d2;
    border-right: 1px solid #cfd0d2;
    border-top: 1px solid #cfd0d2;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    position: relative;
}

.m-divider {
    margin-top: 20px;
    position: relative;
    max-width: 500px;
}

.m-divider::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    width: 100%;
    border-bottom: 1px solid #ccc;
}

.m-divider .m-inner {
    display: inline-block;
    position: relative;
    padding: 1px 10px;
    margin: 0 auto;
    background-color: #fff;
    font-size: 16px;
}

.m-social-icon {
    list-style: none;
    display: inline-block;
    margin: 10px 30px;
    width: 64px;
}

.l-social-login-icons {
    padding: 0 10px;
}

/* sidebar search */
.m-sidebar-search {
    margin: 0 0 20px 0;
}

/* paging */
.m-paging-nav .pagination > li > a:focus,
.m-paging-nav .pagination > li > a:hover,
.m-paging-nav .pagination > li > span:focus,
.m-paging-nav .pagination > li > span:hover {
    background: #ccc;
    border-color: #ccc;
}

.m-paging-nav .pagination > .active > a,
.m-paging-nav .pagination > .active > a:focus,
.m-paging-nav .pagination > .active > a:hover,
.m-paging-nav .pagination > .active > span,
.m-paging-nav .pagination > .active > span:focus,
.m-paging-nav .pagination > .active > span:hover {
    background: #2a94d6;
    border-color: #2a94d6;
}

.m-paging-nav .pagination > .disabled > a,
.m-paging-nav .pagination > .disabled > a:focus,
.m-paging-nav .pagination > .disabled > a:hover,
.m-paging-nav .pagination > .disabled > span,
.m-paging-nav .pagination > .disabled > span:focus,
.m-paging-nav .pagination > .disabled > span:hover {
    color: #ccc;
    background: #fff;
}

.m-paging-nav .pagination > li > a,
.m-paging-nav .pagination > li > span {
    padding: 10px 14px;
}

/* Attachments */
.m-input-attachment {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.m-input-attachment + label {
    cursor: pointer;
}

.btn-choose-file-button {
    max-width: 150px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.m-file-details {
    display: inline-block;
}

.m-file-delete {
    float: right;
}

.m-remove-button {
    display: none;
}

.m-file-error {
    color: #a94442;
    font-size: 12px;
    display: none;
}

/* Button filters */
.m-btn-selected {
    color: #ffffff;
    background-color: #2a94d6;
    font-weight: normal;
}
.m-btn-selected:hover, .m-btn-selected:active {
    color: #ffffff;
    background-color: #1983c5;
}

.m-no-padding {
     padding: 0;
 }

.m-card-message {
    color: #327a4d;
}

/* Record Type description
   The description was being displayed inline
   with no margin between it and the title.
   This adds it. */
.record-type-description {
    display: block;
    margin-top: 10px;
}

/* valign checkboxes */
.checkbox input[type="checkbox"] {
    margin-top: 2px;
}

/* prevent line-breaks */
.text-nowrap {
    white-space: nowrap;
}

/* shading for cancellation fees */
.m-item-line.m-cancellation-fee {
    background-color: #f7e7e7;
}

/* alerts and cards displaying as alerts */
.alert-success, .card.m-card-as-alert.alert-success {
    background-color: #ddede3;
    border-color: #cce5d1;
    color: #327a4d;
}

.alert-info, .card.m-card-as-alert.alert-info {
    background-color: #d9edf2;
    border-color: #bfe8e9;
    color: #2d839a;
}

.alert-warning, .card.m-card-as-alert.alert-warning {
    background-color: #fefaf5;
    border-color: #fceade;
    color: #e0890f;
}

.alert-danger, .card.m-card-as-alert.alert-danger {
    background-color: #f7e7e7;
    border-color: #f0d4d9;
    color: #a83136
}

.card.m-card-as-alert .card-detail, .card .m-alert-container {
    padding: 0 15px 5px;
}

/* Formatting for input field HTML5 custom validation. */
.fieldNotValid {
    border-color: #f00;
}

/* Field error message */
.card-detail .errorMsg {
    background-color: #f7e7e7;
    border-color: #f0d4d9;
    color: #a83136;
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    margin-top: 5px;
}

/* Social Sign-On */
.m-social-title {
    font-size: 16px;
    padding:10px 10px 2px;
}

.m-social-subtitle {
    padding:2px 10px;
    color:#888;
}

/* Store Filters */
.m-filter-container {
    padding-bottom: 45px;
}

.m-store-filter {
    border-radius: 0;
    margin-right: 10px;
    padding: 10px 15px;
    min-width: 60px;
    border: none;
}

.m-store-filter:last-of-type {
    margin-right: 0px;
}

/* preserve width of tables in cards */
.m-card-table {
    table-layout: fixed;
}

.m-card-table th,
.m-card-table td {
    word-wrap: break-word;
}

/* donations */
.m-donation-amount {
    margin-bottom: 5px;
}

.m-other-amount {
    margin-top: 10px;
}

.m-button-message {
    margin-top: 8px;
    padding-left: 30px;
    text-align: left;
    font-size: 13px;
}

/* Roster management */
.m-silent-card {
    margin-bottom: 20px;
}

.m-search-query-card .m-search-clear i {
    position: absolute;
    right: 70px;
    top: 50%;
    -webkit-transform: perspective(1px) translateY(-50%);
    -ms-transform: perspective(1px) translateY(-50%);
    transform: perspective(1px) translateY(-50%);
    z-index: 1000;
}

.m-addon-primary {
    background: #2481bb;
    border-color: #2481bb;
    color: #fff;
    cursor: pointer;
}

.m-addon-primary:hover {
    background: #2994d6;
    color: #fff;
}

.m-search-results {
    margin-top: 5px;
}

.m-search-result {
    padding-top: 15px;
    border-top: 1px solid #eee;
    padding-bottom: 15px;
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.m-search-result.m-active {
    background-color: #fafafa;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.m-search-result h4 {
    margin-top: 0;
    margin-bottom: 0;
}

.m-person-field {
    margin-top: 5px;
}

.m-label-account {
    display: inline-block;
    margin-bottom: 3px;
    background: #999;
    color: #EEF1F6;
    text-shadow: 1px 1px rgba(0, 0, 0, .3);
    line-height: 1.3em;
}

.m-roster-actions {
    margin-top: 15px;
}

.m-icon-dim {
    color: #ccc;
}

.m-roster-add {
    font-size: 1.5em;
    padding: 15px 0;
}

.m-account-image {
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .5);
    display: inline-block;
    width: auto;
    max-width: 100%;
}

a.m-subtle-link,
a.m-subtle-link:active {
    color: #ccc;
}

a.m-subtle-link:hover {
    color: #bababa;
}

.m-account-detail-image {
    max-width: 50%;
    display: inline-block;
}

.m-roster-image {
    display: inline-block;
}

/* Menu Button */
.btn.m-btn-menu-button {
    background: inherit;
    font-size: 14px;
    border-radius: 0;
    border: none;
    text-align: left;
}

.btn.m-btn-menu-button:active,
.btn.m-btn-menu-button:focus {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    background: #fff;
    outline: none;
}

.btn.m-btn-menu-button:hover {
    background: #ccc;
}

/* UploadPhoto component */
.modal-backdrop {
  z-index: -1;
}

.m-profile-img-container {
    position: relative;
    overflow: hidden;
    max-width: 120px;
    text-align: center;
    margin: 0 auto;
}

.m-profile-img-container img:hover {
    opacity: 0.5;
}

.m-profile-img-container:hover a {
    opacity: 1;
    top: 0;
    z-index: 500;
}

.m-profile-img-container:hover a span {
    top: 50%;
    position: absolute;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

.m-profile-img-container a {
    color: #aaa;
    display: block;
    position: absolute;
    top: -100%;
    opacity: 0;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;
}

.m-upload-photo-input {
    margin: 0 auto;
}

.m-current-image {
    max-width: 80%;
    height: auto;
}

.m-thumb {
    height: auto;
    background-color: #fff;
}

.m-image-container:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.m-image-container {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
    position: relative;
}

.m-image-container img {
    vertical-align: middle;
}

.m-delete-button{
    position: absolute;
    top: 15px;
    right: 15px;
    color: #888;
    font-size: 20px;
}

.m-flex-centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card .m-top-padding {
    padding-top: 15px;
}

.card ul.m-profile-info li {
    float: left;
}

.card ul.m-profile-info li:first-of-type {
    font-size: 26px;
    padding-bottom: 5px;
    line-height: 24px;
}

.m-profile-card {
    background-color: #344A5F;
    color: #fff;
}

/* Ellipsis menu when floated needs space */
.pull-right .m-button-menu {
    margin-bottom: 15px;
}

/* button menu dropdown align left of parent for record table */
td.text-center .dropdown{
    position: relative;
    display: inline-block;
}

/* button menu dropdown align left of parent for record list */
.l-display-inline .dropdown {
    position: relative;
    display: inline-block;
}

/* Drag and drop photo upload */
.m-drag-and-drop-zone {
    padding: 50px 0;
    text-align: center;
    background-color: #d8edff;
    display: none;
    cursor: pointer;
    border-color: #54698d;
    border-width: 3px;
    border-style: dashed;
    font-size: 1.3em;
 }

.m-drag-and-drop-zone.s-hover {
    border-color: #04844b;
    background-color: #4bca81;
    color: #fff;
 }

.m-drag-and-drop-zone.s-error {
    border-color: #f0d4d9;
    background-color: #f7e7e7;
    color: #a83136;
    border-style: solid;
 }

.m-drag-and-drop-zone.s-saving {
    border-color: #fff;
    background-color: #fff;
    color: #525354;
 }

.m-hidden-input {
    display: inline !important;
    visibility: hidden;
    width: 1px;
}

.card.affix {
    top: 20px;
}

/* Terms and conditions */
.m-terms-and-conditions-box,
.m-terms-and-conditions-text {
    width: 100%;
    height: 80px;
    padding: 10px;
    background-color: #eee;
    border: 1px solid #ddd;
}

.m-terms-and-conditions-text {
    overflow-y: scroll;
}

.m-display-flex {
    display: flex;
}

.m-mr-5 {
    margin-right: 5px;
}

.m-mt-15 {
    margin-top:15px;
}

.m-flex-grow {
    flex-grow: 1;
}

.m-currency-change-alert-message {
    font-size: 13px;
}

/* Expandable List View */
.padding-top-md {
    padding-top: 1em;
}

.padding-bottom-md {
    padding-bottom: 1em;
}

.padding-bottom-none {
    padding-bottom: 0;
}

.padding-bottom-md {
    padding-bottom: 1em;
}

.padding-y-md {
    padding: 0 1em;
}

.margin-top-xs {
    margin-top: .25em;
}

.margin-bottom-none {
    margin-bottom: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.7em 1em;
    width: 100%;
    white-space: normal;
}

.details-amount {
    font-size: 1.5em;
}

.button-align {
    display: inline-block;
}

.merge-card-top {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.merge-card-center {
    border-radius: 0;
    border-top: none;
}

.merge-card-bottom {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.more-details-container {
    text-align: center;
    clear: both;
}

.table-container {
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.card-heading.standalone {
    color: #3c3d3e;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
}

.card-detail .form-group.nu-custom-form-field {
    display: none !important;
}

.m-recurring-auto-renew .btn {
    margin-bottom: 5px;
}

/* Hosted modal */
.modal-dialog.modal-900 {
    margin: 30px auto;
}

/* Toggle */
.m-checkbox-slider--b-flat {
  position: relative;
  padding-left: 0;
}

.m-checkbox-slider--b-flat input {
  cursor: pointer;
  opacity: 0;
  filter: alpha(opacity=0);
}

.m-checkbox-slider--b-flat input + span {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.m-checkbox-slider--b-flat input + span:before {
  display: inline-block;
}

.m-checkbox-slider--b-flat input + span > h4 {
  display: inline;
}

.m-checkbox-slider--b-flat input + span {
  padding-left: 25px;
}

.m-checkbox-slider--b-flat input + span:before {
  content: "";
  height: 20px;
  width: 40px;
  background: rgba(100, 100, 100, 0.2);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
  transition: background 0.2s ease-out;
}

.m-checkbox-slider--b-flat input + span:after {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 0;
  display: block;
  background: #ffffff;
  transition: margin-left 0.1s ease-in-out;
  text-align: center;
  font-weight: bold;
  content: "";
}

.m-checkbox-slider--b-flat input:checked + span:after {
  margin-left: 20px;
  content: "";
}

.m-checkbox-slider--b-flat input:checked + span:before {
  transition: background 0.2s ease-in;
}

.m-checkbox-slider--b-flat input + span:before {
  border-radius: 20px;
  width: 40px;
}

.m-checkbox-slider--b-flat input + span:after {
  background: #ffffff;
  content: "";
  width: 20px;
  border: solid transparent 2px;
  background-clip: padding-box;
  border-radius: 20px;
}

.m-checkbox-slider--b-flat input:not(:checked) + span:after {
  -webkit-animation: popOut ease-in 0.3s normal;
          animation: popOut ease-in 0.3s normal;
}

.m-checkbox-slider--b-flat input:checked + span:after {
  content: "";
  margin-left: 20px;
  border: solid transparent 2px;
  background-clip: padding-box;
  -webkit-animation: popIn ease-in 0.3s normal;
          animation: popIn ease-in 0.3s normal;
}

.m-checkbox-slider--b-flat input:checked + span:before {
  background: #0070d2;
}

.m-checkbox-slider--b-flat input:checked:hover + span:before {
    background-color: #005fb2;
}

.m-checkbox-slider--b-flat input:disabled + span:before,
.m-checkbox-slider--b-flat input:disabled:hover + span:before {
    background: #ccc;
    border: 1px solid #0070d2;
}

.m-checkbox-slider--b-flat input:disabled ~ .m-checkbox-icon.icon_checked i,
.m-checkbox-slider--b-flat input:disabled ~ span,
.m-checkbox-slider--b-flat input:disabled ~ small {
    cursor: not-allowed;
}

.m-checkbox-slider--b-flat input:disabled + span:after {
    opacity: 0.7;
}

.m-checkbox-slider--b-flat.m-checkbox-slider-md input + span:before {
  border-radius: 30px;
}

.m-checkbox-slider--b-flat.m-checkbox-slider-md input + span:after {
  border-radius: 30px;
}

.m-checkbox-slider--b-flat.m-checkbox-slider-lg input + span:before {
  border-radius: 40px;
}

.m-checkbox-slider--b-flat.m-checkbox-slider-lg input + span:after {
  border-radius: 40px;
}

.m-checkbox-slider--b-flat input + span:before {
    box-shadow: none;
}

.m-checkbox-slider--b-flat .m-checkbox-icon i {
    position: absolute;
    margin-left: 7px;
    top: 4px;
    color: #fff;
    font-size: 10px;
    display: none;
}

.m-checkbox-slider--b-flat input:checked ~ .m-checkbox-icon.icon_checked i {
    display: block;
}

.m-checkbox-slider--b-flat .toggle-wrapper {
    display: inline-flex;
    cursor: default;
}

.toggle-status-text {
    position: relative;
    bottom: -20px;
    right: 40px;
    font-size: 10px;
}

.toggle-display-text {
    cursor: default;
}

/* Button group */
.m-toggle-active {
    color: #fff;
    background-color: #2a94d6;
}

.m-toggle-active:hover {
    color: #fff;
    background-color: #237db4;
}

/* Carousel */
.carousel-control {
    color: #fff;
    top: 40%;
    color: #428BCA;
    bottom: auto;
    padding-top: 4px;
    width: 30px;
    height: 30px;
    text-shadow: none;
    opacity: 1;
}

.carousel-control:hover, .carousel-control:focus {
    color: #d9534f;
}

.carousel-control.left, .carousel-control.right {
    background-image:none !important;
}

.carousel-control.right {
    left:auto;
}

.carousel-control.left {
    right:auto;
}

.m-padding-y-xl {
    padding: 0 3em;
}

.row.m-display-flex {
    display: flex;
    flex-direction: row;
}

.row.m-display-flex .col-xs-6.col-sm-3 {
    margin:auto;
}

.thumbnail {
    display: flex;
    flex-direction: column;
    height: auto;
    background: none;
    border: none;
    margin-bottom: 0;
}

.m-carousel-image-container {
    height: 175px;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.thumbnail .caption {
    text-align: center;
    border-top: outset 1px #54698d;
    height: 50px;
    padding: 3px;
    margin-top: 5px;
}

.thumbnail .caption p {
    -webkit-line-clamp: 2;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    font-size: 12px;
    margin: 0;
}

@media (min-width: 768px) {
    .modal-dialog {
        width: 768px;
        margin: 30px auto;
    }
}

/*
 * Styles which apply to smaller viewports (including, but not exclusively mobile).
 */
@media (max-width: 991px) {
    .m-text-center-min-768 {
        text-align: center;
    }

    .m-row-margin-min-768 {
        margin-top: 10px;
    }

    .m-account-image {
        max-width: 50%;
    }

    .m-table-mobile td.button-align .btn {
        font-size: .75rem;
        line-height: 1.4rem;
    }
}

/*
   styles which apply to mobile only
 */
@media (max-width: 767px) {
  /* fix the navbar on mobile only */
  body {
    padding-top: 50px;
    height: 100vh;
    background-color: #344A5F;
  }

  .l-navbar-fixed-top-mobile {
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    z-index: 1030;
  }

  /* display inline regardless */
  .l-always-inline {
    display: inline-block;
    width: auto;
  }

  /* remove all paddings since columns are full width at this viewport size */
  .l-no-gutter-left, .l-no-gutter-right {
    padding-left: 0;
    padding-right: 0;
  }

  /* center logo on mobile only */
  .m-navbar-logo {
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
    margin: auto;
    padding: 5px;
  }

  .m-navbar-logo img {
    height: 40px;
    width: auto !important;
  }

  /* display all items in a mobile table block */
  .m-table-mobile
  .m-table-mobile thead,
  .m-table-mobile tbody,
  .m-table-mobile th,
  .m-table-mobile td,
  .m-table-mobile tr {
    display: block;
  }

  /* since every row needs visual separation, give it a border */
  .m-table-mobile tr {
    border-top: 1px solid #cfd0d2;
  }

  /* every cell should appear as its own row with the text-aligned right
     see next rule for additional info */
  .m-table-mobile td {
    border: none;
    position: relative;
    padding-left: 50%;
    white-space: normal;
    text-align: right;
  }

  .m-table-mobile td.text-left {
    text-align: left;
  }

  .m-table-mobile td.button-align {
      display: inline-block;
      width: auto;
      border: none;
      margin-left: auto;
  }

  .m-table-mobile td.button-align .btn {
      padding: 5px 12px;
      font-size: .825rem;
  }

  /* left align the contents of the cell's label */
  .m-table-mobile td:before {
    text-align:left;
    font-weight: bold;
    float: left;
  }

  /* if a given cell should not have a label, align its text left */
  .m-table-mobile td.m-table-cell-nolabel {
    text-align: left;
  }

  /* if a given cell should not have a label, hide the :before label */
  .m-table-mobile td.m-table-cell-nolabel:before {
    display: none;
  }

  /* in mobile, display the value of the data-title attribute before the cell */
  .m-table-mobile td:before {
    content: attr(data-title);
  }

  /* in mobile, we don't want additional borders or it will look off */
  .m-table-mobile > thead > tr > th,
  .m-table-mobile > tbody > tr > th,
  .m-table-mobile > tfoot > tr > th,
  .m-table-mobile > thead > tr > td,
  .m-table-mobile > tbody > tr > td,
  .m-table-mobile > tfoot > tr > td {
    border-top: none;
    padding: 6px 0;
  }

  /* in mobile view, mobile tables only, override the previous rule */
  .m-table-mobile > tbody > tr > .m-table-row-strong-border {
    border-top: 3px solid;
  }

  /* remove the extra spacing on mobile */
  .m-list-group-select .m-padded-description {
    padding-left: 0;
  }

  /* Button filters */
  .m-button-filters {
      float: none;
  }

  .m-mobile-btn-block {
      margin-top: 10px;
      width: 100%;
      display: block;
  }

  .m-social-icon {
      list-style: none;
      display: inline-block;
      margin: 10px 10px;
      width: 64px;
  }

  /* Roster */
  .m-text-center-mobile {
      text-align: center;
  }

  .card.m-account-detail-view {
      position: fixed;
      background: #fff;
      top: 0;
      right: 0;
      margin-top: 50px;
      height: 100%;
      z-index: 10;
      width: 85%;
      box-shadow: 0 0 200px rgba(0, 0, 0, 1);
  }
}

/*
   styles which apply to everything but mobile
 */
@media only screen and (min-width: 768px) {
    /* text-right for desktop only */
    .l-text-right-desktop {
        text-align: right;
    }

    /* fixes the sf1 bootstrap menu item single pixel hover bug */
    .navbar-default .navbar-nav > li > a {
        border-top: 1px solid #2a94d6;
        border-bottom: 1px solid #2a94d6;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Desktop highlights */
    .navbar-default .navbar-nav > li.m-highlight > a {
        border: 1px solid white;
        padding-bottom: 8px;
        padding-top: 8px;
        margin-top: 7px;
        border-radius: 6px;
    }

    .m-password-strength-meter .m-meter {
        width: 250px;
    }

    /* small address box */
    .m-min-height-address-box {
        min-height: 140px;
    }

    /* card actions */
    .card .card-actions {
        padding-top: 15px;
    }

    /* member join qty */
    .form-inline .form-control.m-quantity-input {
        width: 75px;
    }

    /* record list with full row buttons, decrease the padding to uniformity */
    .card .m-separate-button-row ul.card-detail {
        padding: 0;
    }
}

/* Styles only applicable when printing */
@media print {
    a[href]:after {
        content: none;
    }

    body {
        padding-top: 0;
    }

    .container {
        width: 100%;
    }

    footer,
    .m-page-header p,
    .navbar-default .navbar-toggle.m-toggle-button {
        display: none;
    }

    .card {
        border: none;
        border-radius: 0;
    }

    .card .card-heading {
        padding: 10px;
        margin: 0 0 10px 0;
        border: 1px solid #ddd;
    }

    .card .card-detail {
        padding-bottom: 0;
    }

    .m-min-height-address-box {
        min-height: 0;
    }

    .card .card-detail-value {
        display: block;
        vertical-align: top;
        text-align: left;
        float: none;
    }

    .table>tbody>tr>td,
    .table>tbody>tr>th,
    .table>tfoot>tr>td,
    .table>tfoot>tr>th,
    .table>thead>tr>td,
    .table>thead>tr>th {
        padding: 8px 0;
    }

    .navbar {
        display: block;
        position: relative;
        border-color: transparent;
        background-color: #cccccc !important;
        -webkit-print-color-adjust: exact;
    }
}

@media only screen and (min-width:992px) and (max-width: 1199px) {
    .nu-lightning-wrapper .uiInput--datetime .datePicker-openIcon,
    .nu-lightning-wrapper .uiInput--datetime .timePicker-openIcon {
        top: -0.125rem;
        margin-left: -0.56rem;
    }
}

@media only screen and (min-width:768px) and (max-width:991px) {
    .nu-lightning-wrapper .uiInput--datetime .datePicker-openIcon,
    .nu-lightning-wrapper .uiInput--datetime .timePicker-openIcon {
        display: none;
    }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width : 417px) {
    .col-sm-3 {
        padding-left: 0;
        padding-right: 0;
    }

    .thumbnail .caption {
        margin-top:0;
    }
}

.m-currency-display {
    font-size: 12px;
    vertical-align: middle;
}

/* Currency menu and top header */
.header-topper {
    height: 30px;
    vertical-align: middle;
    background-color: #344a5f;
}

.header-topper .slds-scope {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

.header-topper .slds-scope .m-currency-menu {
  color: rgb(8, 7, 7);
}

.header-topper .slds-scope .m-currency-menu .b-popover-button {
  color: #fff !important;
}

.card {
  position: relative;
}

.m-order-component-overlay-spinner-parent {
  position: absolute;
  width: 100%;
  height: 100%;
  display:block;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.70);
}

.m-order-component-overlay-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1001;
}

table .button-align {
   display: table-cell;
}

table .button-align .btn {
   width: 100%;
}

/* Unset boostrap styles that interfere with <lightning-flow> */
lightning-flow .container {
    margin-right: unset;
    margin-left: unset;
    padding-left: unset;
}

@media (min-width:768px) {
    lightning-flow .container {
        width: unset;
    }
}

@media (min-width:992px) {
    lightning-flow .container {
        width: unset;
    }
}

@media (min-width:1200px) {
    lightning-flow .container {
        width: unset;
    }
}