/*
 * Link button to the kokochiyosa landing page (kokochiyosa.html).
 *
 * Shown on the first screen under the banner (--top) and on the result screen
 * under the download button (--cart, window flow only). The page opens in a
 * new tab so the simulation keeps its state; the page's close button closes
 * that tab again.
 */

/* Same side padding as the select boxes below (.un_areaNav_inner). */
.bl_kokochiyosaLink--top {
    margin: 14px 0 22px;
    padding: 0 20px;
}

/* Sits right after the download button (whose own 6px bottom margin makes
   the 20px gap of the design), inside the download block's padding. */
.bl_kokochiyosaLink--cart {
    margin-top: 14px;
}

/* The landing page belongs to the window flow only. */
#content.option_item_mirai_eco .bl_kokochiyosaLink--cart {
    display: none;
}

/* Listed with the link states so the global a:link / a:visited colour does
   not win. */
.bl_kokochiyosaLink_btn,
.bl_kokochiyosaLink_btn:link,
.bl_kokochiyosaLink_btn:visited,
.bl_kokochiyosaLink_btn:hover,
.bl_kokochiyosaLink_btn:active {
    color: #fff;
}

.bl_kokochiyosaLink_btn {
    align-items: center;
    background-color: #70ad47;
    border: 2px solid #e75400;
    border-radius: 50px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    font-size: 16px;
    font-weight: 500;
    justify-content: center;
    line-height: 1.4;
    margin-left: auto;
    margin-right: auto;
    max-width: 300px;
    min-height: 58px;
    padding: 6px 46px 6px 16px;
    position: relative;
    text-align: center;
    width: 100%;
}

/* Magnifier icon on the right; the text is centered in the space left of it. */
.bl_kokochiyosaLink_btn::after {
    background-image: url(../imgs/common/icon_magnifier.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    height: 27px;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
}

/* Lines break between the two phrases only (two lines on mobile). */
.bl_kokochiyosaLink_phrase {
    display: inline-block;
}

@media screen and (max-width: 767px) {
    /* On the first screen, as wide as the select boxes below it
       (.un_areaNav_inner), with a larger label and icon. */
    .bl_kokochiyosaLink--top .bl_kokochiyosaLink_btn {
        font-size: 19px;
        max-width: 345px;
    }

    .bl_kokochiyosaLink--top .bl_kokochiyosaLink_btn::after {
        height: 32px;
        width: 30px;
    }

    /* On the result screen, as wide as the download button above it
       (#cart .un_cartResult_btn). */
    .bl_kokochiyosaLink--cart .bl_kokochiyosaLink_btn {
        max-width: 256px;
    }
}

@media screen and (min-width: 768px) {
    /* 23px under the banner; the select row's own 50px top margin collapses
       into the 62px below, which puts its labels 28px under the button. */
    .bl_kokochiyosaLink--top {
        margin: 23px 0 62px;
    }

    /* The 600px label stays on one line down to the 686px button of the
       result screen at 768px. */
    .bl_kokochiyosaLink_btn {
        font-size: 30px;
        max-width: 770px;
        padding: 0 62px 0 14px;
    }

    .bl_kokochiyosaLink_btn::after {
        height: 39px;
        right: 15px;
        width: 37px;
    }
}
