/**
 * DIVEIN Video Review Button — Elementor Widget Styles
 *
 * A CTA button with autoplaying background video, dark overlay,
 * and play icon. Adapted from the legacy divein.com implementation
 * using DIVEIN Design System tokens.
 *
 * @package FoxizChild
 * @since 1.15.0
 */

/* ─────────────────────────────────────────
   Wrapper (alignment control)
   ───────────────────────────────────────── */
.divein-video-review-btn-wrapper {
    margin: 0;
}

/* ─────────────────────────────────────────
   Button container
   ───────────────────────────────────────── */
.divein-video-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 215px;
    height: 40px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm);
    border: none;
    padding: 0;
    margin: 0;
    text-decoration: none;
    cursor: pointer;
    color: var(--color-text-inverse);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.divein-video-review-btn,
a.divein-video-review-btn:hover,
a.divein-video-review-btn:focus,
a.divein-video-review-btn:active,
a.divein-video-review-btn:visited {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.divein-video-review-btn:hover {
    transform: scale(1.03);
    color: var(--color-text-inverse);
}

.divein-video-review-btn:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
}

/* ─────────────────────────────────────────
   Background video
   ───────────────────────────────────────── */
.divein-video-review-btn__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: var(--radius-sm);
    pointer-events: none;
}

/* ─────────────────────────────────────────
   Dark overlay
   ───────────────────────────────────────── */
.divein-video-review-btn__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    border-radius: var(--radius-sm);
    z-index: 1;
    pointer-events: none;
    transition: background 0.2s ease;
}

.divein-video-review-btn:hover .divein-video-review-btn__overlay {
    background: rgba(0, 0, 0, 0.35);
}

/* ─────────────────────────────────────────
   Text + icon
   ───────────────────────────────────────── */
.divein-video-review-btn__text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-inverse);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--leading-loose);
    padding: var(--space-xs) var(--space-md);
    white-space: nowrap;
}

/* Play icon */
.divein-video-review-btn__icon {
    flex-shrink: 0;
    width: 13px;
    height: 17px;
}
