  /* Mobile Screen Styles */

@media only screen and (max-width:768px){

  .accordion-wrapper {
    max-width: 336px;
    margin: 0 auto;
  }


/* Setting colour and fonts variables */
  :root{
    --black: #000;
    --white: #fff;
    --grey: #F2F2F3;
    --border-grey: #F0F2F0;
    --primary-font: 'Lato', sans-serif;
    --text-grey: #7E7D7F;
    --text-grey-2: #545454;
    }

 /* Default Styles */

  header{
    background-color: var(--black);
    height: 12vh;  /* Must match the header height */    
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Header Images */
  .recap-logo img{
      max-height: 28px;
      max-width: 100%;
      display: block;
    }

  .footer-content{
    width: auto;
    text-align: center;
    color: var(--text-grey-2);
  }
  
  footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    font-size: 90%;
    font-family: var(--primary-font);
    text-align: center;
    height: 12vh;  /* Must match the header height */
  }

  body{
    border: 0;
    font-size: 100%;
    font-family: var(--primary-font);
    margin: 0;
    padding: 0;
    line-height: normal;
    overflow-x: hidden; /* Stops screen moving when dragging the sliders */
    min-height: 100vh;
    color:var(--text-blue);
  }

  .default-container-wrapper {
    display: flex;
    flex-direction: column; 
    flex-wrap: wrap;
    align-items: center; 
    min-height: 72vh;
    background: var(--offwhite);
    padding: 3vh; 
    margin: 0 auto; 
    align-content: center;
    text-align: center;
    overflow-x: hidden;
  }

  h1{
    font-size: 18px;
    font-family: var(--primary-font);
    line-height: normal;
  }

  h2{
    font-size: 17px;
    font-family: var(--primary-font);
    line-height: normal;
  }

  h3{
    font-size: 16px;
    font-family: var(--primary-font);
    line-height: normal;
  }

  p{
    font-size: 14px;
    font-family: var(--primary-font);
    margin: 5px;
    line-height: normal;
  }

  .grey-box{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--grey);
    min-width: 300px;
    height: 60px;
    border-radius: 5px;
    margin: 20px 0;
  }

  .user-icon img{
    max-width: 120px;
    max-height: 120px;
    margin: 44px 0px 44px 0px;
  }
  #bank-details{
    margin-bottom: 0;
  }

  .bank-info-text{
    color: var(--text-grey);
    font-style: italic;
    text-align: left;
    width: 100%;
    display: block;
    max-width: 336px;
    padding: 10px 0px;
}
  .form-item{
    display: flex;
    width: 300px;
    flex-direction: column;
    text-align: left;
    padding: 20px;
    align-items: center;
  }

  .accordion-row{
      display: flex;
      padding: 5px;
  }
  img.accordion-row{
    height: 48px;
    width: 21px;
  }

  /* Rotate icon when open */
  .accordion-header.open .accordion-icon {
    transform: rotate(180deg);
    max-height: 500px; 
  }

  .accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background-color: var(--grey);
    font-weight: 600;
    border-bottom: 1px solid var(--border-grey);
  }

  .accordion-box {
    border-radius: 8px;
    background-color: white;
    overflow: hidden;
    transition: border 0.2s;
    margin: 20px 0;
  }

  .accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    text-align: left;
  }
  
  .accordion-content.open {
    border: 1px solid var(--border-grey); /* Show border only when open */
    border-radius: 0 0 8px 8px; /* Rounded bottom corners */
  }
  

  .icon-and-header{
    display: flex; /* Bank Icon placed next to text */
  }

  img.bank-icon{
    padding:2px; /* Add space to bank icon next to bank details heading */
  }

  input[type='text'],
  input[type='email']{
    font-size: 14px; /* Must match p size */
    border: 1px solid var(--grey);
    border-radius: 5px;
    text-align: right;
    height: 32px;
    padding: 0px 10px;
  }

  .form-text{
    display: flex;
    justify-content: space-between;
    height: 32px;
    align-items: center;
    padding: 10px 0px;
  }

  label{
    font-size: 14px; /* Must match p size */
    color: var(--text-grey);
    font-weight: 500;
  }

  button{
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    height: 60px;
    background-color: var(--black);
    color: var(--white);
    margin: 34px 0px;
    width: 100%;
  }

  .bank-search-container{
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .bank-list {
      position: absolute;
      background-color: white;
      border: 1px solid #ccc;
      border-radius: 6px;
      max-height: 250px;
      overflow-y: auto;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      display: none;
      z-index: 10000;
  }

  .bank-list.show {
    display: block;
    max-height: 150px;
  }

  .bank-item {
      display: flex;
      align-items: center;
      padding: 10px;
      gap: 10px;
      cursor: pointer;
  }

  .bank-item:hover {
      background-color: #f2f2f2;
  }

  .bank-item img {
      width: 24px;
      height: 24px;
  }

  .bank-item span {
      font-weight: 500;
      text-align: left;
  }

  #empty-state {
      position: absolute;
      background: white;
      padding: 8px;
      border: 1px solid #ccc;
      display: none;
      z-index: 10001;
  }
    #bank-error{
    display:none; 
    color: red; 
    margin-top: 5px;
    font-size: 12px;
  }

  /* Hide utility */
  .hidden {
    display: none;
  }

  .bank-item.selected {
    border: 2px solid var(--text-grey);
    background-color: #f0f8ff;
    border-radius: 8px;
  }

  .success-text{
    padding: 10px;
  }

  .success-text2 p{
    padding: 10px;
  }
  .success-text a{
    color: var(--black);
  }  

  /* Success Screen Styles */
  .sub-text{
    background-color: rgba(0,0,0,0.1);
    border: 1px solid var(--black);
    border-radius: 5px;
    text-align: left;
    padding: 10px;
    color: var(--text-grey);
    margin-top: 30px;
  }
}

  /* Laptop size, Desktop size */
  @media only screen and (min-width: 769px) {

/* Setting colour and fonts variables */
  :root{
    --black: #000;
    --white: #fff;
    --grey: #F2F2F3;
    --border-grey: #F0F2F0;
    --primary-font: 'Lato', sans-serif;
    --text-grey: #7E7D7F;
    --text-grey-2: #545454;
    --text-grey-3: #B7B8B8;
    }

 /* Default Styles */

  header{
    background-color: var(--black);
    height: 12vh;  /* Must match the header height */    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Header Images */
  .recap-logo img{
      max-height: 28px;
      max-width: 100%;
      display: block;
    }

  .footer-content{
    width: auto;
    text-align: center;
    color: var(--text-grey-2);
  }
  
  footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    font-size: 90%;
    font-family: var(--primary-font);
    text-align: center;
    height: 12vh;  /* Must match the header height */
  }

  body{
    border: 0;
    font-size: 100%;
    font-family: var(--primary-font);
    margin: 0;
    padding: 0;
    line-height: normal;
    overflow-x: hidden; /* Stops screen moving when dragging the sliders */
    min-height: 100vh;
    color:var(--text-blue);
    line-height:1.4;
  }

  .default-container-wrapper {
    display: flex;
    flex-direction: column; 
    flex-wrap: wrap;
    align-items: center; 
    min-height: 72vh; /* 18vh (header+footer) - 6vh (wrapper margin) */
    background: var(--offwhite);
    padding: 3vh; 
    margin: 0 auto; 
    align-content: center;
    text-align: center;
    overflow-x: hidden;
  }

  h1{
    font-size: 18px;
    font-family: var(--primary-font);
    line-height: normal;
  }

  h2{
    font-size: 17px;
    font-family: var(--primary-font);
    line-height: normal;
  }

  h3{
    font-size: 16px;
    font-family: var(--primary-font);
    line-height: normal;
  }

  p{
    font-size: 16px;
    font-family: var(--primary-font);
    margin: 5px;
    line-height: normal;
  }

  /* Header styles */
    .grey-box {
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: var(--grey);
      min-width: 400px;
      max-width: 700px;
      height: 60px;
      border-radius: 5px;
      margin: 20px 0;
      width: 100%;
    }

    .user-icon img{
      max-width: 150px;
      max-height: 150px;
      margin: 46px 0px 46px 0px;
    }

  /* Sets the grid format for the accordions */
    .accordion-wrapper {
      display: grid;
      grid-template-columns: 1fr 1fr;
      min-width: 400px;
      max-width: 700px;
      width: 100%;
      gap: 30px;
      margin-top: 20px;
    }

    .bank-info-text{
      color: var(--text-grey);
      font-style: italic;
      text-align: left;
      max-width: 700px;
      min-width: 400px;
      width: 100%;
      display: block;
      padding: 10px 0px;
 }

    #bank-details{
      grid-column: 1 / span 2;
    }

  /* Accodion styles */
    .accordion-header {
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 5px 20px;
      background-color: var(--grey);
      font-weight: 600;
      border-bottom: 1px solid var(--border-grey);
      max-height: 50px;
    }

    .accordion-box {
      border-radius: 8px;
      background-color: white;
      overflow: hidden;
    }

    .accordion-row{
        display: flex;
        padding: 5px;
        align-items: flex-start;
    }

    img.accordion-row{
      height: 48px;
      width: 21px;
    }

    .accordion-row p{
      margin: 0px 10px;
    }

  /* Accordion Content Transition */
  .accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px; 
    text-align: left;
    border: none; /* Hide border by default */
  }

  .accordion-content.open {
    border: 1px solid var(--border-grey); /* Show border only when open */
    border-radius: 0 0 8px 8px; /* Rounded bottom corners */
  }


  /* Bank details styling */
    
    /* Rotate icon when open */
    .accordion-header.open .accordion-icon {
      transform: rotate(180deg);
      max-height: 500px; 
    }

    .accordion-header.open{
      display: flex;
    }

  /* Add .open class to .accordion-box when its header is open */


    .icon-and-header{
      display: flex;
    }
    img.bank-icon{
      padding:4px; /* Add space to bank icon next to bank details heading */
    }

  input[type='text'],
  input[type='email']{
    font-size: 16px; 
    border: 1px solid var(--grey);
    border-radius: 5px;
    text-align: right;
    height: 33px;
    padding: 0px 10px;
    min-width: 200px;
  }

  .form-text{
    display: flex;
    justify-content: space-between;
    height: 33px;
    align-items: center;
    padding: 10px 0px;
  }

  label{
    font-size: 16px; /* Must match p size */
    color: var(--text-grey);
    font-weight: 500;
  }

  .bank-search-container{
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .bank-list {
      position: absolute;
      background-color: white;
      border: 1px solid #ccc;
      border-radius: 6px;
      max-height: 250px;
      overflow-y: auto;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      display: none;
      z-index: 10000;
  }

  .bank-list.show {
    display: block;
    max-height: 300px;
  }

  .bank-item {
      display: flex;
      align-items: center;
      padding: 10px;
      gap: 10px;
      cursor: pointer;
  }

  .bank-item:hover {
      background-color: #f2f2f2;
  }

  .bank-item img {
      width: 30px;
      height: 30px;
  }

  .bank-item span {
      font-weight: 500;
      text-align: left;
  }

  #empty-state {
      position: absolute;
      background: var(--white);
      padding: 8px;
      border: 1px solid var(--border-grey);
      display: none;
      z-index: 10001;
  } 

  #bank-error{
    display:none; 
    color: red; 
    margin-top: 5px;
    font-size: 12px;
  }

  button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    height: 60px;
    background-color: var(--black);
    color: var(--white);
    margin: 34px 0px;
    width: 320px;
    font-size: 1rem;
  }


  .default-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
  }

/* Success Screens */
  .success-text{
    padding: 10px;
  }

  .success-text2 p{
    padding: 10px;
  }

  .success-text a{
    color: var(--black);
  }  

  /* Success Screen Styles */
  .sub-text{
    background-color: rgba(0,0,0,0.1);
    border: 1px solid var(--black);
    border-radius: 5px;
    text-align: left;
    padding: 10px;
    color: var(--text-grey);
    margin-top: 30px;
  }

  }