@plan-panel-group-height-desktop: 460px;
@plan-panel-group-height-mobile: 300px;
@plan-actions-button-width: 300px;
@plan-actions-save-container-height: 46px;
@plan-action-save-animation-duration: 0.3s;
.plan-paym {
  .container {
    margin-top: 0;
    margin-bottom: 0;
  }
  .customPlanContainer {
    margin-top: 0;
    margin-bottom: 0;
    &:extend(.container);
    @media @desktop {
      padding: 0 240px;
    }
  }
  h1, h2, h3, h4, h5 {
    margin:0;
    color: @gray-darker;
  }
  ul {
    padding: 0;
    list-style-type: none;
  }
  .panel {
    margin: -1px;
    position: relative;
    .box-shadow(none);
    .panel-body {
      padding: @vertical-margin;
    }
  }
  /******** PLAN HEADER AREA *********/
  .header {

    @media @phone {
      padding-top:@vertical-margin;
    }
    width: 100%;
    &__title{
      text-align: center;
      @media @phone{
        display:inline-block;
        text-align: left;
        width:60%;
        margin:0;
      }
      p{
        margin-top:@vertical-margin/2;
        color:@brand-primary;
        @media @phone{
          margin-top:4px;
        }
      }
    }
    &__priceContainer{
      //only visible in mobile
      margin:0;
      width: 40%;
      text-align: right;
      float:right;
      h1{
         font-family: @font-family-sans-serif;
      }
    }
    &__notEligible{
      color:@brand-info;
      font-weight: 600;
      a {
        font-weight: 400;
        display:inline-block;
      }
    }
    .page-bg-gradient;
    .areaForBottomPanel {
      margin-top: @vertical-margin;
      width: 100%;
      height: @plan-panel-group-height-desktop/2;
    }

  }
  /******** PLAN INFO AREA *********/
  .planInfo {
    width: 100%;
    background: @page-top-background;
    &__panels {
      margin-top: -@plan-panel-group-height-desktop/2;
      margin-bottom: 10px;
      height: 100%;
      width: 100%;
      position: relative;
      &:before {
        content: "";
        display: block;
        height: 101%;
        width: 99%;
        top: 0.5%;
        right: 0.5%;
        position: absolute;
        border-radius: @border-radius-base;
        .box-shadow(0px 0px 15px 8px rgba(67, 134, 179, 0.15));
        background: @back-panel-color;
      }
    }
    .panelHighlights {
      color: white;
      background-image: url("../common/images/bg-leaf.png");
      z-index: 1;
      &:before {
        content: "";
        height: 100%;
        position: absolute;
        border-radius: @border-radius-base;
        top: 0;
        left: 0;
        right: 0;
        #gradient.horizontal(fadeout(@primary-gradient-start, 10%), fadeout(@primary-gradient-end, 10%));
      }
      @media @phone {
        margin-top: -@plan-panel-group-height-mobile/2;
      }
      .panel-body {
        position: relative;
      }
      ul {
        display: inline-block;
        font-size: @font-size-h5;
        line-height: 1.6;
      }
      &__priceContainer {
        float: right;
        padding: 10px;
        h1 {
          font-family: @font-family-sans-serif;
          color: white;
          font-size: @font-size-big;
          line-height: 0.7;
          span {
            font-size: @font-size-small;
          }
        }
        hr {
          margin: 5px;
          opacity: 0.4;
          border-top: 1px solid;
        }
        p {
          line-height: 0.4;
          font-weight: 600;
        }
      }
    }
    .panelDetails {
      h4, i {
        color: @brand-primary;
      }
      h4 {
        margin-bottom: @vertical-margin;
      }
      ul {
        font-size: @font-size-h6;
        line-height: 1.8;
      }
    }
    .panelFuelInfo {
      border-top: 1px dashed @gray-light;
      .panel-group {
        margin-bottom: 0;
      }
      .panel .panel-heading {
        border-top: 1px dashed @gray-light;
        cursor: pointer;
        &:before {
          content: none;
        }
      }
      @media @phone {
        .panel-body{
          display: flex;
          flex-direction: column;
          align-items: center;
        }
      }
      &__gas {
        .fuelContent;
        float: right;
        .title, a {
          color: @gas-color;
        }
        @media @phone{
          margin-top:@vertical-margin;
          float:none;
        }
      }
      &__electricity {
        .fuelContent;
        .title, a {
          color: @electricity-color;
        }
      }
    }
    &__callToActionContainer {
      padding: 50px @vertical-margin;
      &--error {
        padding-bottom: 95px;
      }
      .switchButton,
      .saveEmailButton {
        width: 300px;
      }
      .saveActionContainer {
        .input-group {
          width: @plan-actions-button-width;
        }
      }
      .saveActionContainer {
        width: @plan-actions-button-width;
      }
    }
  }
  /******** AWARDS  AREA *********/
  .awardsArea {
    text-align: center;
    .gradient(#dee8f1 0%, @page-top-background 100%, left);
    padding: 36px 0;
    h3 {
      margin-bottom: @vertical-margin;
    }
    &__container {
      .flex-display();
      .justify-content(space-around);
      .awardImage img {
        width: 80%;
      }
    }
    &__trustPilot {
      margin-top: @vertical-margin;
       color: @gray-dark;
      p, a, img {
        margin:0;
        vertical-align: bottom;
        display: inline-block;
      }
      img{
        height: 26px;
        width: auto;
        @media @phone{
          height: 24px;
        }
      }
      a{
        margin-bottom:1px;
      }
    }
  }
  /******** OVO ONLINE AREA *********/
  .ovoOnline {
    background: @page-top-background;
    padding: @vertical-margin;
    @media @phone {
      padding: @vertical-margin 10px;
    }
    &__container {
      .flex-display();
      .justify-content(space-around);
      align-items: center;
    }
    img {
      max-width: 430px;
      @media @phone {
        max-width: 300px;
        margin-left: -135px;
      }
    }
    &__content {
      display: inline-block;
      width: 370px;
      @media @phone {
        width: auto;
      }
    }
    &__title {
      position: relative;
      .sideHighlight();
      @media @phone {
        text-align: center;
        padding: 0;
        h4 {
          margin-bottom: @vertical-margin;
        }
        &:before {
          content: none;
        }
      }
    }
    ul {
      margin-top: @vertical-margin;
      padding-left: @side-highlight-padding-left;
      display: inline-block;
      @media @phone {
        padding-left: 10px;
        margin: 0;
        list-style-type: disc;
      }
    }
    &__faqTitle {
      color:red;
      h4 {
        text-align: center;
        margin-bottom:@vertical-margin;
      }
    }
  }
  //**** COMMON CLASSES *****
  .fuelContent {
    display: inline-block;
    text-align: left;
    .title {
      font-weight: 600;
    }
    a {
      font-size: @font-size-small;
    }
    p {
      margin: 0;
    }
  }
}
.planInfo__callToActionContainer {
  text-align: center;
  .flex-display();
  .flex-direction(column-reverse);
  .justify-content(space-around);
  align-items: center;
  &--error {
    padding-bottom: 95px;
  }
  .getActionContainer {
    margin-bottom: @vertical-margin;
  }
  .saveActionContainer {
    position: relative;
    height: @plan-actions-save-container-height;
    width: 100%;
    .animateSaveAction {
      position: absolute;
      top: 0;
      left: 0;
      &.ng-leave {
        .transition(all @plan-action-save-animation-duration cubic-bezier(0.61, 0.01, 0.98, 1));
        .transform(rotateX(0deg));
        &.ng-leave-active {
          .transform(rotateX(90deg));
        }
      }
      &.ng-enter {
        visibility: hidden;
        .transition(all @plan-action-save-animation-duration cubic-bezier(0, 0, 0.13, 0.97));
        .transform(rotateX(90deg));
        &.ng-enter-active {
          transition-delay: @plan-action-save-animation-duration;
          visibility: visible;
          .transform(rotateX(0deg));
        }
      }
      .email-input-hidden {
        margin-top: -@font-size-small;
        font-size: @font-size-small;
        opacity: 0;
        .transition(all 0.5s cubic-bezier(0.07, 0.81, 0.55, 1.42) @plan-action-save-animation-duration+@plan-action-save-animation-duration/2);
      }
      .email-input-visible {
        margin-top: 0;
        opacity: 1;
      }
    }
    .load-button-btn {
      width: auto;
    }
    .form-group {
      margin-bottom: 0;
    }
  }
}

// EV STYLING
.ev-plan-bundle {
  color: white;

  .bundle-main,
  .bundle-bolton {
    padding: 30px;
  }

  .bundle-price {

    &-currency {
      font-size: 35px;
    }

    &-cost {
      font-size: 60px;
      line-height: 1;
    }

    &-period {
      display: block;
      font-size: 25px;
      line-height: 1;
      margin-bottom: 20px;
    }

  }


  .bundle-main {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    position: relative;
    margin-bottom: 0;
    padding-left: 120px;
    color: white;
    padding-bottom: 49px;
    background-color: @ev;
    background-image: url('bg-ev.png');

    &:before {
      content: "";
      position: absolute;
      width: 65px;
      height: 65px;
      left: 30px;
      top: 30px;
      background-repeat: no-repeat;
      background-size: 100%;
      background-position: center;
      background-image: url('../common/images/icon-ev.svg');
    }


    @media @phone {
      padding-left: 80px;

      &:before {
        width: 35px;
        height: 35px;
        top: 41px;
      }

    }

    li i {
      padding-right: 10px;
    }

    &-title {
      margin-bottom: 0;
      margin-top: 8px;
      padding: 0;
    }
    &-subtitle {
      margin-bottom: 20px;
      margin-top:0;
      padding: 0;
      opacity: 0.5;
    }

    ul {
      padding-left: 0;
    }

    li {
      list-style-type: none;
      margin-bottom: 20px;
    }

  }

  .bundle-includes {
    text-align: center;

    &-header {
      font-size: 18px;
      padding: 10px 30px;
      background-color: rgba(255, 255, 255, 0.2);
      margin-top: -49px;
      z-index: 1;
      position: relative;
      border-radius: 0;

      span {
        font-weight: bold;
      }

    }

    .bolton-row {
      width: 100%;
      .col-sm-6 {
        padding: 0;
        margin: 0;
      }
    }
  }

  .bundle-bolton {
      display: -webkit-flex;
      display: flex;
      -webkit-align-items: center;
      align-items: center;
      -webkit-flex-wrap: wrap;
      flex-wrap: wrap;
      height: 100%;

      &-title,
      &-description {
          width: 100%;
      }

      &-title {
        padding-top: 60px;
        position: relative;
        font-size: 22px;
        width: 100%;

        &:before {
        content: "";
          position: absolute;
          left: 50%;
          top: 0;
          transform: translateX(-50%);
          background-repeat: no-repeat;
          background-size: 100%;
          background-position: center;
        }

      }

      &-green {
          .bg-primary;

          .bundle-bolton-title {

            &:before {
                width: 43px;
                height: 55px;
                background-image: url("../common/images/icon-green.svg");
            }

          }

      }

      &-chargemaster {
        background-color: @chargemaster;

        .bundle-bolton-title {

          &:before {
            width: 120px;
            height: 37px;
            top: 12px;
            background-image: url("../common/images/icon-polarplus.svg");
          }

        }

      }

   }

  .bolton-free {
    display: block;
    color: @brand-primary;

    &-price {
      display: inline-block;
      position: relative;

      &:before {
        content: "";
        width: 160%;
        left: -30%;
        top: 50%;
        position: absolute;
        border-bottom: 2px solid @gray-light;
        transform: rotate(-10deg) translateY(-50%);
      }
    }

  }

  .bundle-bolton-list {

    li {
      margin-bottom: 20px;
    }

  }

  .gas-electricity {
    margin-bottom: 20px;
  }

  .no-online-discount {

    .onlineDiscount-bundle-benefit {
      display: none;
    }

  }

}

// TARIFF COMPARISON
.visible-xs-ib {
  display: none;

  @media @phone {
    display: inline-block;
  }

}

.comparison-table {
  margin-top: 40px;

  @media @tablet-min {
    display: -webkit-flex;
    display: flex;
  }

}

.comparison-parameters-cell,
.comparison-includes li {

  @media @tablet-min {
    padding: 15px 0;
  }

  &.large-cell {

    @media @tablet-min {
      padding: 28px 0;
    }

  }

  &.larger-cell {
      padding: 35px 0 34px;

      .dual & {
        padding: 26px 0;
      }
  }

}

.comparison-parameters {
    background: -webkit-linear-gradient(top,#fff 0,#e2e5f4 100%);
    background: -moz-linear-gradient(top,#fff 0,#e2e5f4 100%);
    background: -ms-linear-gradient(top,#fff 0,#e2e5f4 100%);
    background: -o-linear-gradient(top,#fff 0,#e2e5f4 100%);
    background: linear-gradient(top,#fff 0,#e2e5f4 100%);
    margin-bottom: 0;
    height: auto;
    align-self: flex-end;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.comparison-includes {
  margin-bottom: 0;
}

.comparison-includes-til {
  .tiny;

  @media @phone {
    margin-top: 20px;
  }

  p {
    margin-bottom: 0;
  }

  a {
    display: inline-block;
    margin-right: 10px;

    + a {
      padding-left: 12px;
      border-left: 1px solid @brand-primary;
    }

    @media @tablet-min {
      display: block;
      margin-right: 0;

      + a {
        padding: 0;
        border: none;
      }

    }

  }

}

.comparison-tariff {
  margin-bottom: 0;
  text-align: center;

  @media @phone {
    background: #F6F8FC;
    text-align: left;

    .panel-body {
      padding-top: 0;
    }

  }

  @media @tablet-min {
    height: 100%;
    border-radius: 0;
    width: 25%;
    border-right: none;
    border-left: none;

    .panel-heading {
      border-radius: 0;
      background-repeat: no-repeat;
      background-position: left -100px center;
      background-image: url('../common/images/bg-leaf.png');
      background-size: cover;
      position: relative;

      &:before {
        content: "";
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background-image: -webkit-linear-gradient(left, rgba(121, 186, 16, 0.9) 0%, rgba(36, 145, 29, 0.9) 100%);
        background-image: -o-linear-gradient(left, rgba(121, 186, 16, 0.9) 0%, rgba(36, 145, 29, 0.9) 100%);
        background-image: linear-gradient(to right, rgba(121, 186, 16, 0.9) 0%, rgba(36, 145, 29, 0.9) 100%);
        background-repeat: repeat-x;
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e679ba10', endColorstr='#e624911d', GradientType=1)
      }

    }

    &.comparison-tariff-two-year {
      border-top-left-radius: @border-radius-base;

      .panel-heading {
        border-top-left-radius: @border-radius-base;
        background-position: left -440px center;

        &:before {
          border-top-left-radius: @border-radius-base;
        }

      }

    }

    &:last-of-type {
      border-top-right-radius: @border-radius-base;
      border-bottom-right-radius: @border-radius-base;

      .panel-heading {
        border-top-right-radius: @border-radius-base;

        &:before {
          border-top-right-radius: @border-radius-base;
        }

      }

    }

  }

  .panel-heading {

    @media @phone {
      background: none;
    }

    @media @tablet-min {
      color: white;
    }

  }

  &-title {
    margin: 0;
    font-size: 19px;

    @media @phone {
      text-align: left;
      margin-bottom: 20px;
    }

    @media @desktop {
      margin-bottom: 10px;
      font-size: 21px;
    }

  }

  &-cost {

    @media @phone {
      text-align: right;
    }

  }

  &-price {
    font-size: 30px;
    line-height: 1;

    @media @tablet-min {
      .h1;
    }

  }

  &-currency {
    line-height: 1;
    font-size: 20px;
    font-weight: bold;
  }

  &-timeframe {
    display: block;
    line-height: 1;

    @media @phone {
      font-size: 12px;
    }

  }

  &-focus {

    @media @phone {
      margin: -10px;
      z-index: 2;
      color: white;
      background-image: url('bg-ev.png');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;

      .panel-heading {
        color: white;
      }

      .comparison-includes-til a {
        color: white;

        + a {
          border-left-color: white;
        }

      }

    }

    @media @tablet-min {

      .panel-heading {
        background-image: url('bg-ev.png');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;

        &:before {
          display: none;
        }

      }

    }

    .obs-icon-check {
      color: @brand-info;
    }

  }

  .obs-icon-check {
    color: @gray-light;

    @media @tablet-min {
      color: @brand-info;
    }

  }

}