.jcm-hp12cp-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    line-height: 0;
}

.jcm-hp12cp-stage {
    transform-origin: top left;
    will-change: transform;
}

.jcm-hp12cp-frame {
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.jcm-hp12cp-button-wrap {
    width: 100%;
    max-width: 100%;
    text-align: center;
    line-height: normal;
}

.jcm-hp12cp-button {
    display: inline-block;
    cursor: pointer;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 0.65em 1em;
    background: #fff;
    color: #111;
    font: inherit;
    line-height: 1.2;
    text-decoration: none;
}

.jcm-hp12cp-button:hover,
.jcm-hp12cp-button:focus {
    background: #f3f3f3;
}

html.jcm-hp12cp-modal-open,
body.jcm-hp12cp-modal-open {
    overflow: hidden !important;
}

.jcm-hp12cp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.jcm-hp12cp-modal.is-open {
    display: flex;
}

.jcm-hp12cp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.jcm-hp12cp-modal-dialog {
    --jcm-hp12cp-dialog-width: 744px;
    position: relative;
    z-index: 1;
    width: min(var(--jcm-hp12cp-dialog-width), calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 42px 12px 12px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    background: #202020;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
}

.jcm-hp12cp-modal-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.jcm-hp12cp-modal-close {
    position: absolute;
    top: 7px;
    right: 9px;
    z-index: 2;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    font: 400 26px/28px Arial, sans-serif;
    text-align: center;
}

.jcm-hp12cp-modal-close:hover,
.jcm-hp12cp-modal-close:focus {
    background: rgba(255, 255, 255, 0.24);
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 1px;
}

@media (max-width: 520px) {
    .jcm-hp12cp-modal {
        padding: 8px;
    }

    .jcm-hp12cp-modal-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        padding: 38px 8px 8px;
        border-radius: 8px;
    }

    .jcm-hp12cp-modal-close {
        top: 5px;
        right: 7px;
    }
}
