/*
=========================================================
BANNER CSS
=========================================================
 * Innehåller styling för puffar. Responsiva anpassningar
 * ligger i filerna smartphone/tablet.css.
 * 
 * Copyright (C) Limepark AB. Upprättad 2017.
=========================================================*/


/*
---------------------------------------------------------
DELADE REGLER
---------------------------------------------------------*/
.sv-portlet .lp-banner__title,
.sv-portlet .lp-banner__category,
.sv-portlet .lp-banner__primary-text {
  color: inherit;
  display: block;
  margin: 0 0 10px; /* sigh */
}

.sv-portlet .lp-banner__title:last-child,
.sv-portlet .lp-banner__category:last-child,
.sv-portlet .lp-banner__primary-text:last-child {
  margin: 0 0 0;
}

.sv-portlet .lp-banner__title:hover,
.sv-portlet .lp-banner__category:hover,
.sv-portlet .lp-banner__primary-text:hover,
.sv-portlet .lp-banner__title:focus,
.sv-portlet .lp-banner__category:focus,
.sv-portlet .lp-banner__primary-text:focus {
  color: inherit;
}

.sv-portlet .lp-banner__primary-text {
  line-height: 1.5em;
}

/*
---------------------------------------------------------
VANLIGA PUFFAR
---------------------------------------------------------*/
.lp-banner {
  background: #fff;
  display: table;
  max-height: 263px;
  table-layout: fixed;
  text-decoration: none;
  width: 100%;
}

.lp-banner .lp-banner__image-container {
  display: table-cell;
  overflow: hidden;
  padding-bottom: 47%;
  position: relative;
  vertical-align: middle;
  width: 47%;
}

.lp-banner .lp-banner__image {
  height: 100%;
  left: 50%;
  position: absolute;
  top: 0;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 100%;
  object-fit: cover;
}

.lp-banner .lp-banner__content {
  border: solid 1px #e5e7dc;
  box-sizing: border-box;
  display: table-cell;
  padding: 5px 20px;
  vertical-align: middle;
  width: 53%;
}

.lp-banner--small .lp-banner__content {
  padding: 20px;
}

.lp-banner--small .lp-banner__category {
  font-size: 1.2rem;
  line-height: 1.7rem;
}

.lp-banner .lp-banner__title {
  color: #07c;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.lp-banner.lp-banner--small .lp-banner__title {
  font-size: 1.4rem;
}

.lp-banner--text-only .lp-banner__content {
  padding-bottom: 30px;
  padding-top: 30px;
}

/*
---------------------------------------------------------
BILDPUFFAR
---------------------------------------------------------*/
.lp-image-banner {
  display: block;
  padding-bottom: 97%;
  position: relative;
  width: 100%;
}

.lp-image-banner--small {
  padding-bottom: 102.63%;
}

.lp-image-banner .lp-banner__image-container {
  height: 100%;
  overflow: hidden;
  position: absolute;
  width: 100%;
  z-index: 5;
}

.lp-image-banner .lp-banner__image-container:after {
  box-shadow: inset 0 -160px 80px 0 rgba(0, 0, 0, 0.5);
  content: ' ';
  display: block;
  height: 100%;
  position: absolute;
  transition: box-shadow 0.6s ease;
  width: 100%;
}

.lp-image-banner .lp-banner__image {
  height: 100%;
  left: 50%;
  position: absolute;
  top: 0;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 100%;
  object-fit: cover;
}

.lp-image-banner .lp-banner__content {
  bottom: 0;
  box-sizing: border-box;
  color: #fff;
  left: 0;
  padding: 40px 50px;
  position: absolute;
  width: 100%;
  z-index: 9;
}

.lp-image-banner .lp-banner__category {
  color: #4a90e2;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.6rem;
  margin-bottom: 0;
  text-transform: uppercase;
}

.lp-image-banner .lp-banner__title {
  font-size: 3.2rem;
  font-weight: bold;
  line-height: 1.19;
  margin-bottom: 15px;
}


/* Liten bildbanner */
.lp-image-banner--small .lp-banner__title {
  font-size: 2.4rem;
}

.lp-image-banner--small .lp-banner__content {
  padding: 30px;
}

.lp-image-banner--small .lp-banner__image-container:after {
  box-shadow: inset 0 -140px 60px 0 rgba(0, 0, 0, 0.5);
}



/* Bred bildpuff (oftast med knapp) */
.lp-image-banner--wide {
  padding-bottom: 47%;
}

.lp-image-banner--wide .lp-banner__image-container:after {
  box-shadow: inset 280px 1px 100px 0 rgba(0, 0, 0, 0.7);
}

.lp-image-banner--wide .lp-banner__image {
  height: auto;
  left: 0;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 100%;
}

.lp-image-banner--wide .lp-banner__content {
  bottom: auto;
  left: 0;
  padding: 30px 0 30px 40px;
  top: 0;
  width: 50%;
}

/*
---------------------------------------------------------
CTA puffar
---------------------------------------------------------*/
.lp-cta-banner {
  color: #fff;
  display: block;
  padding-bottom: 50%;
  position: relative;
  text-decoration: none;
  width: 100%;
}

.lp-cta-banner--large {
  display: table;
  padding-bottom: 0;
}

.lp-cta-banner:hover,
.lp-cta-banner:active {
  color: #fff;
}

.lp-cta-banner .lp-banner__image-container {
  height: 100%;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}

.lp-cta-banner .lp-banner__image-container:after {
  background-color: rgba(153, 193, 88, 0.8);
  content: ' ';
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
}

.lp-cta-banner .lp-banner__image {
  left: 0;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 100%;
}

.lp-cta-banner .lp-banner__content {
  box-sizing: border-box;
  display: block;
  height: 100%;
  left: 0;
  padding: 29px 45px;
  position: absolute;
  text-align: center;
  top: 0;
  width: 100%;
  z-index: 9;
}

.lp-cta-banner .lp-banner__title {
  font-size: 3.2rem;
  font-weight: bold;
  line-height: 1.29;
  margin-bottom: 9px;
}

.lp-cta-banner .lp-banner__text {
  font-size: 1.7rem;
  font-weight: bold;
  line-height: 1.29;
  margin-bottom: 9px;
}

.lp-cta-banner--large .lp-banner__content {
  box-sizing: initial;
  display: table-cell;
  left: auto;
  position: relative;
  top: auto;
}

.lp-cta-banner--large .lp-banner__title {
  margin-bottom: 40px;
}

.lp-cta-banner--large button {
  margin-left: 20px;
}

.lp-cta-banner--fundraising {
  height: 90px;
  padding-bottom: 0;
}

.lp-cta-banner--fundraising .lp-banner__content {
  padding-bottom: 25px;
  padding-top: 25px;
}

.lp-cta-banner--fundraising .lp-banner__title {
  float: left;
}

.lp-cta-banner--fundraising .lp-banner__text {
  float: right;
}

.lp-cta-banner--fundraising button {
  float: right;
}

/*
---------------------------------------------------------
COOKIE-CONSENT BANNER
---------------------------------------------------------*/

div > .sv-cookie-consent-banner {
  border: 1px solid #e1e2e2;
  bottom: 2rem;
  left: 2rem;
  max-width: 70rem;
  padding: 2rem 1rem;
  position: fixed;
  top: initial;
  width: calc(100% - 6rem);
}

.sv-cookie-consent-banner .env-text,
.sv-cookie-consent-modal .env-text {
  font-size: 1.6rem;
}

.sv-cookie-consent-banner h1.env-text-h4,
.sv-cookie-consent-modal h1.env-text-h4 {
  font-size: 4rem;
}

.sv-cookie-consent-modal h2.env-text-h5,
.sv-cookie-consent-banner h2.env-text-h5 {
  font-size: 3.2rem;
}

.sv-cookie-consent-modal h3.env-text-h6,
.sv-cookie-consent-banner h3.env-text-h6 {
  font-size: 2.6rem;
}

.sv-cookie-consent-modal .env-switch,
.sv-cookie-consent-banner .env-switch {
  font-size: 1.6rem;
}

.sv-cookie-consent-banner .env-switch__slider,
.sv-cookie-consent-modal .env-switch__slider {
  background-color: #dadada;
}

.sv-cookie-consent-banner button.env-button,
.sv-cookie-consent-banner a.env-button,
.sv-marketplace-sitevision-cookie-consent a.env-button,
.sv-cookie-consent-modal button.env-button,
.sv-cookie-consent-modal a.env-button {
  font-size: 1.6rem;
}
.sv-cookie-consent-banner button.env-button--ghost {
  background-color: var(--env-element-primary-background-color);
  border-color: var(--env-element-primary-background-color);
  color: var(--env-element-primary-font-color);
}

.sv-cookie-consent-banner button.env-button--ghost:hover {
  background-color: var(--env-element-primary-background-color-dark);
  border-color: var(--env-element-primary-background-color-dark);
  color: var(--env-element-primary-font-color);
}

.sv-cookie-consent-banner a.env-button {
  border-color: var(--env-element-primary-background-color-dark);
  color: var(--env-element-primary-font-color);
}

.sv-marketplace-sitevision-cookie-consent a.env-button {
  margin-bottom: 2rem;
}

.sv-cookie-consent-modal .env-flex--column,
.sv-cookie-consent-banner form .env-flex--column {
  margin-top: 2.5rem;
}
