/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.payment_method_stripe fieldset {
    border: 0;
    padding: 0;
    margin: 20px 0;
}

.wc_payment_methods {
    br {
        display: none;
    }
}

.wc-saved-payment-methods {
    padding: 0;
    list-style-type: none;
}

.woocommerce-table__product-name.product-name a {
    pointer-events: none;
}

/* Trailer played behind a blocked player message — see
   jws_streamvid_message_trailer_html(), theme option `video_message_trailer`.
   .videos-message is itself a stacking context (position + z-index: 20), so
   z-index: -1 puts the trailer above that element's own poster background and
   still under its dimming ::before and the .message-inner text. */
.videos-message-trailer {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.videos-message-trailer video,
.videos-message-trailer iframe {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border: 0;
}

.videos-message>.change-speaker {
    position: absolute;
    bottom: 16px;
    inset-inline-end: 20px;
    z-index: 2;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    padding: 0;
    transition: background .2s;
}

.videos-message>.change-speaker:hover {
    background: rgba(0, 0, 0, .7);
}

/* Poster-corner labels (content_badges meta box field) — see
   Jws_Streamvid_Media::content_badges(), fired from post_videos_media(). */
.post-media {
    position: relative;
}

.jws-content-badges {
    position: absolute;
    inset-inline-start: 10px;
    top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
    pointer-events: none;
    padding-inline-end: 50px;
}

.jws-content-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(17, 17, 17, .72);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .02em;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}