.elementor-field-group-video {
    padding-top: 4px;
}

.rbjob-video-upload {
    display: block;
    width: 100%;
}

.rbjob-video-upload__file,
.rbjob-video-upload__capture {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.rbjob-video-upload__preview {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: 450px;
    border-radius: 15px;
    object-fit: contain;
}

.rbjob-video-upload__preview-wrap {
    border-radius: 15px;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.rbjob-video-upload--has-video .rbjob-video-upload__preview {
    aspect-ratio: auto;
    border-radius: 15px;
    height: 300px;
    max-height: none;
    max-width: 100%;
    min-height: 0;
    width: auto;
}

.rbjob-video-upload--has-video .rbjob-video-upload__preview-wrap {
    display: inline-flex;
    height: 300px;
    max-width: 100%;
    width: auto;
}

.rbjob-video-upload__box {
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #fff;
    border-radius: 15px;
    height: var(--rbjob-video-upload-box-height, 250px);
    overflow: hidden;
    position: relative;
    transition: height 400ms ease, background-color 400ms ease;
}

.rbjob-video-upload--has-video .rbjob-video-upload__box {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 30px 30px 80px 30px;
}

.rbjob-video-upload--record-mode .rbjob-video-upload__box {
    background-color: rgba(0, 0, 0, 0.8);
}

.rbjob-video-upload__recorder {
    min-height: 250px;
    position: relative;
    background-color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease-out;
    z-index: 2;
}

.rbjob-video-upload--has-video .rbjob-video-upload__recorder {
    align-items: center;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

.rbjob-video-upload__playback {
    align-items: center;
    display: none;
    gap: 8px;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 0;
    position: absolute;
    z-index: 3;
}

.rbjob-video-upload--has-video .rbjob-video-upload__playback:not([hidden]) {
    display: flex;
}

.rbjob-video-upload__playback button {
    -webkit-appearance: none;
    appearance: none;
    align-items: center;
    border: 0;
    background: var(--e-global-color-primary);
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 25px;
    justify-content: center;
    box-sizing: border-box;
    outline: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 125ms linear;
    width: 25px;
}

.rbjob-video-upload__playback-icon {
    display: none;
    height: 17px;
    width: 17px;
}

.rbjob-video-upload__playback-icon path:not([fill]),
.rbjob-video-upload__playback-icon polygon:not([fill]) {
    fill: currentColor;
}

.rbjob-video-upload__playback-play[data-state="paused"] .rbjob-video-upload__playback-icon-play,
.rbjob-video-upload__playback-play[data-state="playing"] .rbjob-video-upload__playback-icon-pause,
.rbjob-video-upload__playback-mute[data-state="unmuted"] .rbjob-video-upload__playback-icon-volume,
.rbjob-video-upload__playback-mute[data-state="muted"] .rbjob-video-upload__playback-icon-muted {
    display: block;
}

.rbjob-video-upload__playback button:hover,
.rbjob-video-upload__playback button:active,
.rbjob-video-upload__playback button:focus,
.rbjob-video-upload__playback button:focus-visible {
    background-color: var(--e-global-color-accent);
    outline: 0;
}

.rbjob-video-upload__playback-progress {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #f2b7b3 0 var(--rbjob-video-progress, 0%), #fff var(--rbjob-video-progress, 0%) 100%);
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    flex: 1;
    height: 8px;
    min-width: 80px;
    margin-left: 4px;
    outline: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

.rbjob-video-upload__playback-progress::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    height: 8px;
}

.rbjob-video-upload__playback-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: var(--e-global-color-primary);
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    height: 16px;
    margin-top: -4px;
    width: 16px;
}

.rbjob-video-upload__playback-progress:disabled {
    opacity: 1;
}

.rbjob-video-upload__playback-progress::-moz-range-track {
    background: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    height: 8px;
}

.rbjob-video-upload__playback-progress::-moz-range-progress {
    background: var(--e-global-color-primary);
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    height: 8px;
}

.rbjob-video-upload__playback-progress::-moz-range-thumb {
    background: var(--e-global-color-primary);
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    height: 16px;
    width: 16px;
}

.rbjob-video-upload__playback-progress::-moz-focus-outer {
    border: 0;
}

.rbjob-video-upload__recorder--visible {
    opacity: 1;
    pointer-events: auto;
}

.rbjob-video-upload__recording-actions {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.rbjob-video-upload__recording-status {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: #111;
    display: none;
    font-family: "Lato", Sans-serif;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    line-height: 1.2;
    padding: 6px 12px;
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 4;
}

.rbjob-video-upload--record-mode:not(.rbjob-video-upload--has-video) .rbjob-video-upload__recording-status {
    display: flex;
}

.rbjob-video-upload__recording-status-dot {
    background: #8b8f98;
    border-radius: 50%;
    display: block;
    height: 10px;
    width: 10px;
}

.rbjob-video-upload__recording-status-active {
    display: none;
}

.rbjob-video-upload__recording-status-saving {
    display: none;
}

.rbjob-video-upload--recording .rbjob-video-upload__recording-status-dot {
    background: #e63131;
}

.rbjob-video-upload--recording .rbjob-video-upload__recording-status-idle {
    display: none;
}

.rbjob-video-upload--recording .rbjob-video-upload__recording-status-active {
    display: inline;
}

.rbjob-video-upload--record-mode.rbjob-video-upload--saving .rbjob-video-upload__recording-status {
    display: flex;
}

.rbjob-video-upload--record-mode.rbjob-video-upload--saving .rbjob-video-upload__recording-status-dot {
    background: var(--e-global-color-primary);
}

.rbjob-video-upload--record-mode.rbjob-video-upload--saving .rbjob-video-upload__recording-status-idle,
.rbjob-video-upload--record-mode.rbjob-video-upload--saving .rbjob-video-upload__recording-status-active {
    display: none;
}

.rbjob-video-upload--record-mode.rbjob-video-upload--saving .rbjob-video-upload__recording-status-saving {
    display: inline;
}

.rbjob-video-upload__recording-actions button[hidden],
.rbjob-video-upload:not(.rbjob-video-upload--recording) .rbjob-video-upload__stop {
    display: none !important;
}

.rbjob-video-upload:not(.rbjob-video-upload--has-video) .rbjob-video-upload__clear {
    display: none !important;
}

.rbjob-video-upload__countdown {
    align-items: center;
    color: #fff;
    display: flex;
    font-family: "Oswald", Sans-serif;
    font-size: 120px;
    font-weight: 700;
    inset: 0;
    justify-content: center;
    line-height: 1;
    position: absolute;
    text-shadow: none;
    z-index: 3;
}

.rbjob-video-upload__countdown[hidden] {
    display: none;
}

.rbjob-video-upload__actions {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: -5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.rbjob-video-upload--record-mode:not(.rbjob-video-upload--has-video) .rbjob-video-upload__actions {
    display: none;
}

.rbjob-video-upload--has-video .rbjob-video-upload__actions {
    left: auto;
    margin-top: 12px;
    position: static;
    top: auto;
    transform: none;
    z-index: 4;
}

.rbjob-video-upload--has-video .rbjob-video-upload__record,
.rbjob-video-upload--has-video .rbjob-video-upload__choose {
    display: none;
}

.rbjob-video-upload__actions button,
.rbjob-video-upload__recording-actions button {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    border: 0;
    border-radius: 50px;
    background: var(--e-global-color-primary);
    color: #fff;
    cursor: pointer;
    font-family: "Oswald", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.22222em;
    padding: 8px 20px;
    text-transform: uppercase;
    outline: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    will-change: opacity, background-color, color;
    transition: background-color 125ms linear, color 125ms linear, opacity 150ms ease-out;
}

.rbjob-video-upload__actions button:disabled,
.rbjob-video-upload__recording-actions button:disabled {
    cursor: not-allowed;
}

.rbjob-video-upload__recording-actions button:disabled {
    opacity: 0.5;
}

.rbjob-video-upload__record::after,
.rbjob-video-upload__choose::after {
    animation: rbjob-video-upload-spin 700ms linear infinite;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    height: 18px;
    width: 18px;
    will-change: opacity;
    opacity: 0;
    transition: opacity 150ms ease;
}

.rbjob-video-upload__record.rbjob-video-upload__record--loading,
.rbjob-video-upload__choose.rbjob-video-upload__choose--loading {
    color: rgba(255, 255, 255, 0);
}

.rbjob-video-upload__record.rbjob-video-upload__record--loading::after,
.rbjob-video-upload__choose.rbjob-video-upload__choose--loading::after {
    opacity: 1;
}

@keyframes rbjob-video-upload-spin {
    to {
        transform: rotate(360deg);
    }
}

.rbjob-video-upload__actions button:hover,
.rbjob-video-upload__actions button:active,
.rbjob-video-upload__actions button:focus,
.rbjob-video-upload__actions button:focus-visible,
.rbjob-video-upload__recording-actions button:hover,
.rbjob-video-upload__recording-actions button:active,
.rbjob-video-upload__recording-actions button:focus,
.rbjob-video-upload__recording-actions button:focus-visible {
    background: var(--e-global-color-accent);
    outline: 0;
}

.rbjob-video-upload__description {
    display: block;
    padding-bottom: 16px;
    font-family: "Lato", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.33333em;
    text-transform: uppercase;
}

.rbjob-video-upload__status {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    bottom: calc(50% + 44px);
    left: 50%;
    max-width: min(450px, calc(100% - 40px));
    opacity: 0;
    pointer-events: none;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    transition: opacity 260ms ease;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    z-index: 2;
}

.rbjob-video-upload--record-mode:not(.rbjob-video-upload--has-video) .rbjob-video-upload__status {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
}

.rbjob-video-upload__status[hidden] {
    display: none;
}

.rbjob-video-upload__status--visible {
    display: flex;
    opacity: 1;
    transform: translateX(-50%);
}

.rbjob-video-upload--record-mode:not(.rbjob-video-upload--has-video) .rbjob-video-upload__status--visible {
    transform: translate(-50%, -50%);
}

.rbjob-video-upload__status-text {
    display: block;
}

.rbjob-video-upload--has-video .rbjob-video-upload__status {
    margin-top: 10px;
    transform: translateX(-50%);
}

.rbjob-video-upload__help {
    display: block;
    position: absolute;
    width: 100%;
    max-width: 560px;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 30px;
    pointer-events: none;
    color: inherit;
    font-size: 13px;
    line-height: 1.222em;
    opacity: 1;
    text-align: center;
    transition: opacity 220ms ease;
}

.rbjob-video-upload--record-mode:not(.rbjob-video-upload--has-video) .rbjob-video-upload__help {
    opacity: 0;
}

@media (max-width: 1024px) {
    .rbjob-video-upload--has-video .rbjob-video-upload__box {
        padding: 24px 24px 80px;
    }

    .rbjob-video-upload--has-video .rbjob-video-upload__preview,
    .rbjob-video-upload--has-video .rbjob-video-upload__preview-wrap {
        height: clamp(240px, 42vw, 300px);
    }

    .rbjob-video-upload__recording-actions {
        bottom: 24px;
        left: 24px;
        right: 24px;
    }
}

@media (max-width: 767px) {
    .rbjob-video-upload__box {
        min-height: 240px;
    }

    .rbjob-video-upload__preview {
        min-height: 240px;
        border-radius: 14px;
    }

    .rbjob-video-upload--has-video .rbjob-video-upload__box {
        padding: 16px 16px 90px;
    }

    .rbjob-video-upload--has-video .rbjob-video-upload__preview-wrap {
        aspect-ratio: var(--rbjob-video-preview-ratio, auto);
        display: block;
        height: auto;
        width: min(450px, 100%);
    }

    .rbjob-video-upload--has-video .rbjob-video-upload__preview {
        aspect-ratio: var(--rbjob-video-preview-ratio, auto);
        height: auto;
        width: 100%;
    }

    .rbjob-video-upload__playback {
        bottom: 10px;
        gap: 7px;
        left: 10px;
        right: 10px;
    }

    .rbjob-video-upload__playback button {
        height: 30px;
        width: 30px;
    }

    .rbjob-video-upload__playback-icon {
        height: 18px;
        width: 18px;
    }

    .rbjob-video-upload__playback-progress {
        min-width: 60px;
    }

    .rbjob-video-upload__recording-actions {
        bottom: 20px;
        gap: 8px;
        left: 16px;
        right: 16px;
    }

    .rbjob-video-upload__actions {
        gap: 10px;
        margin-top: -10px;
        max-width: calc(100% - 32px);
        width: 100%;
    }

    .rbjob-video-upload__actions button,
    .rbjob-video-upload__recording-actions button {
        font-size: 16px;
        padding: 8px 16px;
    }

    .rbjob-video-upload__actions button {
        margin: 0 auto;
    }

    .rbjob-video-upload__recording-actions button {
        font-size: 14px;
    }

    .rbjob-video-upload__recording-status {
        font-size: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
        padding: 6px 10px;
        top: 12px;
    }

    .rbjob-video-upload__status {
        bottom: auto;
        top: 20px;
        font-size: 14px;
        height: 50px;
        justify-content: center;
        align-items: center;
        width: calc(100% - 40px);
        transform: translateX(-50%);
    }

    .rbjob-video-upload__description {
        font-size: 16px;
        padding-bottom: 12px;
    }

    .rbjob-video-upload__help {
        bottom: 12px;
        font-size: 12px;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .rbjob-video-upload__box {
        min-height: 250px;
    }

    .rbjob-video-upload__preview {
        min-height: 250px;
    }

    .rbjob-video-upload--has-video .rbjob-video-upload__preview-wrap {
        height: auto;
        width: 100%;
    }

    .rbjob-video-upload--has-video .rbjob-video-upload__preview {
        height: auto;
        width: 100%;
    }

    .rbjob-video-upload__actions {
        flex-direction: column;
    }

    .rbjob-video-upload__actions button {
        min-height: 40px;
        width: 100%;
        max-width: 260px;
    }

    .rbjob-video-upload__playback {
        bottom: 8px;
        left: 8px;
        right: 8px;
    }

    .rbjob-video-upload__playback button {
        height: 28px;
        width: 28px;
    }

    .rbjob-video-upload__playback-icon {
        height: 17px;
        width: 17px;
    }

    .rbjob-video-upload__countdown {
        font-size: 76px;
    }
}
