
.custom-product [class^=wccpf-fields-group],
.ui-block {

    background: #fff;
    padding: 3em;
    margin-top: 90px;
    position: relative;

}

@media screen and ( min-width: 700px ) {
    .custom-product [class^=wccpf-fields-group],
    .ui-block {
        padding: 3em 5em;
    }
}

.ui-panel__step {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    top: -40px;
    left: -40px;
    background: #029CB0;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    text-align: center;
}


@media screen and ( max-width: 550px ) {
    .ui-panel__step  {
        top: 0%;
        left: 50%;
        margin-top: -40px;
        margin-left: -40px;
    }
}

.ui-panel__step span {
    flex-basis: 100%;
    text-align: center;
}

@media screen and ( min-width: 700px ) {

    .ui-panel__step {
        width: 128px;
        height: 128px;
    
        top: -64px;
        left: -64px;
        font-size: 30px;
    }
    

}

.group-header,
table.wccpf_fields_table td.wccpf_label label[for=despatch_date],
.ui-block h2 {
    font-size: 25px !important;
    margin-bottom: 30px;
    color: #37231B; 
    font-weight: bold;
    font-family: MuseoSlab500;
}

table.wccpf_fields_table td.wccpf_label label[for=despatch_date] span {
    display: none;
}

@media screen and ( min-width: 700px ) {
    .group-header,
    .ui-block h2 {
        font-size: 35px !important;
        color: #37231B; 
    }
    table.wccpf_fields_table td.wccpf_label label[for=despatch_date] {
        font-size: 35px  !important;;
    }
}

.ui-block__grid > * {
    margin-top: 40px;
    margin-bottom: 1em;
    max-width: 386px;
    margin: 0 auto 1em auto;
}

.ui-block__grid {
    margin-bottom: 40px;
    margin-top: 55px;
}

.wcff_label p,
.ui-block p {
    max-width: 610px;
}

@media screen and ( min-width: 700px ) {
    .ui-block__grid {
        display: flex;
        justify-content: space-between;
    }
    .ui-block__grid > * {
        margin: 0;
        flex: 0 0 48%;
        display: flex;
    }
}

.ui-product__header h3,
.flavour h3 {
    font-size: 14px !important;
    color: #37231B;
    margin-bottom: 10px !important;
}

.ui-product figure {
    margin-bottom: 10px;
}

.ui-product figure {
    outline: 5px solid #fff;
}

.ui-product__selected figure {
   
    outline: 5px solid #029CB0;
    
}

.ui-product__selected figure img {
    display: block;
}

.ui-product__selected {
    position: relative;
}


.flavour.in-basket figure:after,
.ui-product__selected:after {
    content:'';
    width: 50px;
    height: 50px;
    position: absolute;
    top: -25px;
    left: -25px;
    background-image: url( '../img/check-mark.png' ); 
    background-size: contain;
}

.flavour.in-basket figure:after {
    top: -10px;
    left: -10px;
}

.ui-flavours__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
   
}

.ui-product__price {
    color: #6E4378;
    font-weight: bold;
}


/* === Flavours */



.ui-flavours__grid {
    margin-top: 55px;
}

.ui-flavours__grid  > * {
    flex-basis: 49%;
}

@media screen and ( min-width: 500px ) {
    .ui-flavours__grid  > * {
        flex-basis: 32%;
    }
    
}


@media screen and ( min-width: 750px ) {
    .ui-flavours__grid  > * {
        flex-basis: 24%;
    }
    
}

@media screen and ( min-width: 967 ) {
    .ui-flavours__grid  > * {
        flex-basis: 187px;
    }
    
}




.flavour {
    transition: all .2s ease-in-out;
    opacity: 1;
    text-align: center;
}



.flavour__image {
    width: 137px;
    height: 137px;
    margin: auto;
    display: block;
    border-radius: 50%;
    border: 3px solid #fff;
    background-size: cover;
    transition: all .2s ease-in-out;
}

.flavour__image img {
    display: none;
}

.flavour.in-basket .flavour__image {
    border-color: #029CB0;
}

.flavour.in-basket figure {
    position: relative;
}


.ui-favours__grid--max .flavour:not(.in-basket) {
    opacity: .3;
}

@media screen and ( min-width: 700px ) {

    .custom-product .wccpf-fields-group-1 {

        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;

    }

    .custom-product  .wccpf-fields-group-1 table {
        flex-basis: 48%;
        display: flex;
    }

    .custom-product .group-header {
        flex-basis: 100%;
    }

}

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

    .wccpf-datepicker  {
        font-size: 11px;
    }

}

.custom-product .wccpf_label label {
    font-size: 22px !important;
    font-weight: normal;
}


.custom-product .wccpf-fields-container {
    margin-bottom: 25px;
}

/* 


Tooltip container

<div class="tooltip">Hover over me
  <span class="tooltiptext">Tooltip text</span>
</div>


*/
.flavour {
    position: relative;
    margin-bottom: 1em;
  }
  
  /* Tooltip text */
  .flavour .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #73467D;
    color: #fff;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 15px;
    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -100px;
  
    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  /* Tooltip arrow */
  .flavour .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #73467D transparent transparent transparent;
  }
  
  @media screen and ( min-width: 768px ) {
  /* Show the tooltip text when you mouse over the tooltip container */
  .flavour:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }
}



  .custom-product .variations {
      display: none;
  }

  .custom-product .woocommerce-variation-price {
      display: none;
  }


 .custom-product .quantity {
     display: inline-block;
     margin-right: 1em;
 }

 .wccpf_fields_table .wcff_label {
     font-size:16px;
 }