.sections{
    margin-top: 36px;
    container-type: inline-size;
    container-name: sections;
}

.sections__cards{
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    column-gap: 20px;
}

.sections__card{
    width: 100px;
}

.sections__card a{
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
}

.sections__picture{
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.sections__card:nth-child(1) .sections__picture{
    background-color: var(--primary);
}

.sections__card:nth-child(2) .sections__picture{
    background-color: var(--blue);
}

.sections__card:nth-child(3) .sections__picture{
    background-color: var(--dark-orange);
}

.sections__picture img{
    width: 100px;
    aspect-ratio: 1/1;
}

.sections__heading{
    font-weight: 400;
    font-size: 0.9375em;
    color: var(--dark-gray);
    transition: .3s ease-in-out color;
}

.sections__card:nth-child(1):hover .sections__heading, .sections__card:nth-child(1) a:focus .sections__heading{
    color: var(--primary);
}

.sections__card:nth-child(2):hover .sections__heading, .sections__card:nth-child(2) a:focus .sections__heading{
    color: var(--blue);
}

.sections__card:nth-child(3):hover .sections__heading, .sections__card:nth-child(3) a:focus .sections__heading{
    color: var(--dark-orange);
}

.sections__wallet{
    margin-top: 24px;
}

.wallet__card{
    margin-top: 18px;
    padding-top: 10px;
    width: 212px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid var(--yellow);
}

.wallet__content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
}

.wallet__content i{
    color: var(--yellow);
    font-size: 38px;
}

.wallet__amount{
    font-size: 20px;
    color: var(--dark-gray);
}

.wallet__label{
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
}

.wallet__select{
    border: none;
    background: none;
    font-size: 12px;
    line-height: 14px;
}

.wallet__footer{
    width: 100%;
    padding: 4px 0;
    background-color: rgba(254, 214, 0, .3);
}

.wallet__footer a{
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 12px;
    gap: 8px;
}

.spinner {
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 10px;
}

.spinner--hidden{
    display: none;
}
  
.spinner > div {
    background-color: var(--yellow);
    height: 100%;
    width: 6px;
    display: inline-block;
    
    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}
  
.spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}
  
.spinner .rect3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}
  
.spinner .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}
  
.spinner .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}
  
@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% { -webkit-transform: scaleY(0.4) }  
    20% { -webkit-transform: scaleY(1.0) }
}
  
@keyframes sk-stretchdelay {
    0%, 40%, 100% { 
      transform: scaleY(0.4);
      -webkit-transform: scaleY(0.4);
    }  20% { 
      transform: scaleY(1.0);
      -webkit-transform: scaleY(1.0);
    }
}

/* Responsive */

@container sections (min-width: 500px) {
    .sections__card{
        width: 150px;
    }

    .sections__heading{
        font-size: 1em;
    }
}

@container sections (min-width: 870px) {
    .sections__wrapper{
        display: flex;
        gap: 32px;
    }
    
    .sections__container{
        padding-right: 32px;
        border-right: 1px solid #EBEBEB;
    }

    .sections__cards{
        margin-top: 18px;
    }

    .sections__card{
        width: 165px;
    }

    .sections__card a{
        gap: 12px;
    }

    .sections__picture{
        height: 110px;
    }

    .sections__heading{
        font-size: 1.125em;
    }

    .sections__wallet{
        margin-top: 0;
    }

    .wallet__card{
        margin-top: 18px;
    }

    .wallet__select{
        font-size: 14px;
    }
}