/* =========================================================
   RECIPE DETAIL
========================================================= */

.tlb-recipe-detail-wrap,
.tlb-recipe-detail-wrap * {
    box-sizing: border-box;
}

.tlb-recipe-detail-wrap {
    width: 100%;

    padding:
        18px
        20px
        40px;

    font-family:
        "Be Vietnam Pro",
        Arial,
        sans-serif;

    color: #34272b;
}

.tlb-recipe-detail {
    width: min(1440px, 100%);

    margin: 0 auto;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.tlb-recipe-breadcrumb {
    margin-bottom: 15px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    color: #8f8186;

    font-size: 10px;
}

.tlb-recipe-breadcrumb a {
    color: #8f8186;

    text-decoration: none;
}

.tlb-recipe-breadcrumb a:hover {
    color: #ed0754;
}

.tlb-recipe-breadcrumb strong {
    color: #4c3d42;

    font-weight: 500;
}


/* =========================================================
   HERO
========================================================= */

.tlb-recipe-hero {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, .95fr);

    gap: 34px;

    padding: 24px;

    border: 1px solid #f2e3e7;
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #fffafb,
            #fff3f6
        );
}

.tlb-recipe-hero__image {
    min-height: 430px;

    overflow: hidden;

    border-radius: 14px;

    background: #f6eeee;
}

.tlb-recipe-hero__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.tlb-recipe-hero__content {
    padding:
        16px
        10px
        10px;
}

.tlb-recipe-featured {
    display: inline-flex;

    padding:
        6px
        10px;

    border-radius: 999px;

    background: #ffe5ee;

    color: #ed0754;

    font-size: 9px;
    font-weight: 600;
}

.tlb-recipe-hero h1 {
    margin:
        12px
        0
        0;

    color: #281d21;

    font-size: clamp(
        28px,
        3vw,
        46px
    );

    line-height: 1.15;

    font-weight: 700;
}

.tlb-recipe-excerpt {
    max-width: 620px;

    margin:
        16px
        0
        0;

    color: #615257;

    font-size: 13px;
    line-height: 1.75;
}


/* =========================================================
   META
========================================================= */

.tlb-recipe-meta {
    margin-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    border:
        1px
        solid
        #f1dfe4;

    border-radius: 12px;

    background: #fff;
}

.tlb-recipe-meta article {
    min-width: 0;

    padding:
        13px
        10px;

    text-align: center;

    border-right:
        1px
        solid
        #f1e4e8;
}

.tlb-recipe-meta article:last-child {
    border-right: 0;
}

.tlb-recipe-meta span {
    display: block;

    color: #9a8d91;

    font-size: 8px;
}

.tlb-recipe-meta strong {
    display: block;

    margin-top: 4px;

    color: #ed0754;

    font-size: 11px;
}


/* =========================================================
   ACTIONS
========================================================= */

.tlb-recipe-actions {
    margin-top: 18px;

    display: flex;

    gap: 8px;
}

.tlb-recipe-actions button {
    min-height: 37px;

    padding:
        0
        15px;

    border-radius: 7px;

    font-family: inherit;

    font-size: 9px;
    font-weight: 600;

    cursor: pointer;
}

.tlb-recipe-save {
    border: 0;

    background: #ed0754;

    color: #fff;
}

.tlb-recipe-print {
    border:
        1px
        solid
        #ed0754;

    background: #fff;

    color: #ed0754;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.tlb-recipe-layout {
    margin-top: 22px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 18px;

    align-items: start;
}

.tlb-recipe-main {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 16px;
}


/* =========================================================
   SECTION
========================================================= */

.tlb-recipe-section {
    padding: 22px;

    border:
        1px
        solid
        #f1e5e8;

    border-radius: 15px;

    background: #fff;
}

.tlb-recipe-section__heading {
    margin-bottom: 20px;

    display: flex;
    align-items: center;

    gap: 11px;
}

.tlb-recipe-section__heading > span {
    width: 37px;
    height: 37px;

    flex: 0 0 37px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #ed0754;

    color: #fff;

    font-size: 10px;
    font-weight: 700;
}

.tlb-recipe-section__heading h2 {
    margin: 0;

    color: #302126;

    font-size: 19px;
}

.tlb-recipe-section__heading p {
    margin:
        3px
        0
        0;

    color: #988b8f;

    font-size: 8px;
}


/* =========================================================
   PROSE
========================================================= */

.tlb-recipe-prose {
    color: #54474b;

    font-size: 12px;
    line-height: 1.9;
}


/* =========================================================
   INGREDIENTS
========================================================= */

.tlb-recipe-ingredients {
    overflow: hidden;

    border:
        1px
        solid
        #f2e4e8;

    border-radius: 11px;
}

.tlb-recipe-ingredient {
    position: relative;

    min-height: 52px;

    padding:
        9px
        14px;

    display: grid;

    grid-template-columns:
        22px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 10px;

    border-bottom:
        1px
        solid
        #f5eaed;

    cursor: pointer;
}

.tlb-recipe-ingredient:last-child {
    border-bottom: 0;
}

.tlb-recipe-ingredient input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.tlb-recipe-ingredient__check {
    width: 19px;
    height: 19px;

    display: block;

    border:
        1.5px
        solid
        #ed0754;

    border-radius: 5px;

    background: #fff;
}

.tlb-recipe-ingredient input:checked
+
.tlb-recipe-ingredient__check {
    background: #ed0754;
}

.tlb-recipe-ingredient input:checked
+
.tlb-recipe-ingredient__check::after {
    content: "✓";

    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: #fff;

    font-size: 11px;
}

.tlb-recipe-ingredient__name {
    color: #413337;

    font-size: 11px;
    font-weight: 500;
}

.tlb-recipe-ingredient__name small {
    margin-top: 2px;

    display: block;

    color: #9c8e93;

    font-size: 7px;
    font-weight: 400;
}

.tlb-recipe-ingredient strong {
    padding-left: 10px;

    color: #ed0754;

    font-size: 10px;

    white-space: nowrap;
}


/* =========================================================
   STEPS
========================================================= */

.tlb-recipe-steps {
    display: flex;
    flex-direction: column;

    gap: 13px;
}

.tlb-recipe-step {
    position: relative;

    padding: 18px;

    display: grid;

    grid-template-columns:
        44px
        minmax(0, 1fr);

    gap: 13px;

    border:
        1px
        solid
        #f3e4e8;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #fffafb,
            #fff6f8
        );
}

.tlb-recipe-step__number {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #ed0754;

    color: #fff;

    font-size: 12px;
    font-weight: 700;
}

.tlb-recipe-step__content h3 {
    margin:
        0
        0
        7px;

    color: #33262a;

    font-size: 14px;
}

.tlb-recipe-step__description {
    color: #594b50;

    font-size: 11px;
    line-height: 1.8;
}

.tlb-recipe-step__image {
    width: 100%;
    max-height: 420px;

    margin-top: 13px;

    display: block;

    object-fit: cover;

    border-radius: 10px;
}


/* =========================================================
   VIDEO
========================================================= */

.tlb-recipe-video {
    position: relative;

    width: 100%;

    padding-top: 56.25%;

    overflow: hidden;

    border-radius: 12px;

    background: #111;
}

.tlb-recipe-video iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   SIDEBAR
========================================================= */

.tlb-recipe-sidebar {
    position: sticky;

    top: 18px;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.tlb-recipe-sidebar-card {
    padding: 18px;

    border:
        1px
        solid
        #f0e1e5;

    border-radius: 13px;

    background: #fff;
}

.tlb-recipe-sidebar-card h3 {
    margin: 0;

    color: #302126;

    font-size: 13px;
}

.tlb-recipe-sidebar-card p {
    margin:
        8px
        0
        0;

    color: #76696d;

    font-size: 9px;
    line-height: 1.6;
}

.tlb-recipe-sidebar-card > a {
    margin-top: 12px;

    min-height: 33px;

    padding:
        0
        12px;

    display: inline-flex;
    align-items: center;

    border-radius: 6px;

    background: #ed0754;

    color: #fff;

    text-decoration: none;

    font-size: 8px;
    font-weight: 600;
}

.tlb-recipe-sidebar-card--pink {
    background:
        linear-gradient(
            135deg,
            #fff0f5,
            #ffe4ec
        );
}

.tlb-recipe-sidebar-info {
    margin-top: 13px;

    display: flex;
    flex-direction: column;
}

.tlb-recipe-sidebar-info > div {
    min-height: 37px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    border-bottom:
        1px
        solid
        #f3e7ea;
}

.tlb-recipe-sidebar-info > div:last-child {
    border-bottom: 0;
}

.tlb-recipe-sidebar-info span {
    color: #8d7f84;

    font-size: 8px;
}

.tlb-recipe-sidebar-info strong {
    color: #43363a;

    font-size: 9px;
}


/* =========================================================
   EMPTY
========================================================= */

.tlb-recipe-empty {
    min-height: 90px;

    display: grid;
    place-items: center;

    color: #a39599;

    font-size: 9px;

    text-align: center;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1000px) {

    .tlb-recipe-hero {
        grid-template-columns: 1fr;
    }

    .tlb-recipe-hero__image {
        min-height: 360px;
    }

    .tlb-recipe-layout {
        grid-template-columns: 1fr;
    }

    .tlb-recipe-sidebar {
        position: static;

        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media(max-width:700px) {

    .tlb-recipe-detail-wrap {
        padding:
            12px
            12px
            30px;
    }

    .tlb-recipe-hero {
        padding: 13px;

        gap: 15px;
    }

    .tlb-recipe-hero__image {
        min-height: 260px;
    }

    .tlb-recipe-hero__content {
        padding: 4px;
    }

    .tlb-recipe-meta {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .tlb-recipe-meta article {
        border-bottom:
            1px
            solid
            #f1e4e8;
    }

    .tlb-recipe-section {
        padding: 15px;
    }

    .tlb-recipe-step {
        grid-template-columns: 1fr;
    }

    .tlb-recipe-sidebar {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

    header,
    footer,
    .tlb-recipe-breadcrumb,
    .tlb-recipe-actions,
    .tlb-recipe-sidebar {
        display: none !important;
    }

    .tlb-recipe-detail-wrap {
        padding: 0;
    }

    .tlb-recipe-detail {
        max-width: none;
    }

    .tlb-recipe-layout {
        display: block;
    }

}