body.post-type-product .gamebox-html5-options {
    display: none;
}

.gamebox-play-button {
    text-align: center;
}

.gamebox-product-link {
    cursor: pointer;
}

.gamebox-single-player {
    margin-top: 48px;
    margin-bottom: 48px;
}

.product-images-wrapper .gamebox-single-player-media-replacement {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}

.product-images-wrapper .gamebox-single-player-media-replacement .gamebox-frame-wrap {
    max-width: none;
    width: 100%;
}

.gamebox-single-play-now-button {
    cursor: pointer;
}

.gamebox-single-play-now-action {
    margin-top: 18px;
    margin-bottom: 18px;
}

.product-actions .gamebox-single-play-now-action {
    margin-top: 0;
    margin-bottom: 0;
}

.gamebox-native-single-button-hidden {
    display: none !important;
}

.gamebox-frame-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.gamebox-frame-wrap,
.gamebox-modal-frame {
    position: relative;
    overflow: hidden;
}

.gamebox-frame-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.gamebox-frame-wrap[data-gamebox-visual-strategy="bottom_crop"] iframe,
.gamebox-frame-wrap[data-gamebox-visual-strategy="crop_overlay"] iframe,
.gamebox-modal-frame[data-gamebox-visual-strategy="bottom_crop"] iframe,
.gamebox-modal-frame[data-gamebox-visual-strategy="crop_overlay"] iframe {
    height: calc(100% + var(--gamebox-crop-bottom, 0px) + var(--gamebox-shift-up, 0px));
    transform: translateY(calc(-1 * var(--gamebox-shift-up, 0px)));
}

.gamebox-frame-wrap[data-gamebox-visual-strategy="bottom_overlay"]::after,
.gamebox-frame-wrap[data-gamebox-visual-strategy="crop_overlay"]::after,
.gamebox-modal-frame[data-gamebox-visual-strategy="bottom_overlay"]::after,
.gamebox-modal-frame[data-gamebox-visual-strategy="crop_overlay"]::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: var(--gamebox-crop-bottom, 0px);
    background: var(--gamebox-overlay-color, #000000);
    content: "";
    pointer-events: none;
}

.gamebox-aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.gamebox-aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.gamebox-aspect-9-16 {
    max-width: 520px;
    aspect-ratio: 9 / 16;
}

.gamebox-aspect-1-1 {
    max-width: 720px;
    aspect-ratio: 1 / 1;
}

.gamebox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(16px);
}

.gamebox-modal.is-open {
    display: flex;
}

.gamebox-modal-panel {
    position: relative;
    width: min(1180px, 100%);
    overflow: hidden;
    border-radius: 24px;
    background: #050505;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

.gamebox-modal-header {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.gamebox-modal-title {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gamebox-modal-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    align-items: center;
}

.gamebox-modal-button {
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.gamebox-modal-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.gamebox-modal-frame {
    background: #000;
}

.gamebox-modal-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.gamebox-modal-frame.gamebox-aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.gamebox-modal-frame.gamebox-aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.gamebox-modal-frame.gamebox-aspect-9-16 {
    max-height: 82vh;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
}

.gamebox-modal-frame.gamebox-aspect-1-1 {
    aspect-ratio: 1 / 1;
}

.gamebox-modal.gamebox-fullscreen .gamebox-modal-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.gamebox-modal.gamebox-fullscreen .gamebox-modal-frame {
    height: calc(100vh - 48px);
    aspect-ratio: auto;
}

body.gamebox-modal-open {
    overflow: hidden;
}

.gamebox-html5-scraper-progress {
    max-width: 760px;
    margin: 12px 0 18px;
}

.gamebox-html5-scraper-progress-track {
    position: relative;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcdcde;
}

.gamebox-html5-scraper-progress-track span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: #2271b1;
    animation: gamebox-html5-scraper-progress 1.15s ease-in-out infinite;
}

.gamebox-html5-scraper-progress.is-complete .gamebox-html5-scraper-progress-track span {
    width: 100%;
    animation: none;
}

.gamebox-html5-scraper-progress.is-error .gamebox-html5-scraper-progress-track span {
    width: 100%;
    animation: none;
    background: #b32d2e;
}

.gamebox-html5-scraper-progress-text {
    margin: 8px 0 0;
}

.gamebox-html5-schedule-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.gamebox-html5-schedule-picker input[type="date"],
.gamebox-html5-schedule-picker input[type="time"] {
    min-height: 36px;
}

.gamebox-html5-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 520px;
    margin: 0;
}

.gamebox-html5-schedule-list:empty::before {
    content: attr(data-empty-text);
    color: #646970;
}

.gamebox-html5-schedule-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
}

.gamebox-html5-recurring-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gamebox-html5-recurring-picker select,
.gamebox-html5-recurring-picker input[type="number"] {
    min-height: 36px;
}

.gamebox-html5-recurring-picker input[type="number"] {
    width: 96px;
}

.gamebox-html5-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.gamebox-html5-status-panel {
    margin-top: 24px;
    max-width: 900px;
}

.gamebox-html5-status-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    margin: 12px 0 20px;
}

.gamebox-html5-status-card {
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid #c3c4c7;
    background: #fff;
}

.gamebox-html5-status-card strong {
    display: block;
    color: #1d2327;
    font-size: 28px;
    line-height: 1.2;
}

.gamebox-html5-status-card span {
    display: block;
    margin-top: 4px;
    color: #646970;
}

.gamebox-html5-status-table {
    max-width: 760px;
}

.gamebox-html5-status-table th {
    width: 180px;
}

.gamebox-html5-preview-panel {
    margin-top: 24px;
}

.gamebox-html5-preview-table {
    margin-top: 12px;
}

.gamebox-html5-preview-table th,
.gamebox-html5-preview-table td {
    vertical-align: top;
}

.gamebox-html5-preview-table td {
    overflow-wrap: anywhere;
}

.gamebox-html5-preview-table .column-image {
    width: 82px;
}

.gamebox-html5-preview-table img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid #c3c4c7;
    background: #f6f7f7;
}

.gamebox-html5-screen-options-tab {
    position: absolute;
    top: 0;
    right: 20px;
    padding: 6px 12px;
    border: 1px solid #c3c4c7;
    border-top: 0;
    background: #fff;
    color: #646970;
    font-size: 13px;
    line-height: 1.4;
}

.gamebox-html5-scrapes-page .subsubsub {
    margin-top: 12px;
}

.gamebox-html5-task-search .search-box {
    margin: 6px 0 8px;
}

.gamebox-html5-task-filters {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0 0 4px 0;
}

.gamebox-html5-scrape-task-table {
    margin-top: 4px;
}

.gamebox-html5-scrape-task-table th,
.gamebox-html5-scrape-task-table td {
    vertical-align: middle;
}

.gamebox-html5-scrape-task-table .column-cb {
    width: 36px;
}

.gamebox-html5-scrape-task-table .row-actions.visible {
    position: static;
    color: #8c8f94;
}

.gamebox-html5-task-status {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
}

.gamebox-html5-task-status-stack {
    display: inline-grid;
    gap: 4px;
}

.gamebox-html5-task-status .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.gamebox-html5-task-status.is-waiting {
    color: #f0b000;
}

.gamebox-html5-task-status.is-preparing {
    color: #8c8f94;
}

.gamebox-html5-task-status.is-preparing .dashicons {
    animation: gamebox-html5-status-spin 1.1s linear infinite;
}

.gamebox-html5-task-status.is-running {
    color: #46b450;
    animation: gamebox-html5-status-pulse 1.4s ease-in-out infinite;
}

.gamebox-html5-task-status.is-running .dashicons {
    animation: gamebox-html5-status-pulse-icon 1.4s ease-in-out infinite;
}

.gamebox-html5-task-status.is-complete {
    color: #008a20;
}

.gamebox-html5-task-status.is-paused {
    color: #dba617;
}

.gamebox-html5-task-status.is-failed {
    color: #d63638;
}

.gamebox-html5-task-status.is-stopped {
    color: #646970;
}

.gamebox-html5-task-status.is-idle {
    color: #646970;
}

.gamebox-html5-task-status-progress {
    color: #646970;
    font-size: 12px;
    font-weight: 400;
}

.gamebox-html5-task-schedule {
    display: grid;
    grid-template-columns: max-content minmax(140px, 1fr);
    gap: 4px 18px;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.gamebox-html5-task-schedule dt {
    margin: 0;
    color: #1d2327;
    font-weight: 600;
}

.gamebox-html5-task-schedule dd {
    margin: 0;
    color: #50575e;
}

.gamebox-html5-task-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(80px, 1fr));
    gap: 8px 10px;
    max-width: 180px;
}

.gamebox-html5-task-actions .button {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.gamebox-html5-task-actions .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 1;
}

.gamebox-html5-task-actions.is-updating {
    opacity: 0.6;
}

.gamebox-html5-update-policy {
    margin: 8px 0 10px 20px;
}

.gamebox-html5-update-policy .description {
    margin: 0 0 6px;
}

.gamebox-html5-source-preset {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 8px;
}

.gamebox-html5-source-preset select {
    min-width: 260px;
}

.gamebox-html5-advanced-selectors {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(260px, 420px);
    gap: 8px 12px;
    align-items: center;
}

.gamebox-html5-advanced-selectors .description {
    grid-column: 1 / -1;
    margin: 0 0 4px;
}

.gamebox-html5-advanced-selectors input.regular-text {
    width: 100%;
    max-width: 420px;
}

.gamebox-html5-category-mapping {
    display: grid;
    gap: 8px;
    max-width: 640px;
    margin-top: 12px;
}

.gamebox-html5-category-mapping textarea {
    min-height: 110px;
}

.gamebox-html5-auto-tags {
    display: grid;
    gap: 8px;
    max-width: 640px;
    margin-top: 12px;
}

.gamebox-html5-auto-tags input.regular-text {
    width: 100%;
    max-width: 420px;
}

.gamebox-html5-product-defaults,
.gamebox-html5-player-defaults,
.gamebox-html5-gallery-defaults {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(260px, 420px);
    gap: 8px 12px;
    align-items: center;
    max-width: 700px;
}

.gamebox-html5-product-defaults .description,
.gamebox-html5-product-defaults textarea,
.gamebox-html5-player-defaults .description,
.gamebox-html5-gallery-defaults .description {
    grid-column: 1 / -1;
}

.gamebox-html5-product-defaults input.regular-text,
.gamebox-html5-product-defaults select,
.gamebox-html5-player-defaults select,
.gamebox-html5-gallery-defaults input[type="number"] {
    width: 100%;
    max-width: 420px;
}

.gamebox-html5-gallery-defaults label:first-of-type {
    grid-column: 1 / -1;
}

.gamebox-html5-scrape-logs {
    max-width: 980px;
}

.gamebox-html5-scrape-logs table {
    table-layout: fixed;
}

.gamebox-html5-scrape-logs th:nth-child(1),
.gamebox-html5-scrape-logs td:nth-child(1) {
    width: 150px;
}

.gamebox-html5-scrape-logs th:nth-child(2),
.gamebox-html5-scrape-logs td:nth-child(2) {
    width: 90px;
}

.gamebox-html5-scrape-logs td {
    overflow-wrap: anywhere;
    vertical-align: top;
}

.gamebox-html5-scrape-logs code {
    display: block;
    max-height: 86px;
    overflow: auto;
    white-space: pre-wrap;
}

.gamebox-html5-log-level {
    font-weight: 600;
}

.gamebox-html5-log-level-info {
    color: #2271b1;
}

.gamebox-html5-log-level-warning {
    color: #996800;
}

.gamebox-html5-log-level-error {
    color: #b32d2e;
}

.gamebox-html5-scrape-history-table th,
.gamebox-html5-scrape-history-table td {
    vertical-align: top;
}

.gamebox-html5-scrape-history-table .column-cb {
    width: 36px;
}

.gamebox-html5-scrape-history-table td {
    overflow-wrap: anywhere;
}

@keyframes gamebox-html5-scraper-progress {
    0% {
        left: -45%;
    }

    50% {
        left: 30%;
    }

    100% {
        left: 105%;
    }
}

@keyframes gamebox-html5-status-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes gamebox-html5-status-pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.62;
    }
}

@keyframes gamebox-html5-status-pulse-icon {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }
}

@media (max-width: 768px) {
    .gamebox-html5-status-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gamebox-modal {
        padding: 0;
    }

    .gamebox-modal-panel {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .gamebox-modal-frame {
        height: calc(100vh - 48px);
        max-height: none;
        aspect-ratio: auto !important;
    }

    .gamebox-modal-header {
        min-height: 48px;
    }
}
