/* Esfera_VideoModal - Luma/Blank/Porto compatible storefront styles. */

/* ============================================================
   TRIGGER - PRODUCT PAGE
   ============================================================ */

html body.catalog-product-view
.overview-download-info-box
.sidebarinfo-overview-download-manual
.esfera-video {
    display: flex;
    margin: 0px 0;
    align-items: center;
}

html body.catalog-product-view
.overview-download-info-box
.sidebarinfo-overview-download-manual
.esfera-video
> .esfera-video__trigger {
    align-items: center;
    background: none;
    border: none;
    border-radius: 4px;
    color: #000000;
    font-size: 13px;
    text-align: left;
    display: flex;
    font-weight: 500;
    gap: 8px;
    min-height: 45px;
    padding: 0px 0px;
    transition: all .2s ease-in-out;
    line-height: normal;
    max-width: 170px;
    width: 170px;
}

html body.catalog-product-view
.overview-download-info-box
.sidebarinfo-overview-download-manual
.esfera-video:hover
> .esfera-video__trigger,
html body.catalog-product-view
.overview-download-info-box
.sidebarinfo-overview-download-manual
.esfera-video:focus-within
> .esfera-video__trigger {
    border-color: transparent;
    color: #004d75 !important;
}

html body.catalog-product-view
.overview-download-info-box
.sidebarinfo-overview-download-manual
.esfera-video
> .esfera-video__trigger:focus-visible {
    box-shadow: none;
    outline: 0;
}

html body.catalog-product-view
.overview-download-info-box
.sidebarinfo-overview-download-manual
.esfera-video
> .esfera-video__trigger
> .esfera-video__trigger-icon {
    align-items: center;
    background: #000;
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
    transition: background-color .2s ease-in-out;
}

html body.catalog-product-view
.overview-download-info-box
.sidebarinfo-overview-download-manual
.esfera-video:hover
> .esfera-video__trigger
> .esfera-video__trigger-icon,
html body.catalog-product-view
.overview-download-info-box
.sidebarinfo-overview-download-manual
.esfera-video:focus-within
> .esfera-video__trigger
> .esfera-video__trigger-icon {
    background-color: #004d75 !important;
}

html body.catalog-product-view
.overview-download-info-box
.sidebarinfo-overview-download-manual
.esfera-video
> .esfera-video__trigger
> .esfera-video__trigger-icon svg {
    display: block;
}

/* Hide only while the original modal element is still inside the product widget. */
html body.catalog-product-view
.overview-download-info-box
.sidebarinfo-overview-download-manual
.esfera-video
> .esfera-video__modal {
    display: none;
}

/* ============================================================
   MODAL OVERLAY
   ============================================================ */

html body.esfera-video-modal-open .modals-overlay {
    background-color: rgba(0, 0, 0, .82);
}

/* ============================================================
   MAGENTO UI MODAL
   Magento moves the video content into .modals-wrapper.
   These selectors intentionally do not depend on CMS ancestors.
   ============================================================ */

html body .modal-popup.esfera-video-modal .modal-inner-wrap {
    background: none !important;
    box-shadow: none !important;
    margin: 4vh auto !important;
    margin: 4dvh auto !important;
    max-width: 94vw !important;
    overflow: visible !important;
    width: 46vh !important;
    width: 46dvh !important;
}

html body .modal-popup.esfera-video-modal .modal-header {
    padding: 0 !important;
}

html body .modal-popup.esfera-video-modal .modal-title {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

html body .modal-popup.esfera-video-modal .modal-content {
    background: transparent !important;
    padding: 0 !important;
}

html body .modal-popup.esfera-video-modal .esfera-video__player-shell {
    background: #ffffff00 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45) !important;
}

html body .modal-popup.esfera-video-modal .esfera-video__player {
    background: #ff000000 !important;
    display: block !important;
    height: auto !important;
    max-height: 82vh !important;
    max-height: 82dvh !important;
    width: 100% !important;
}

html body .modal-popup.esfera-video-modal .action-close {
    align-items: center !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    height: 35px !important;
    justify-content: center !important;
    right: 0px !important;
    top: 30px !important;
    width: 35px !important;
    z-index: 999 !important;
    opacity: 1 !important;
    padding: 0;
}

html body .modal-popup.esfera-video-modal .action-close:hover,
html body .modal-popup.esfera-video-modal .action-close:focus {
    background: #fff !important;
}

html body .modal-popup.esfera-video-modal .action-close::before {
    top: 17px !important;
    left: 9px !important;
    border-top: 1px solid !important;
    color: inherit !important;
}

html body .modal-popup.esfera-video-modal .action-close::after {
    height: 17px !important;
    top: 9px !important;
    left: 17px !important;
    border-left: 1px solid !important;
}

@media only screen and (min-width: 768px) {
    html body .modal-popup.esfera-video-modal .modal-inner-wrap {
        max-width: 520px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body.catalog-product-view
    .overview-download-info-box
    .sidebarinfo-overview-download-manual
    .esfera-video
    > .esfera-video__trigger,
    html body.catalog-product-view
    .overview-download-info-box
    .sidebarinfo-overview-download-manual
    .esfera-video
    > .esfera-video__trigger
    > .esfera-video__trigger-icon {
        transition: none;
    }
}



@media (max-width: 465px) {
    html body.catalog-product-view
    .overview-download-info-box
    .sidebarinfo-overview-download-manual
    .esfera-video
    > .esfera-video__trigger {
        white-space: normal;
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 10px;
        max-width: 130px;
        text-align: center;
    }

    html body.catalog-product-view
    .overview-download-info-box
    .sidebarinfo-overview-download-manual
    .esfera-video
    > .esfera-video__trigger
    > .esfera-video__trigger-icon {
    width: 30px;
    height: 30px;
    min-height: 30px;
    min-width: 30px;
    flex: 0 0 30px;
    }
    
    html body.catalog-product-view
    .overview-download-info-box
    .sidebarinfo-overview-download-manual
    .esfera-video
    > .esfera-video__trigger
    > .esfera-video__trigger-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    }
}