body.page-eprocurement {
    height: 100vh;
    height: 100dvh;
    overflow: hidden !important;
    margin: 0 !important;
    transition: none;
}

.page-eprocurement header {
    background: #fff;
}

.eprocurement-content {
    position: fixed;
    top: var(--eprocurement-header-height, 130px);
    right: 0;
    bottom: var(--eprocurement-bottom, 0px);
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    background: #000;
}

.eprocurement-stage {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.eprocurement-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.eprocurement-video::cue {
    color: #fff;
    background: #000;
    font-family: Arial, sans-serif;
    font-size: clamp(14px, var(--eprocurement-caption-size, 2vw), 30px);
    /* ::cue no admite padding: el contorno amplía el fondo negro 10px. */
    outline: 10px solid #000;
    line-height: calc(1.2em + 20px);
    text-shadow: none;
}

.eprocurement-tools {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.eprocurement-control {
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.eprocurement-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.eprocurement-control[aria-pressed="true"] {
    box-shadow: inset 0 -3px #fff;
}

.eprocurement-control:disabled {
    opacity: 0.6;
    cursor: wait;
}

.eprocurement-control .audio-off,
.eprocurement-control[aria-pressed="false"] .audio-on {
    display: none;
}

.eprocurement-control[aria-pressed="false"] .audio-off {
    display: block;
}

.eprocurement-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(44px, 10vw, 80px);
    height: clamp(44px, 10vw, 80px);
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: clamp(20px, 4vw, 32px);
    cursor: pointer;
}

.eprocurement-play span {
    margin-left: 5px;
}

.eprocurement-stage button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.eprocurement-error,
.eprocurement-status {
    position: absolute;
    top: 45%;
    left: 5%;
    right: 5%;
    margin: 0;
    padding: 0.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.85);
    text-align: center;
    font-size: clamp(12px, 1.3vw, 16px);
}

.eprocurement-status {
    top: auto;
    bottom: 22%;
    pointer-events: none;
}

.eprocurement-error a {
    color: #fff;
    text-decoration: underline;
}

.eprocurement-content [hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    body.page-eprocurement,
    .page-eprocurement header {
        transition: none;
    }
}
