div#PBFPopup {
  max-width: unset;
  border-bottom: 1px solid #e8eae9;
  border-top: 1px solid #e8eae9;
  margin: 30px 0;
  padding: 5px 0 10px;
  color: #223626;

  img,
  .pbf-representative-example {
    display: none;
  }

  .pbf-finance-widget {
    align-items: baseline;
    margin-bottom: 0;

    .pbf-finance-widget-button {
      border: none;
      padding: 0;

      span {
        color: #223626;
        text-transform: initial;
        text-decoration: underline;
      }

      svg {
        display: none;
      }

      &:hover {
        border: none;
        background: transparent;

        span {
          color: #223626;
          text-decoration: none;
        }
      }

      @media screen and (max-width: 1024px) {
        margin: 10px auto 0;
      }

      @media screen and (max-width: 500px) {
        margin: 10px auto;
      }

      @media screen and (min-width: 1024px) {
        min-width: 198px;
      }
    }

    .pbf-finance-widget-text {
      color: #213626;

      &::before {
        content: "";
        display: block;
        width: 46px;
        height: 10px;
        margin-bottom: 10px;
        margin-top: 7px;
        background: url("//jorviktricycles.com/cdn/shop/t/34/assets/novuna-purple.png?v=50321360119388019851759736192") no-repeat center center;
        background-size: contain;

        @media screen and (max-width: 1024px) {
          margin: 10px auto;
        }
      }

      @media screen and (max-width: 1024px) {
        padding-right: 0;
        text-align: center;
      }

      .pbf-finance-widget-text-amount {
        font-weight: 600;
        color: #213626;
      }
    }

    @media screen and (max-width: 1024px) {
      display: block;
    }
  }

  &.pbf-cart-widget {
    border-bottom: none;
    border-top: none;
    .pbf-finance-widget-calculator {
      position: static !important;
      max-width: 100%;
      width: 100%;
      .pbf-bottom-actions {
        display: block;
        margin-top: 40px;
      }
    }
  }
  .pbf-finance-widget-calculator {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    max-width: 90%;
    padding: 50px 28px;
    background: #f3f4f4;
    z-index: 3000;

    @media screen and (min-width: 768px) {
      width: 50%;
      max-width: 600px;
    }
  }

  fieldset p .variable-data,
  .pbf-popup-heading h2 #pbf-financeable-value,
  h3,
  fieldset legend {
    font-weight: 600;
    color: #213626;
  }

  fieldset p .variable-data #pbf-term {
    font-weight: 400;
  }

  .pbf-widget-radio-toggle input+label>span span {
    font-weight: 600;
  }

  .pbf-summary table td,
  fieldset p {
    color: #213626;
    font-weight: 400;
  }

  .pbf-summary table td {
    padding-bottom: 10px;
  }
  .pbf-summary {
    .pbf-summary-terms {
      color: #213626;
    }
  }

  fieldset {
    margin: 28px 0;
    #pbf-termMessage {
      margin-bottom: 1.4em;
    }
  }

  h3 {
    margin-bottom: 20px;
  }

  .pbf-fieldset-finance .pbf-widget-radio-toggle {
    justify-content: space-between;
    input + label {
      margin: 0;
      width: 48%;
    }
  }

  .pbf-widget-radio-toggle {
    gap: 2%;
    input:checked + label {
      background: #213626;
      color: white;
    }
    input + label {
      border: 1px solid #213626;
      color: black;
      margin: 0 0 10px 0;

      &:hover {
        background: #213626;
        border: 1px solid #213626;
      }
    }
  }

  input[type=radio] + label > span {
    padding-left: 0;
  }

  .pbf-slider-marker-horizontal.pbf-slider-marker-large,
  .pbf-slider-wrapper .pbf-slider-handle,
  .pbf-widget-radio-toggle input:checked + label,
  .pbf-slider-tooltip {
    background: #213626;
  }

  .pbf-slider-wrapper {
    margin-top: 28px;

    .pbf-slider-target {
      background: #fff;
    }
  }

  .pbf-model-content#pbfDepositBlock::before {
    content: "";
    display: block;
    width: 160px;
    height: 35px;
    margin-bottom: 28px;
    background: url("//jorviktricycles.com/cdn/shop/t/34/assets/novuna-purple.png?v=50321360119388019851759736192") no-repeat center center;
    background-size: contain;
  }

  .pbf-bottom-actions {
    display: none;
  }

  /* Responsive */
  @media screen and (max-width: 1024px) {
    .pbf-finance-widget .pbf-finance-widget-button {
      margin: 10px auto 0;
    }

    .pbf-finance-widget .pbf-finance-widget-text {
      padding-right: 0;
      text-align: center;

      &::before {
        margin: 10px auto;
      }
    }
  }

  @media screen and (max-width: 767px) {
    margin-bottom: 10px;
    .pbf-popup-heading {
      display: none;
    }
    .pbf-finance-widget-calculator {
      padding: 30px 28px;
      overflow-x: scroll;
      &:before {
        top: 30px;
      }
    }
    .pbf-model-content#pbfDepositBlock::before {
      width: 130px;
      height: 29px;
    }
    fieldset {
      margin: 14px 0;
    }
    .pbf-fieldset-finance .pbf-widget-radio-toggle input+label {
      height: 45px;
    }
    .pbf-widget-radio-toggle {
      justify-content: center;
      input+label {
        padding: 10px 13px 11px;
      }
    }
  }

  @media screen and (max-width: 500px) {
    .pbf-finance-widget .pbf-finance-widget-button {
      margin: 10px auto;
    }
  }

  @media screen and (min-width: 1024px) {
    .pbf-finance-widget .pbf-finance-widget-button {
      min-width: auto;
    }
  }
}

.pbf-finance-widget-calculator {
  position: relative;

  &::before {
    content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M1.97803 1.53229L13.9997 13.554' stroke='%23213626' stroke-width='3' stroke-linecap='round'/><path d='M13.9995 1.53229L1.97784 13.554' stroke='%23213626' stroke-width='3' stroke-linecap='round'/></svg>");
    color: #666;
    cursor: pointer;
    position: absolute;
    top: 50px;
    right: 28px;
    z-index: 3000;
  }
}

.pbf-fieldset-living-uk,
input[type=radio] + label > span:before {
  display: none !important;
}

.pbf-slider-tooltip {
  background: #223626;
}
