/*
 * Fixes for the app overlays (css/app-overlays.css, generated) inside genesis-child.
 * The overlay boxes are white, but the Genesis home sets white text for the hero
 * and style.css gives every <button> white text.
 */

.page-overlay-content {
    color: var(--color-main-text);
}

.page-overlay-content .show-password-bt {
    color: var(--color-main-text3);
}

/* Close "X" of every overlay (login, messages, actions...): <img class="close-overlay-img close-img"> with
   uploads/2020/08/close.svg, which is 512 x 512. The extraction pattern of css/app-overlays.css has no
   "close-img", so on the views outside the Divi shell (home, How it works, Pricing, PRO, search,
   Quick Check) the icon grew to the width of the box. Same rule as Divi-child style.css. */
.close-img {
    display: block;
    width: 25px;
    height: 25px;
}

/* "Reset password" in the login form and its arrow on one line: the link wraps (flex-flow: wrap) and the arrow has
   width: 100% (max 15px), so it fell under the text. The same fix for the pages in the Divi shell restyled after the
   home page is in assets/css/site-components.css. */
#loginform .reset-link-url-bt {
    flex-wrap: nowrap;
    gap: .5rem;
}

#loginform .reset-link-url-bt .arrow-right-svg {
    flex: 0 0 15px;
    width: 15px;
    margin-left: 0;
}

/* YouTube player in #yt-overlay (template-parts/messages/action_youtube_overlay_tpl.php). The extracted
   css/app-overlays.css has no #player_yt rules (Divi-child style.css:2788 does not match the extraction
   pattern), so the iframe kept the 680px width js/custom.js gives it and stuck out of the 650px box.
   Same rules as Divi plus aspect-ratio: Divi's 100% x 400px box letterboxed the 16:9 video. */
#player_yt {
    display: flex;
    flex-grow: 1;
    width: 100%;
    height: auto;
    max-height: 400px;
    margin-top: 1rem;
    aspect-ratio: 16 / 9;
}

#player_yt.yt-max-height {
    max-height: 200px !important;
}
