/* Videoaken: ilma külgpolsterduse ja kerimisribadeta */
dialog.hk-video-popup{position:fixed!important;inset:0!important;box-sizing:border-box;width:var(--hk-video-width,800px)!important;max-width:calc(100vw - 24px)!important;height:auto!important;max-height:none!important;margin:auto!important;padding:0!important;border:0!important;border-radius:8px!important;background:#f0faf1!important;color:#17231a!important;overflow:hidden!important;box-shadow:0 16px 70px #0008;z-index:2147483647}
dialog.hk-video-popup[open]{display:block!important}dialog.hk-video-popup::backdrop{background:rgba(0,0,0,.55)}
.hk-video-popup .hk-video-panel{position:relative;box-sizing:border-box;width:100%;padding:0!important;margin:0!important;background:#f0faf1;overflow:hidden!important;border:0!important}
/* Õrnroheline päis ja akna juhtnupud */
.hk-video-popup .hk-video-header{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;gap:8px;min-height:40px;padding:4px 6px 4px 12px;background:#f0faf1;color:#17231a}
.hk-video-popup .hk-video-title{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:15px/24px system-ui,sans-serif;color:#17231a!important}
.hk-video-popup .hk-video-tools{display:flex;flex-shrink:0;gap:4px}
.hk-video-popup .hk-video-tools button{position:static!important;display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;margin:0!important;padding:0!important;border:1px solid #bdd8c0!important;border-radius:4px;background:transparent!important;color:#286b36!important;font:22px/1 Arial,sans-serif!important;box-shadow:none!important;cursor:pointer;transform:none!important}
.hk-video-popup .hk-video-tools button:hover{background:#fff!important}.hk-video-popup .hk-video-tools button:focus-visible{outline:2px solid #286b36;outline-offset:1px}.hk-video-popup .hk-video-tools button.hk-video-close:hover{color:#a02020!important;border-color:#a02020!important}
/* Video mõõdud arvutatakse algse kuvasuhte järgi: pilt ei jää laia musta kasti sisse */
.hk-video-popup video.hk-video-player{display:block!important;box-sizing:border-box;width:100%!important;height:auto!important;max-height:none!important;max-width:100%!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;object-fit:contain;background:transparent!important;transform:none!important}
.hk-video-popup .hk-video-error{margin:0;padding:10px;color:#17231a!important;font:14px/1.4 system-ui,sans-serif}.hk-video-popup .hk-video-error a{color:#286b36!important;text-decoration:underline}.hk-video-popup [hidden]{display:none!important}
/* Minimeeritud päiseriba */
dialog.hk-video-popup[data-state=minimized]{inset:auto 16px 16px auto!important;margin:0!important;width:340px!important;max-width:calc(100vw - 24px)!important}
.hk-video-popup[data-state=minimized] video.hk-video-player,.hk-video-popup[data-state=minimized] .hk-video-error{display:none!important}
@media(max-width:600px){.hk-video-popup .hk-video-header{min-height:44px;padding:4px 5px 4px 10px}.hk-video-popup .hk-video-tools button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}.hk-video-popup .hk-video-title{font-size:14px}dialog.hk-video-popup[data-state=minimized]{right:12px!important;bottom:12px!important}}
