.pc8,
.pc8 * {
    box-sizing: border-box;
}

.pc8 {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 32px 16px 70px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 25%, #17659a 0%, #0d4d7c 38%, #073457 68%, #052743 100%);
}

.pc8-rays {
    position: absolute;
    inset: -40% -20%;
    pointer-events: none;
    opacity: .30;
    background:
        repeating-conic-gradient(
            from -7deg at 50% 43%,
            rgba(255,255,255,.12) 0deg 8deg,
            transparent 8deg 18deg
        );
}

.pc8-container {
    position: relative;
    z-index: 1;
    width: min(1050px, 100%);
    margin: 0 auto;
}

.pc8-heading {
    max-width: 720px;
    margin: 0 auto 25px;
    text-align: center;
}

.pc8-kicker {
    display: block;
    margin-bottom: 6px;
    color: #5fd5ee;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.pc8-heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 6vw, 54px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.045em;
}

.pc8-heading h1 strong {
    color: #ff981b;
    font-weight: 950;
}

.pc8-heading p {
    margin: 12px auto 0;
    color: rgba(255,255,255,.88);
    font-size: 15px;
    line-height: 1.5;
}

.pc8-frame-picker {
    max-width: 650px;
    margin: 0 auto 17px;
}

.pc8-frame-picker-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.pc8-frame-picker-head strong {
    font-size: 14px;
}

.pc8-frame-picker-head span {
    color: rgba(255,255,255,.65);
    font-size: 11px;
}

.pc8-frame-list {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 2px 7px;
    scrollbar-width: thin;
}

.pc8-frame-option {
    width: 90px;
    flex: 0 0 90px;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255,255,255,.09);
    color: #fff;
    cursor: pointer;
}

.pc8-frame-option.active {
    border-color: #56d4ec;
    background: rgba(255,255,255,.16);
}

.pc8-frame-thumb {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(45deg,#edf4f8 25%,transparent 25%),
        linear-gradient(-45deg,#edf4f8 25%,transparent 25%),
        linear-gradient(45deg,transparent 75%,#edf4f8 75%),
        linear-gradient(-45deg,transparent 75%,#edf4f8 75%),
        #fff;
    background-size: 14px 14px;
    background-position: 0 0,0 7px,7px -7px,-7px 0;
}

.pc8-frame-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pc8-frame-option small {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 9px;
}

.pc8-editor-card {
    width: min(550px, 100%);
    margin: 0 auto;
    padding: 15px;
    border-radius: 22px;
    background: #fff;
    color: #183044;
    box-shadow: 0 24px 65px rgba(0,0,0,.25);
}

.pc8-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 1px 1px 11px;
}

.pc8-selected span {
    color: #7b8a97;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
}

.pc8-selected strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
}

.pc8-canvas-shell {
    position: relative;
    width: 100%;
    max-width: 510px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #dfe8ef;
    border-radius: 15px;
    background:
        linear-gradient(45deg,#edf4f8 25%,transparent 25%),
        linear-gradient(-45deg,#edf4f8 25%,transparent 25%),
        linear-gradient(45deg,transparent 75%,#edf4f8 75%),
        linear-gradient(-45deg,transparent 75%,#edf4f8 75%),
        #f9fcfe;
    background-size: 22px 22px;
    background-position: 0 0,0 11px,11px -11px,-11px 0;
    touch-action: none;
}

.pc8-canvas-shell.is-portrait {
    max-width: 310px;
}

.pc8-canvas-shell.is-landscape {
    max-width: 510px;
}

.pc8-canvas-shell canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: grab;
    touch-action: none;
}

.pc8-canvas-shell canvas:active {
    cursor: grabbing;
}

.pc8-empty-upload {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(78%, 310px);
    transform: translate(-50%, -50%);
    padding: 16px 12px;
    border: 0;
    border-radius: 14px;
    background: rgba(244,250,253,.91);
    color: #087e9f;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(7,71,105,.12);
}

.pc8-empty-upload[hidden] {
    display: none;
}

.pc8-camera {
    width: 34px;
    height: 34px;
    display: block;
    margin: 0 auto 8px;
}

.pc8-camera svg {
    width: 100%;
    height: 100%;
}

.pc8-empty-upload strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.pc8-empty-upload small {
    color: #6f8290;
    font-size: 11px;
}

.pc8-drag-hint {
    position: absolute;
    left: 50%;
    bottom: 11px;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(6,40,64,.78);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    pointer-events: none;
}

.pc8-zoom {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 13px 4px 10px;
    color: #637786;
}

.pc8-zoom input {
    width: 100%;
    accent-color: #1db5d3;
}

.pc8-tools {
    display: grid;
    grid-template-columns: 1fr 52px 52px;
    gap: 8px;
}

.pc8-upload-button,
.pc8-tool-button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
}

.pc8-upload-button {
    background: #1ca9c9;
    color: #fff;
}

.pc8-upload-button strong {
    font-size: 13px;
}

.pc8-tool-button {
    background: #f2f6f9;
    color: #4996a9;
    font-size: 22px;
}

.pc8-download-button {
    width: 100%;
    min-height: 50px;
    margin-top: 9px;
    border: 0;
    border-radius: 11px;
    background: #ff9e25;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.pc8-download-button:disabled {
    background: #ffd39b;
    cursor: not-allowed;
}

.pc8-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 13px 5px 1px;
    color: #708493;
}

.pc8-privacy span {
    color: #19a56f;
}

.pc8-privacy p {
    margin: 0;
    font-size: 10px;
    line-height: 1.4;
}

.pc8-no-frame {
    width: min(550px, 100%);
    margin: 30px auto;
    padding: 35px;
    border-radius: 18px;
    background: #fff;
    color: #17344c;
    text-align: center;
}

.pc8-no-frame p {
    margin-bottom: 0;
    color: #758593;
}


/* MODAL */

.pc8-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 16px;
    align-items: center;
    justify-content: center;
    background: rgba(3,22,39,.78);
    backdrop-filter: blur(5px);
}

.pc8-modal:not([hidden]) {
    display: flex;
}

.pc8-modal-card {
    position: relative;
    width: min(430px, 100%);
    max-height: calc(100vh - 25px);
    overflow: auto;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    color: #183044;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
}

.pc8-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef3f6;
    color: #496170;
    font-size: 22px;
    cursor: pointer;
}

.pc8-modal-kicker {
    display: block;
    margin-top: 8px;
    color: #168eac;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.pc8-modal-screen h2 {
    margin: 7px 0 5px;
    font-size: 25px;
}

.pc8-modal-screen > p {
    margin: 0;
    color: #71818e;
    font-size: 13px;
}

.pc8-countdown {
    display: block;
    margin: 10px 0 0;
    color: #ff9619;
    font-size: 48px;
    line-height: 1;
}

.pc8-modal-screen > small {
    color: #8a98a3;
}

.pc8-ad {
    width: min(320px, 100%);
    margin: 20px auto 0;
}

.pc8-ad > span {
    display: block;
    margin-bottom: 5px;
    color: #9aa5ad;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
}

.pc8-ad iframe {
    display: block;
    width: 300px;
    max-width: 100%;
    height: 250px;
    margin: 0 auto;
    border: 1px solid #edf1f3;
    border-radius: 8px;
    background: #fafcfd;
}

.pc8-ready-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 12px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16834b;
    font-size: 28px;
    font-weight: 900;
}

.pc8-ready-download {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    border-radius: 11px;
    background: #ff981b;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

.pc8-ready-close {
    margin-top: 9px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: #667987;
    cursor: pointer;
}

@media (max-width: 600px) {

    .pc8 {
        padding: 22px 10px 50px;
    }

    .pc8-heading {
        margin-bottom: 16px;
    }

    .pc8-heading h1 {
        font-size: 35px;
    }

    .pc8-heading p {
        max-width: 350px;
        font-size: 13px;
    }

    .pc8-frame-picker {
        margin-bottom: 11px;
    }

    .pc8-frame-picker-head {
        margin-inline: 4px;
    }

    .pc8-frame-picker-head span {
        display: none;
    }

    .pc8-editor-card {
        padding: 10px;
        border-radius: 17px;
    }

    .pc8-selected {
        margin: 2px 4px 8px;
    }

    .pc8-canvas-shell {
        border-radius: 12px;
    }

    .pc8-canvas-shell.is-portrait {
        max-width: 265px;
    }

    .pc8-empty-upload {
        padding: 13px 8px;
    }

    .pc8-tools {
        grid-template-columns: 1fr 48px 48px;
    }

    .pc8-upload-button,
    .pc8-tool-button {
        min-height: 46px;
    }

    .pc8-download-button {
        min-height: 48px;
    }

    .pc8-modal-card {
        padding: 20px 13px;
    }

}


/* ============================================================
   CRIADOR V8.1 - LEGIBILIDADE
   ============================================================ */

.pc8-kicker {
    font-size: 14px;
    line-height: 1.4;
}

.pc8-heading p {
    font-size: 17px;
    line-height: 1.55;
}

.pc8-frame-picker-head strong {
    font-size: 16px;
}

.pc8-frame-picker-head span {
    font-size: 13px;
}

.pc8-frame-option {
    width: 105px;
    flex-basis: 105px;
}

.pc8-frame-thumb {
    height: 86px;
}

.pc8-frame-option small {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.25;
}

.pc8-selected span {
    font-size: 11px;
}

.pc8-selected strong {
    font-size: 14px;
}

.pc8-empty-upload strong {
    font-size: 16px;
}

.pc8-empty-upload small {
    font-size: 13px;
    line-height: 1.4;
}

.pc8-drag-hint {
    padding: 7px 12px;
    font-size: 12px;
}

.pc8-upload-button strong {
    font-size: 15px;
}

.pc8-download-button {
    font-size: 16px;
}

.pc8-privacy p {
    font-size: 12px;
    line-height: 1.5;
}

.pc8-modal-kicker {
    font-size: 12px;
}

.pc8-modal-screen > p {
    font-size: 15px;
}

.pc8-modal-screen > small {
    font-size: 13px;
}

.pc8-ad > span {
    font-size: 10px;
}


/* MOBILE */

@media (max-width: 600px) {

    .pc8-kicker {
        font-size: 12px;
    }

    .pc8-heading h1 {
        font-size: 36px;
    }

    .pc8-heading p {
        max-width: 390px;
        font-size: 15px;
    }

    .pc8-frame-picker-head strong {
        font-size: 15px;
    }

    .pc8-frame-option {
        width: 98px;
        flex-basis: 98px;
    }

    .pc8-frame-thumb {
        height: 82px;
    }

    .pc8-frame-option small {
        font-size: 11px;
    }

    .pc8-selected span {
        font-size: 10px;
    }

    .pc8-selected strong {
        font-size: 13px;
    }

    .pc8-empty-upload strong {
        font-size: 15px;
    }

    .pc8-empty-upload small {
        font-size: 12px;
    }

    .pc8-privacy p {
        font-size: 11px;
    }

}


/* ============================================================
   COMPARTILHAR FOTO V1
   ============================================================ */

.pc8-share-button {

    width:
        100%;

    min-height:
        49px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-top:
        9px;

    padding:
        0 16px;

    border:
        2px solid
        #159fbd;

    border-radius:
        11px;

    background:
        #fff;

    color:
        #087d9c;

    font-size:
        15px;

    font-weight:
        900;

    cursor:
        pointer;

}


.pc8-share-button:hover {

    background:
        #eefbfe;

}


.pc8-share-note {

    max-width:
        320px;

    margin:
        9px auto 2px !important;

    color:
        #7b8c98 !important;

    font-size:
        11px !important;

    line-height:
        1.45 !important;

}


@media (
    max-width:
    600px
) {

    .pc8-share-button {

        min-height:
            50px;

        font-size:
            15px;

    }


    .pc8-share-note {

        font-size:
            12px !important;

    }

}
