/* 1. Remove shadow from LearnDash and custom logos */
.custom-logo-link > img,
.ld-brand-logo img {
    box-shadow: none !important;
}

/* 2. Fix LearnDash Quiz checkboxes on mobile */
@media screen and ( max-width: 568px ) {
    .learndash-wrapper .wpProQuiz_content ul.wpProQuiz_questionList input[type="checkbox"], 
    .learndash-wrapper .wpProQuiz_content ul.wpProQuiz_questionList input[type="radio"] {
        border-radius: 0;
        min-width: 15px;
    }
}

/* 3. MemberPress Checkout Layout */
.single-memberpressproduct .mp_wrapper {
    max-width: 600px !important;
    margin: 20px auto 100px auto !important;
    padding: 0 20px !important;
}

.single-memberpressproduct .mepr_price_cell {
    background-color: transparent !important;
    border-top: 1px solid #e6e8ea !important;
    border-bottom: 1px solid #e6e8ea !important;
    padding: 20px 0 !important;
    margin-bottom: 30px !important;
}

/* 4. Have a coupon link */
.single-memberpressproduct .have-coupon-link {
    color: #13a89e !important;
    font-weight: 500;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 15px;
}

/* 5. Labels */
.single-memberpressproduct .mp-form-label label {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
}

/* 6. Inputs */
.single-memberpressproduct .mepr-form-input,
.single-memberpressproduct select.mepr-form-input {
    width: 100% !important;
    padding: 15px 18px !important;
    border: 1px solid #babfc5 !important;
    border-radius: 3px !important;
    font-size: 16px !important;
    background-color: #fff !important;
    margin-bottom: 20px !important;
}

/* 7. Submit Button */
.single-memberpressproduct .mepr-submit {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 3px solid #000000 !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.single-memberpressproduct .mepr-submit:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
}

@media (max-width: 767px) {
    /* 1. Target ANY Elementor HTML widget that contains your custom video ID */
    .elementor-widget-html:has(#loka-hero-video) {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        clear: both !important;
        margin-bottom: 25px !important;
    }

    /* 2. Lock the native 16:9 placeholder dimensions globally */
    #loka-hero-video {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        padding-top: 56.25% !important;
        height: 0 !important;
    }

    /* 3. Strip absolute positioning from ANY heading widget that comes after the video */
    .elementor-widget-html:has(#loka-hero-video) ~ .elementor-widget-heading {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 0 !important;
        transform: none !important;
        clear: both !important;
        display: block !important;
    }

    /* 4. Restore normal flow to secondary text/editor widgets following the video */
    .elementor-widget-html:has(#loka-hero-video) ~ .elementor-widget-text-editor {
        position: relative !important;
        top: auto !important;
        margin-top: 15px !important;
        transform: none !important;
    }
}


/* === Global mobile fix: Loka video facades (all pages) === */
@media (max-width: 767px) {
  /* All facades: enforce 16:9 via padding trick */
  [id^="loka-"][id$="-video"],
  #loka-hero-video,
  #loka-breathwork-video {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  /* Elementor HTML widget wrapping any facade */
  .elementor-widget-html:has([id^="loka-"][id$="-video"]),
  .elementor-widget-html:has(#loka-hero-video),
  .elementor-widget-html:has(#loka-breathwork-video) {
    display: block !important;
    width: 100% !important;
  }
  /* Section containing a facade — prevent height lock */
  .e-con:has([id^="loka-"][id$="-video"]),
  .e-con:has(#loka-hero-video),
  .e-con:has(#loka-breathwork-video) {
    height: auto !important;
  }
  /* Section FOLLOWING a video section — strip offset causing overlap */
  .e-con:has([id^="loka-"][id$="-video"]) ~ .e-con,
  .e-con:has(#loka-hero-video) ~ .e-con,
  .e-con:has(#loka-breathwork-video) ~ .e-con {
    position: relative !important;
    top: auto !important;
    margin-top: 0 !important;
    transform: none !important;
  }
}