/*———— README ————*/

/*
This CSS file adds additional styling to Community Hub beyond what
is possible in Theme Settings (on the Community Hub Settings tab).
This includes several corrections to the Bold Theme that are not
accessible via Theme Settings.

If you are using the Bold Theme and want to rapidly change the
most prominently featured color in Community Hub, simply do a
Find and Replace All on the current primary color, which is #162C45.
This assumes your primary color contrasts well with white (#FFFFFF).
If not, you will find many elements hard to read. We strongly advise
selecting a primary color that contrasts well with white.
In either case, you will need to make additional changes in Theme Settings
since this file is only meant to supplement Theme Settings, not replace it.
*/


/*———— GENERAL ————*/

/* Imports a Google Font so it can be declared in Theme Settings. */
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700);


/*———— GLOBAL HEADER ————*/

/* Sets a minimum height on the global nav. This is more so pertinent for the mobile menu. */
.navbar {
    min-height: 50px;
}

/* Sets a maximum height on the mobile logo. */
.m-logo-retina {
    max-height: 45px;
}

/* Fix the Font Color of the "MENU" Button on Mobile when it's "Active." */
.navbar-default .m-toggle-button.s-active .m-toggle-button-text {
    color: #162C45;
}

/*———— MAIN CANVAS ————*/

/* Changes the border color on cards (default is white). */
.card,
.card-list {
    border-color: #162C45 !important;
}

/* Changes the top border color on the "Account" navigation menu for larger viewports. */
.l-canvas .list-group {
    border-top-color: #162C45;
}

/* Changes the default dark gray page header background color. */
.page-header.page-header-anchor.m-page-header {
    background-color: #162C45;
}

/* Indents and shrinks child navigation menu items (mobile and desktop). */
.nav-child {
    margin-left: 2em;
    font-size: .9em;
}

/* Adds margin above each block button in a list-based card. By default, there is zero margin, causing buttons to touch. */
.card .card-actions .btn-block.btn-list-button {
    margin-top: 16px;
}

/* Per the client's request, hide links to the create account page, such as the "Don't have an account?" link on the Login page. */
p a[href*="/nc__createaccount"] {
    display: none;
}

 /* Reduces the border-radius from 50% to 5% on "Upload Photo" Cards
 ** when the fs-full-image CSS Class is declared on the card. */
 .m-profile-card.fs-full-image .img-circle {
    border-radius: 5%;
 }

 /* Removes the border and border-radius on "Upload Photo" Cards
 ** when the fs-full-image-borderless CSS Class is declared on the card. */
 .m-profile-card.fs-full-image-borderless .img-circle {
    border: 0;
    border-radius: 0%;
 }

/*———— MOBILE MENU CANVAS ————*/

/* Removes margin from the top of the mobile menu so it aligns with the container div. */
.m-off-canvas-nav {
    margin-top: 0px;
}

/* Changes dark gray background color of mobile menu to light gray. */
.l-off-canvas.l-off-canvas-left {
    background-color: #F9F9F9;
}

/* Sets the color of Navigation Menu Items in the mobile menu to the primary color. */
.m-off-canvas-nav a.list-group-item {
    background-color: #162C45;
    border-color: #ffffff;
    color: #fff !important;
}

/* Simplifies mobile menu Nav Menu Item hover and focus colors to be a shade of the primary color. */
.m-off-canvas-nav a.list-group-item:focus,
.m-off-canvas-nav a.list-group-item:hover {
    background-color: #162C45;
    box-shadow: 0 3000px rgba(0, 0, 0, 0.2) inset;
}

/* In mobile menu, converts left margin of child Nav Menu Items to left padding
   to prevent white background from appearing. */
.m-off-canvas-nav a.list-group-item.nav-child {
    margin-left: 0;
    padding-left: 2.5em;
}

/* Simplify Mobile Menu "list group" border to be a shade of the primary color using ARGB. */
.l-off-canvas .m-off-canvas-nav .list-group {
    border-bottom-color: #162C4599;
}

/* Changes the dark gray color of a selected item in a list to the primary color (e.g., Checkout page). */
.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 {
    background-color: #162C45;
}


/*———— FLOWS ————*/

flowruntime-lwc-field > div {
    max-width: 100%;
}

/* Corrects checkbox option display within a flow. */
.nu-lightning-wrapper .uiBlock .bBody .slds-form-element__control .slds-checkbox {
    width: auto;
}

/* Corrects text area label display within a flow. */
.nu-lightning-wrapper .bBody .inputHeader .richTextLabel {
    display: inline-block;
    float: none;
    text-align: left;
	width: 100%;
}

/* Corrects previous button display within a flow. */
.slds-button.slds-button_neutral.uiButton--default.uiButton{
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #162C45;
    transition: border .15s linear;
    background-color: #162C45;
    color: rgb(255, 255, 255);
}

/* Allows Address lightning component country picklist to behave correctly within a flow. */
.slds-scope .slds-form_compound .slds-form-element__group .slds-form-element__row{
	display: inherit;
}

/* Relocates the required asterisk on Lightning-wrapped components. */
.nu-lightning-wrapper .uiBlock .bBody .inputHeader .required{
	margin-right: auto;
	margin-left: auto;
}

/* Adds padding to radio button inputs within a flow. */
.flowruntimeRadioButtonInput .bBody .slds-form-element__control{
    padding-top: 25px;
}

/* Allows radio select component to occupy full width. Default is 33%. */
.nu-lightning-wrapper .slds-card .slds-form-element__control .slds-radio {
    width: 100%;
}

/* Adds a backgound color, border radius, and padding to the SLDS help text bubble. */
lightning-primitive-bubble:not(.slds-hide).slds-popover_tooltip {
    background-color: #162C45;
    border-radius: 0.5em;
    padding: 0.5em;
}

/* Sets the SLDS help text to use a white font color. */
.slds-popover__body {
    color: #FFFFFF;
}

/* Hides the help text icon for Lookup components since they they never go away once they appear.
They just pull in the Filter Criteria's message, which isn't necessarily helpful.
As of at least Winter '22, you cannot override or disable the help text in the screen flow. */
lightning-lookup lightning-helptext {
    display: none;
}

/* Hides the "Show All Results for" option in the dropdown for Lookup components, since
it doesn't work in Community Hub. */
lightning-base-combobox-item[data-value="actionAdvancedSearch"] {
    display: none !important;
}

/* Applies client's color to the primary flow button background. */
.nu-lightning-wrapper .slds-scope .slds-button_brand {
    background-color: #162C45;
}

/* Applies a shade of the client's color to the primary flow button upon hover. */
.nu-lightning-wrapper .slds-scope .slds-button_brand:hover {
    background-color: #162C45c7 !important;
    border-color: #162C45c7 !important;
}

/* Applies client's color to the secondary flow button text. */
.nu-lightning-wrapper .slds-scope .slds-button_neutral {
    color: #162C45;
}
