/* SABES Canvas Catalog test theme.
   Use this in https://sabes.test.catalog.instructure.com while testing
   Catalog self-registration and Custom User Fields.
*/

/* General styling */
.feature-region {
  background-color: #673695;
  min-height: 15px;
  background-image: none;
}

#app-footer {
  display: none;
}

/* Creating a custom sorting of the category dropdown menu filter. */
.moved-item {
  font-weight: bold;
  color: red;
}

.header-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.header-branding h1 a {
  display: block;
  height: 80px !important;
}

.header-text {
  margin-top: 10px;
  font-size: 26px;
  color: #673695;
  font-weight: bold;
}

.responsive-header {
  display: none;
  width: 275px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .header-branding h1 a {
    display: block;
    height: auto;
  }

  .header-branding {
    display: none;
  }

  .responsive-header {
    display: block;
  }

  .responsive-header-text {
    display: block;
    text-align: center;
    font-size: 22px;
    color: #673695;
    margin: 30px 10px 10px;
  }
}

@media (min-width: 769px) {
  .responsive-header-text {
    display: none;
  }
}

/* Course card styling */
.product-flag-free {
  background-color: green;
}

.ProductIcon__LargeCircle--course {
  background: green;
}

.product-tile .product-footer {
  color: #673695;
}

/* Button outlines */
.btn:focus,
.Form__RadioInput--hidden:focus + .Form__RadioOption--checked .Form__RadioLabel::before,
.Form__RadioWrapper input[type="radio"]:checked + span:focus,
#search-form .search-refine .search-refine__switches .btn-lg:focus,
#search-form .search-refine .search-refine__switches .btn-group-lg > .btn:focus {
  outline-style: solid;
  outline-color: #673695;
}

/* Username link color */
.btn-link {
  color: #673695;
}

/* Checkout header styling */
#checkout-header {
  background-color: green !important;
  color: white !important;
}

#checkout-header > div {
  background-color: green !important;
}

/* Course page text */
.product-details {
  font-size: 18px;
}

/* Hide refine button. Keep this if SABES still wants Topic Area controls simplified. */
#search-refine-button--refine {
  display: none;
}

/* Menu canvas styling */
#menuCanvas {
  display: block;
  margin-top: 10px;
  margin-left: 10px;
}

/* Show Catalog enrollment without restoring shopping-cart controls. */
.hero-action,
#enroll-hero,
#enroll-footer,
.product-enroll-button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#enroll-hero .btn,
#enroll-footer .btn,
[data-customizationid="enroll-button"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Preserve SABES's hidden cart and bulk-checkout controls. */
#add-to-cart-hero,
#add-to-cart-footer,
#bulk-checkout-divider-hero,
#bulk-checkout-divider-footer,
#add-to-bulk-checkout-hero,
#add-to-bulk-checkout-footer,
#cart,
.cart-button,
[data-customizationid="add-remove-cart-button"],
[data-customizationid="cart-button"],
[data-customizationid="cart-tray"] {
  display: none !important;
}

/* Ensuring visibility of menu bar and filter layout columns */
#header-menu,
.container .row .col-xs-12,
.container .row .col-sm-6,
.container .row .col-md-5 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Align user-nav and accountDropdown to the right of the header-menu */
#header-menu {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

#user-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

#user-nav a,
#accountDropdown {
  margin-left: auto;
}

/* Keep the registration page's main area as tall as its form. Catalog's
   flex layout can otherwise shrink #main to the viewport height. */
body.sabes-checkout-page #main.registration-page {
  height: auto !important;
  flex-shrink: 0;
}

/* Bottom area.
   This is intentionally NOT fixed, so it cannot cover registration fields or buttons.
   The JS places it after the rendered Catalog page content. */
.sabes-bottom-stack {
  position: relative;
  z-index: 1;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 40px;
  background: white;
  clear: both;
}

body:not(.sabes-checkout-page) .sabes-bottom-stack {
  margin-top: 0;
}

/* Feedback band directly above the footer. */
.feedback-container {
  width: 100%;
  margin: 0 !important;
  padding: 20px 10px;
  background-color: #f0f0f0;
  color: #673695;
  text-align: center;
  font-size: 14px;
  box-sizing: border-box;
}

.feedback-container p {
  margin: 0 0 14px;
}

.feedback-container p:last-child {
  margin-bottom: 0;
}

.feedback-container a {
  color: #0071bc;
}

.feedback-text {
  font-size: 20px;
  line-height: 39px;
  letter-spacing: 0;
  font-weight: 300 !important;
  padding-top: 15px;
}

/* SABES footer directly below the feedback band. */
#footer {
  width: 100%;
  margin: 0 !important;
  padding: 20px 10px 15px;
  background-color: white;
  color: black;
  text-align: center;
  box-sizing: border-box;
  box-shadow: none;
  clear: both;
}

#footer .icon {
  width: auto;
  height: 50px;
  margin: 0 10px;
}

#footer .text-container {
  display: inline-block;
  vertical-align: top;
  color: black;
  width: calc(50% - 40px);
  margin-right: 20px;
  padding-left: 10px;
}

#footer .text {
  font-size: 11px;
  padding-top: 10px;
}

@media (max-width: 768px) {
  #footer {
    padding: 14px 10px;
  }

  #footer .icon {
    height: 42px;
    margin: 0 6px 8px;
  }

  #footer .text-container {
    display: block;
    width: 100%;
    margin: 0;
    padding-left: 0;
  }
}

/* Styling for the new general button */
.catalog-button {
  background-color: #46bc23 !important;
  color: black !important;
  font-weight: bold !important;
  border: 1px solid;
  position: relative !important;
  z-index: 9999 !important;
  padding: 5px 10px !important;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
}

.catalog-button:hover,
.catalog-button a:hover {
  background: #eefce9 !important;
  color: black !important;
  border: 1px solid;
  font-weight: bold !important;
}

.Centered {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.paddingbottom {
  padding-bottom: 20px;
}

.footerdivider {
  font-size: 18px;
  color: black;
}

/* Hide the first paragraph in course pages, usually Self-Paced. */
body.course-page div.col-md-6 p:nth-of-type(1) {
  display: none;
}

div#description h2.sr-only {
  width: auto;
  height: auto;
  position: relative;
  margin: 5px 0;
  font-size: 1.4rem;
}

/* Replace Topic Area label */
.search-refine-button__text {
  visibility: hidden;
  position: relative;
}

.search-refine-button__text::after {
  content: "Topic Area";
  visibility: visible;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* Hide Self-Paced labels in Catalog listing summaries. */
span.product-dates,
div.product-dates {
  display: none !important;
}


/* Hide enrollment notice: Sorry! The enrollment period is currently closed. Please check back soon. */

.ProductEnrollment__Notice {
  display: none !important;
}


/* Hide Catalog homepage Filter by and Sort by controls. */
#search-form .search-refine .search-refine__switches {
  display: none !important;
}
