/* Details */

.wp-block-recipe-blocks-details .recipe-detail-container {
    width: 100%;
    border: 1px solid #cdcdd1;
    border-top: 10px solid #bbb;
    border-collapse: collapse;
    margin-top: 30px;
    margin-bottom: 30px;
    table-layout: fixed;
    display: table;
}

.wp-block-recipe-blocks-details .recipe-detail-container .recipe-detail-item {
    display: table-cell;
    width:25%;
    text-align: center;
    padding-top: 15px;
    border: 1px solid #cdcdd1;
    border-collapse: collapse;
}

.wp-block-recipe-blocks-details .recipe-detail-container .recipe-detail-item .recipe-detail-item-label {
    border-bottom: 1px solid transparent;
    font-size: 21px;
    font-size: 2.1rem;
    vertical-align: bottom;
    font-family: "Alegreya Sans SC", serif;
    font-weight: 400;
    font-style: normal;
}

.wp-block-recipe-blocks-details .recipe-detail-container .recipe-detail-item .recipe-detail-item-value {
    font-size: 16px;
    font-size: 1.6rem;
    vertical-align: top;
    font-family: "Alegreya Sans SC", serif;
    font-weight: 400;
    line-height: 25px;
    padding-bottom: 15px;
}

/* Ingredents */

.wp-block-recipe-blocks-ingredients {
    position: relative;
    color: #666;
    background-color: #f5f5f5;
    border-radius: 10px;
    margin: 50px 0;
    padding: 10px 30px 10px 0;
    text-align: left;
}

.wp-block-recipe-blocks-ingredients:after { 
    content:""; 
    clear:both; 
    display: table; 
}

.wp-block-recipe-blocks-ingredients h4 {
    margin-left: 20px;
    font-size: 3rem;
}

.wp-block-recipe-blocks-ingredients .ingredients-list {
    line-height: normal;
    list-style: none;
    margin: 0;
    margin-left: 30px;
}

.wp-block-recipe-blocks-ingredients .ingredients-list>li {
    position: relative;
    line-height: 1.8;
    list-style: none;
    min-height: 30px;
    padding-left: 30px;
    margin: 0 0 15px;
    border-bottom: 1px solid #dfdfdf;
}

.wp-block-recipe-blocks-ingredients .ingredients-list>li::before {
    font-family: "dashicons";
    content: "\f159";    
    display: block;
    position: absolute;
    top: 7px;
    left: 5px;
    font-size: 12px;
    line-height: 1.4;
    vertical-align: middle;
    padding: 0;
    border-radius: 50%;
    margin-right: 10px;
}


/* Directions */ 

.wp-block-recipe-blocks-directions {
    position: relative;
    margin: 50px 0;
    padding: 0;
    text-align: left
}

.wp-block-recipe-blocks-directions:after { 
    content:""; 
    clear:both; 
    display: table; 
}

.wp-block-recipe-blocks-directions h4 {
    margin-left: 15px;
    margin-bottom:20px;
    font-size: 3.2rem;
}

.wp-block-recipe-blocks-directions .directions-list {
    counter-reset: count;
    line-height: normal;
    list-style: none;
    margin: 0 30px;
}

.wp-block-recipe-blocks-directions .directions-list>li {
    position: relative;
    line-height: 1.8;
    list-style: none;
    min-height: 30px;
    padding-left: 30px;
    margin: 0 0 10px
}

.wp-block-recipe-blocks-directions .directions-list>li::before {
    counter-increment: count;
    content: counter(count);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 20px;
    font-weight: bold;
    font-family: "Alegreya Sans SC", serif;
    text-transform: uppercase;
    line-height: 1.4;
    width: 35px;
    vertical-align: middle;
    padding: 0;
    border-radius: 50%;
    margin-right: 10px;
}

/* Notes */ 

.wp-block-recipe-blocks-notes {
    position: relative;
    margin: 0 50px 20px 50px;
    text-align: left;
    border: 1px solid #dfdfdf;
    padding: 10px 30px 0 20px;
    border-radius: 10px;
}

.wp-block-recipe-blocks-notes:after { 
    content:""; 
    clear:both; 
    display: table; 
}

.wp-block-recipe-blocks-notes h4 {
    margin: 0 15px 10px 15px;   
    font-size: 3.2rem;
}

.wp-block-recipe-blocks-notes .notes-list {
    line-height: normal;
    list-style: none;
    margin: 0;
    margin-left: 10px;
}

.wp-block-recipe-blocks-notes .notes-list>li {
    position: relative;
    line-height: 1.5;
    list-style: none;
    min-height: 30px;
    padding-left: 30px;
    margin: 0 0 20px;
    font-style: italic;
}

.wp-block-recipe-blocks-notes .notes-list>li::before {
    font-family: "dashicons";
    content: "\f139";  
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 20px;
    line-height: 1.4;
    vertical-align: middle;
    padding: 0;
    border-radius: 50%;
    margin-right: 10px;
    font-style: normal;
}

/*  Source */

.wp-block-recipe-blocks-source {
    text-align: right;
    font-style: italic;
}

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

    .wp-block-recipe-blocks-details .recipe-detail-container {
        display:block;
        padding:10px 0 10px 15px;
    }

    .wp-block-recipe-blocks-details .recipe-detail-container .recipe-detail-item {
        display:inline-block;
        width:100%;
        padding:0;
        border:0;
        vertical-align:middle;
        text-align:left;
    }

    .wp-block-recipe-blocks-details .recipe-detail-container .recipe-detail-item .recipe-detail-item-value {
        display:inline-block;
        padding: 0;
        vertical-align:middle;
        font-size: 20px;
        font-size: 2.0rem;
    }
    .wp-block-recipe-blocks-details .recipe-detail-container .recipe-detail-item .recipe-detail-item-label {        
        vertical-align:middle;
        padding: 0 10px;
        font-size: 23px;
        font-size: 2.3rem;
    }

    .wp-block-recipe-blocks-ingredients .ingredients-list,
    .wp-block-recipe-blocks-directions .directions-list {
        margin-left:15px;
    }
    
    .wp-block-recipe-blocks-notes .notes-list {
        margin-left: 0;
        margin-right:5px;
    }
    
    .wp-block-recipe-blocks-notes {
        margin: 0;
        margin-bottom:20px;
        padding: 10px;
    }
} 