/*
 * lzt/tiktok block. Plain CSS, NOT part of the Tailwind build (frontend.css):
 * it is enqueued only on pages that contain the block.
 */
.lzt-tt-wrap {
    margin-block: 0;
}

.lzt-tt {
    float: right;
    width: 300px;
    margin: 4px 0 24px 40px;
    font-family: inherit;
}

.lzt-tt__media {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #1c1917;
}

.lzt-tt a.lzt-tt__open {
    position: absolute;
    inset: 0;
    display: block;
    color: #fff;
    text-decoration: none;
}

.lzt-tt__open img,
.lzt-tt__preview {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.lzt-tt__preview {
    opacity: 0;
    transition: opacity 0.3s;
}

.lzt-tt__preview.is-on {
    opacity: 1;
}

.lzt-tt__open:focus-visible {
    outline: 3px solid #fecb00;
    outline-offset: -3px;
}

.lzt-tt__handle {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.lzt-tt__play {
    position: absolute;
    left: 50%;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px 9px 12px;
    border-radius: 999px;
    background: #fecb00;
    color: #1c1917;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
    transition: transform 0.15s;
}

.lzt-tt__open:hover .lzt-tt__play,
.lzt-tt__open:focus-visible .lzt-tt__play {
    transform: translateX(-50%) scale(1.06);
}

.lzt-tt__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lzt-tt__note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #686868;
}

.lzt-tt a.lzt-tt__cta {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 5px;
    background: #fecb00;
    color: #1c1917 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    text-decoration: none !important;
}

.lzt-tt a.lzt-tt__cta:hover,
.lzt-tt a.lzt-tt__cta:focus-visible {
    background: #e6b800;
}

/* FAQ and the post footer must not wrap around the floated card. */
.wp-block-post-content .lzt-faq,
.wp-block-post-content .lzt-blog-footer {
    clear: both;
}

@media (max-width: 781px) {
    .lzt-tt {
        float: none;
        width: 100%;
        max-width: 300px;
        margin: 20px auto 24px;
    }
}

/* Editor: show the card on its own, centred, instead of floating over other blocks. */
.editor-styles-wrapper .lzt-tt {
    float: none;
    margin: 0 auto;
}

.lzt-tt-editor__warning {
    max-width: 300px;
    margin: 0 auto 12px;
}
