/* ============================================================
   PREMIUM ECOLOGICA
   BOARD 4 PDP V2B5B
   GALLERY EXPERIENCE

   NAO reinicializa Fotorama.
   ============================================================ */


/* ============================================================
   1. PRODUCT MEDIA COMO REFERENCIA DO BOTAO VIDEO
   ============================================================ */

body.catalog-product-view
.product.media {
    position: relative !important;
}


/* ============================================================
   2. THUMB +N
   ============================================================ */

body.catalog-product-view
.product.media
.fotorama__nav__frame--thumb.premium-board4-more-thumb {
    position: relative !important;

    overflow: hidden !important;

    border-radius: 8px !important;
}


body.catalog-product-view
.product.media
.fotorama__nav__frame--thumb.premium-board4-more-thumb::after {
    content:
        attr(data-premium-more) !important;

    position: absolute !important;

    z-index: 20 !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    background:
        rgba(9, 74, 42, .80) !important;

    color: #fff !important;

    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    letter-spacing: -.3px !important;

    pointer-events: none !important;
}


/*
 * Mantém a borda da thumb coerente.
 */
body.catalog-product-view
.product.media
.fotorama__nav__frame--thumb.premium-board4-more-thumb
.fotorama__thumb {
    border-radius: 8px !important;

    overflow: hidden !important;
}


/* ============================================================
   3. VER VIDEO
   ============================================================ */

body.catalog-product-view
.product.media
.premium-board4-video-cta {
    position: absolute !important;

    z-index: 30 !important;

    display: none;

    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;

    min-height: 42px !important;

    padding: 8px 17px !important;

    box-sizing: border-box !important;

    transform:
        translateX(-50%) !important;

    background:
        rgba(255, 255, 255, .96) !important;

    border:
        1px solid #cdded3 !important;

    border-radius: 22px !important;

    color: #116f3c !important;

    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;

    cursor: pointer !important;

    box-shadow:
        0 5px 18px
        rgba(19, 62, 43, .10) !important;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        transform .15s ease !important;
}


body.catalog-product-view
.product.media
.premium-board4-video-cta.is-positioned {
    display: inline-flex !important;
}


body.catalog-product-view
.product.media
.premium-board4-video-cta:hover {
    background: #f3faf5 !important;

    border-color: #168846 !important;
}


body.catalog-product-view
.product.media
.premium-board4-video-cta:active {
    transform:
        translateX(-50%)
        scale(.98) !important;
}


/* ============================================================
   4. PLAY ICON
   ============================================================ */

body.catalog-product-view
.product.media
.premium-board4-video-icon {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 20px !important;
    height: 20px !important;

    flex:
        0 0 20px !important;

    background: #168846 !important;

    border-radius: 50% !important;

    color: #fff !important;

    font-size: 9px !important;
    line-height: 1 !important;

    padding-left: 1px !important;

    box-sizing: border-box !important;
}


/* ============================================================
   5. MOBILE
   ============================================================ */

@media (max-width: 767px) {

    body.catalog-product-view
    .product.media
    .premium-board4-video-cta {
        min-height: 40px !important;

        padding:
            7px 14px !important;

        font-size: 11px !important;
    }


    body.catalog-product-view
    .product.media
    .fotorama__nav__frame--thumb.premium-board4-more-thumb::after {
        font-size: 18px !important;
    }

}
