/* ==========================================================================
   styles.css  �  Folha base do site (ap�s refatora��o do personalizador)
   --------------------------------------------------------------------------
   Conte�do organizado em 5 blocos:
     1) Helpers globais (utilit�rios e classes funcionais usadas pelo
        mycase.js � n�o dependem do tema visual).
     2) Cropper.js � UI do recorte (eg-wrapper, eg-button, cp-preview,
        cp-nav-r, cp-show-a-crop) reformulada para o layout em coluna
        �nica e otimizada para desempenho (composi��es GPU, contain,
        will-change).
     3) Alertify (lib de alertas � preservada na �ntegra).
     4) Overlay/Loader de gera��o do canvas (preservado e modernizado).
     5) Estilos gerais do site (cabe�alho, carrinho lateral, FAQ, upsell,
        frete, etc � preservados na �ntegra).

   Removidos da vers�o anterior (~3000 linhas de c�digo morto):
     � Bloco completo #cp-content / #cp-head / #cp-link-step / #cp-start /
       #cp-customize-device (UI antiga n�o mais presente no template).
     � Defini��es duplicadas de .s-t / .m-t / .g-t / .sqr / .wrap-img-drag /
       .img-tamanho / .no-visible / .text-danger / dicion�rio de cores
       (agora centralizadas e �nicas).
     � Reset secund�rio de #mycase / .step / .btn-open que sobrescrevia
       (com !important) o estilo de personalizador.css ? causa raiz das
       incompatibilidades reportadas.

   Arquivo 100% compat�vel com mycase.js (todos os IDs e classes
   funcionais preservados): #mycase, #cp-device-ori, #cp-device-ori-prev,
   #cp-device-ori-to-print, #cp-mask-img, #cp-gridme, #cp-gridme-cover,
   #cp-input-gen, #cp-crop-image, #cp-cropit-me, #cp-nav-r, #cp-btn-delete,
   #cp-sel-Device, #cp-sel-layout, #cp-sel-Photos, #cp-sel-Text,
   .sqr, .wrap-img-drag, .cp-h-v, .cp-modify, .cp-delete-fast, .cp-cibled-row,
   .cp-wpreviw, .preview, .cp-show-a-crop, .cp-input-txt, .cp-list-font,
   .cp-list-color, .cp-active-color-t, .s-t / .m-t / .g-t,
   .step / .step3 / .step4 / .step5, .actived-bl, .disabled, .btn-open,
   .icon-box, .jscroll, .fileinput-button, .eg-wrapper, .eg-button.
   ========================================================================== */


/* =============================== 1) HELPERS =============================== */

.clear {
    clear: both;
}

.hidden {
    display: none !important;
}

.text-danger {
    color: #a94442;
}

.no-visible {
    visibility: visible !important;
}

.temp-padding {
    padding-bottom: 100px !important;
}


/* Estrutura da grade no device (gerada pelo mycase.js ? chooseLayout).
   #mycase reaplica visuais; aqui ficam apenas regras estruturais. */

.container-fluid.w-sqr {
    width: 100% !important;
    height: 100%;
    padding: 0;
    margin: 0;
}

.sqr {
    position: relative;
    background-color: transparent !important;
}

.wrap-img-drag {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: transparent !important;
    background-size: cover;
    background-position: center;
}

.wrap-img-drag img {
    display: none;
    max-width: inherit !important;
}

.cp-wpreviw {
    background-color: transparent !important;
}

.img-tamanho {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto;
}


/* Tamanhos de texto aplicados ao #cp-input-gen pelo mycase.js. */

.s-t {
    font-size: 16px;
}

.m-t {
    font-size: 24px;
}

.g-t {
    font-size: 32px;
}


/* Dicion�rio global de cores (mant�m a API legada usada pelo mycase.js). */

.rouge {
    color: #e63946;
    background-color: #e63946;
}

.noir {
    color: #111111;
    background-color: #111111;
}

.gris {
    color: #9aa0a6;
    background-color: #9aa0a6;
}

.blanc {
    color: #ffffff;
    background-color: #ffffff;
}

.marron {
    color: #7b4b2a;
    background-color: #7b4b2a;
}

.bleu {
    color: #2563eb;
    background-color: #2563eb;
}

.vert {
    color: #22c55e;
    background-color: #22c55e;
}

.jaune {
    color: #facc15;
    background-color: #facc15;
}

.rose {
    color: #ec4899;
    background-color: #ec4899;
}

.orange {
    color: #f97316;
    background-color: #f97316;
}

.gris-f {
    color: #4b5563;
    background-color: #4b5563;
}

.orange-c {
    color: #fb923c;
    background-color: #fb923c;
}

.turk {
    color: #14b8a6;
    background-color: #14b8a6;
}

.wet {
    color: #34495e;
}


/* Bot�o de upload custom (usado pelo input file do personalizador). */

.fileinput-button {
    position: relative;
    overflow: hidden;
}

.fileinput-button input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    font-size: 200px;
    direction: ltr;
    cursor: pointer;
}


/* ============================ 2) CROPPER.JS UI ============================
   O JS injeta dinamicamente:
     <ul id="cp-nav-r"> ... </ul>
     <div class="eg-wrapper"><img class="cropper" src="..."/></div>
     <div class="eg-button"> #reset #zoomIn #zoomOut ... </div>
     <div class="cp-preview" id="cp-main">
       <div id="cp-device-ori-prev"> [clone do device] </div>
     </div>
   Tudo dentro de #cp-crop-image > #cp-cropit-me, que vive na coluna estreita
   (col-lg-4). Por isso tudo � dimensionado por % com altura clampada
   (clamp), sem largura fixa em px. Dropamos prefixos -webkit/-moz/-ms j�
   suportados nativamente, e usamos contain/will-change para isolar a
   pintura e reduzir custo de re-render durante o drag/zoom.
   ========================================================================== */


/* OVERLAY do recorte: cobre toda a coluna do preview com z-index alto e
     fundo opaco. Antes ficava no fluxo (margin:12px 0 0) e abria min�sculo
     no canto da tela. Agora � absoluto sobre o .col-12 do preview (que
     recebe position:relative em personalizador.css). O Cropper.js sempre
     nasce com dimens�es reais � fim do "abre em branco".
     IMPORTANTE: o display:block � for�ado pela classe .is-open (mycase.js
     adiciona ANTES de iniciar o Cropper.js) para que o canvas calcule
     width/height corretos. */

/* #cp-crop-image e #cp-cropit-me — toda a estilização visual fica em
   personalizador.css (seção 11). Aqui apenas regras estruturais mínimas
   que o Cropper.js precisa para calcular dimensões corretamente. */

#cp-crop-image {
    display: none;
}

#cp-crop-image.is-open {
    display: block;
}

#cp-cropit-me {
    display: block;
    width: 100%;
}


/* Toolbar de a��es (Apagar / Desfaz / OK) */

#cp-nav-r {
    display: none; /* Hide old toolbar - new layout uses .cp-crop-toolbar */
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    overflow: visible;
    list-style: none;
}

#cp-nav-r li {
    float: none;
    margin: 0;
    list-style: none;
}

#cp-nav-r li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1f;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
    cursor: pointer;
    white-space: nowrap;
}

#cp-nav-r li a:hover {
    color: #be1522;
    border-color: #be1522;
    background: #fff;
}

#cp-nav-r li #cp-btn-delete,
#cp-nav-r li a#cp-btn-delete {
    color: #dc2626 !important;
    background: #fff !important;
    border-color: #fecaca !important;
}

#cp-nav-r li #cp-btn-delete:hover {
    color: #b91c1c !important;
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
}

#cp-nav-r li .cl-validate-crop {
    color: #fff !important;
    background: #be1522 !important;
    border-color: #be1522 !important;
}

#cp-nav-r li .cl-validate-crop:hover {
    background: #9a1019 !important;
    border-color: #9a1019 !important;
}


/* Wrapper da imagem que est� sendo recortada � fluido e responsivo.
   Antes: width:460px; height:460px (estourava na coluna estreita).
   Agora: 100% da largura dispon�vel, altura clamp(220, 38vw, 360). */

.eg-wrapper {
    position: relative;
    display: block;
    width: 100% !important;
    height: clamp(280px, 46vw, 420px) !important;
    margin: 0;
    overflow: hidden;
    background: transparent; /* Let personalizador.css handle background */
    border: none; /* Let personalizador.css handle border */
    border-radius: 0; /* Let personalizador.css handle border-radius */
    clear: both;
    contain: layout paint;
}

.eg-wrapper:after {
    box-shadow: none;
}

.eg-wrapper img.cropper {
    display: block;
    max-width: 100%;
    will-change: transform;
    /* dica para GPU durante zoom/move */
}


/* Mini preview ao vivo (usada pelo Cropper.js via op��o preview: '.preview').
   Posicionada sob o wrapper para n�o brigar com a coluna estreita. */

.preview {
    display: none; /* Hide old preview - new layout uses .cp-crop-preview-area */
    position: relative;
    float: none;
    width: 100%;
    max-width: 170px;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    opacity: .9;
}

.preview-lg {
    width: 100%;
    max-width: 220px;
    height: auto;
}


/* Toolbar de zoom/reset (#reset, #zoomIn, #zoomOut, #rotate*) */

.eg-button {
    display: none; /* Hide old button toolbar - new layout uses .cp-crop-toolbar */
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 10px 0 0;
    padding: 8px;
    background: #f7f7f9;
    border-radius: 10px;
    overflow: visible;
}

.eg-button a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #1a1a1f;
    transition: color .2s, border-color .2s, background .2s, transform .15s;
}

.eg-button a:hover {
    color: #be1522;
    border-color: #be1522;
    transform: translateY(-1px);
}


/* Esconde os �cones empilhados antigos do FA (fa-stack 3x quadrado);
   mostramos apenas o �cone funcional (zoom/rotate). */

.eg-button .fa-stack {
    width: 1em;
    height: 1em;
    line-height: 1;
    font-size: 18px;
    position: static;
}

.eg-button .fa-square,
.eg-button .fa-stack-3x {
    display: none !important;
}

.eg-button .fa-stack-2x {
    position: static !important;
    width: auto !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: inherit !important;
    text-align: center;
}

.eg-button a:hover .fa-stack-2x {
    color: #be1522 !important;
}


/* Container do mini-preview ao lado do crop. Era position:absolute;
   right:470px (quebrava em coluna estreita). Agora � est�tico e aparece
   abaixo da imagem cortada (ainda mant�m o ID/classe usados pelo JS). */

.cp-preview,
#cp-main {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    margin: 10px auto 0;
    display: flex;
    justify-content: center;
}

#cp-crop-image .cropper-modal {
    opacity: .18 !important;
    background-color: #000 !important;
}

#cp-crop-image .cropper-view-box {
    outline: 1px solid rgba(255, 255, 255, .72) !important;
    box-shadow: 0 0 0 9999em rgba(0, 0, 0, .12) !important;
}

#cp-crop-image .cropper-face {
    background-color: rgba(255, 255, 255, .04) !important;
}

#cp-device-ori-prev {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

#cp-device-ori-prev .wrap-img-drag {
    background: none !important;
}

#cp-device-ori-prev #cp-gridme-cover,
#cp-device-ori-prev #cp-input-gen {
    opacity: 0;
}

#cp-device-ori-prev #cp-gridme-cover .wrap-img-drag,
#cp-device-ori-prev #cp-input-gen .wrap-img-drag {
    display: none;
}

#cp-device-ori-prev .cp-show-a-crop {
    display: none !important;
}

.cp-wpreviw {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: block;
}

.cp-wpreviw img {
    display: block !important;
}

.cp-show-a-crop {
    display: block !important;
    opacity: 1;
    position: relative;
}


/* No grid principal, links que o mycase.js insere dentro do .wrap-img-drag
   (dropdown/handles antigos) ficam ocultos � apenas o overlay .cp-h-v
   gerenciado pelo personalizador.css aparece. */

#cp-gridme .wrap-img-drag a {
    display: none !important;
}


/* Vers�o grande para impress�o (canvas-to-image � gerar PNG) */

#cp-device-ori-to-print {
    position: absolute;
    left: -9999px;
    top: 0;
    overflow: hidden;
    display: block;
    z-index: 1;
}

#cp-device-ori-to-print #cp-device-ori {
    width: 524px;
}

#cp-device-ori-to-print #cp-gridme,
#cp-device-ori-to-print #cp-gridme-cover {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}


/* Responsividade do crop em mobile (? 600px) */

@media (max-width: 600px) {
    .eg-wrapper {
        height: clamp(200px, 64vw, 320px) !important;
    }
    .eg-button a {
        width: 36px;
        height: 36px;
    }
    #cp-nav-r li a {
        padding: 0 11px;
        font-size: 12px;
        height: 34px;
    }
    .preview,
    .preview-lg {
        max-width: 180px;
    }
}


/* ====================== 3) ALERTIFY (preservado) ========================== */


/* alertify */


/* line 1134, ../scss/styles.scss */

.alertify,
.alertify-show,
.alertify-log {
    -webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -moz-transition: all 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -ms-transition: all 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -o-transition: all 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* easeOutBack */
}


/* line 1141, ../scss/styles.scss */

.alertify-hide {
    -webkit-transition: all 250ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
    -moz-transition: all 250ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
    -ms-transition: all 250ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
    -o-transition: all 250ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
    transition: all 250ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
    /* easeInBack */
}


/* line 1148, ../scss/styles.scss */

.alertify-log-hide {
    -webkit-transition: all 500ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
    -moz-transition: all 500ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
    -ms-transition: all 500ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
    -o-transition: all 500ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
    transition: all 500ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
    /* easeInBack */
}


/* line 1155, ../scss/styles.scss */

.alertify-cover {
    position: fixed;
    z-index: 99999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    filter: alpha(opacity=0);
    opacity: 0;
}


/* line 1162, ../scss/styles.scss */

.alertify-cover-hidden {
    display: none;
}


/* line 1165, ../scss/styles.scss */

.alertify {
    position: fixed;
    z-index: 99999;
    top: 50px;
    left: 50%;
    width: 550px;
    margin-left: -275px;
    opacity: 1;
}


/* line 1172, ../scss/styles.scss */

.alertify-hidden {
    -webkit-transform: translate(0, -150px);
    -moz-transform: translate(0, -150px);
    -ms-transform: translate(0, -150px);
    -o-transform: translate(0, -150px);
    transform: translate(0, -150px);
    opacity: 0;
    display: none;
}


/* overwrite display: none; for everything except IE6-8 */


/* line 1182, ../scss/styles.scss */

:root *>.alertify-hidden {
    display: block;
    visibility: hidden;
}


/* line 1186, ../scss/styles.scss */

.alertify-logs {
    position: fixed;
    z-index: 5000;
    bottom: 10px;
    right: 10px;
    width: 300px;
}


/* line 1193, ../scss/styles.scss */

.alertify-logs-hidden {
    display: none;
}


/* line 1196, ../scss/styles.scss */

.alertify-log {
    display: block;
    margin-top: 10px;
    position: relative;
    right: -300px;
    opacity: 0;
}


/* line 1203, ../scss/styles.scss */

.alertify-log-show {
    right: 0;
    opacity: 1;
}


/* line 1207, ../scss/styles.scss */

.alertify-log-hide {
    -webkit-transform: translate(300px, 0);
    -moz-transform: translate(300px, 0);
    -ms-transform: translate(300px, 0);
    -o-transform: translate(300px, 0);
    transform: translate(300px, 0);
    opacity: 0;
}


/* line 1215, ../scss/styles.scss */

.alertify-dialog {
    padding: 25px;
}


/* line 1218, ../scss/styles.scss */

.alertify-resetFocus {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}


/* line 1228, ../scss/styles.scss */

.alertify-inner {
    text-align: center;
}


/* line 1231, ../scss/styles.scss */

.alertify-text {
    margin-bottom: 15px;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 100%;
}


/* line 1242, ../scss/styles.scss */

.alertify-button,
.alertify-button:hover,
.alertify-button:active,
.alertify-button:visited {
    background: none;
    text-decoration: none;
    border: none;
    /* line-height and font-size for input button */
    line-height: 1.5;
    font-size: 100%;
    display: inline-block;
    cursor: pointer;
    margin-left: 5px;
}

@media only screen and (max-width: 680px) {
    /* line 1256, ../scss/styles.scss */
    .alertify,
    .alertify-logs {
        width: 90%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
    /* line 1262, ../scss/styles.scss */
    .alertify {
        left: 5%;
        margin: 0;
    }
}


/**
 * Default Look and Feel
 */


/* line 1271, ../scss/styles.scss */

.alertify,
.alertify-log {
    font-family: sans-serif;
}


/* line 1274, ../scss/styles.scss */

.alertify {
    background: #f6f6f6;
    border: 10px solid #333333;
}


/* line 1284, ../scss/styles.scss */

.alertify-text {
    border: 1px solid #cccccc;
    padding: 10px;
}


/* line 1289, ../scss/styles.scss */

.alertify-button {
    color: #FFF;
    font-weight: bold;
    padding: 6px 15px;
    text-decoration: none;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    background-image: linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
}


/* line 1304, ../scss/styles.scss */

.alertify-button:hover,
.alertify-button:focus {
    outline: none;
    background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    background-image: linear-gradient(top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}


/* line 1312, ../scss/styles.scss */

.alertify-button:focus {
    box-shadow: 0 0 15px #2b72d5;
}


/* line 1315, ../scss/styles.scss */

.alertify-button:active {
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}


/* line 1321, ../scss/styles.scss */

.alertify-button-cancel,
.alertify-button-cancel:hover,
.alertify-button-cancel:focus {
    background-color: #333333;
    border: 1px solid #333333;
}


/* line 1327, ../scss/styles.scss */

.alertify-button-ok,
.alertify-button-ok:hover,
.alertify-button-ok:focus {
    background-color: #333333;
    border: 1px solid #333333;
}


/* line 1332, ../scss/styles.scss */

.alertify-log {
    background: #1F1F1F;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 4px;
    color: #FFF;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);
}


/* line 1340, ../scss/styles.scss */

.alertify-log-error {
    background: #FE1A00;
    background: rgba(254, 26, 0, 0.9);
}


/* line 1344, ../scss/styles.scss */

.alertify-log-success {
    background: #5CB811;
    background: rgba(92, 184, 17, 0.9);
}


/* line 1348, ../scss/styles.scss */

.alertify-message {
    text-align: center;
    margin-bottom: 15px;
    color: #3d3d3d;
    font-size: 14px;
}


/* line 1354, ../scss/styles.scss */

#cp-device-ori #cp-gridme .sqr .wrap-img-drag img {
    z-index: 10 !important;
}


/* line 1363, ../scss/styles.scss */

.no-bg-gen {
    background: none !important;
}

#cp-device-ori-to-print {
    position: absolute;
    left: 50%;
    top: 60px;
    overflow: hidden;
    display: block;
    z-index: 1;
    /*
  -moz-transform: scale(2);
  -webkit-transform: scale(2);
  -o-transform: scale(2);
  transform: scale(2);
  */
}

.step5 .list {
    padding: 20px 0;
}

.no-phone {
    /*
    -moz-transform: scale(2);
    -webkit-transform: scale(2);
    -o-transform: scale(2);
    transform: scale(2);
  */
}

.no-phone #cp-mask-img {
    visibility: hidden;
}

.overlay-bg {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, .91);
    display: none;
    z-index: 9999999999;
}

.overlay-bg .loader-canvas {
    background: #000 none repeat scroll 0 0;
    border: 1px solid #e5e5e5;
    height: 20px;
    left: 50%;
    margin-left: -140px;
    position: relative;
    top: 100px;
    width: 280px;
}

.overlay-bg .loader-canvas .progress {
    height: 19px;
    background: #fff;
    width: 0%;
    overflow: hidden;
    -webkit-transition-property: width;
    -moz-transition-property: width;
    -o-transition-property: width;
    transition-property: width;
    -webkit-transition-duration: 0.4s;
    -moz-transition-duration: 0.4s;
    -o-transition-duration: 0.4s;
    transition-duration: 0.4s;
}

.overlay-bg .loader-canvas .progress-txt {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    right: 0;
    text-align: center;
    top: -30px;
    width: 100%;
    font-family: 'Poiret One'
}

.overlay-bg .loader-canvas .progress-title {
    color: #fff;
    display: block;
    font-size: 20px;
    font-weight: bold;
    height: 25px;
    line-height: 25px;
    position: absolute;
    text-align: center;
    top: 27px;
    width: 100%;
    font-family: 'Poiret One'
}

#mycase {
    position: relative;
}

a:hover,
a:active,
a:focus {
    outline: none;
    text-decoration: none;
}

#layer_cart {
    top: 35%;
}

#cp-content #cp-sel-Photos .cp-btn-more-pic .fa-instagram {
    color: #4c4c4c;
    font-size: 30px;
}

#cp-content #cp-sel-Photos .cp-btn-more-pic:hover .fa-instagram {
    color: #fff;
}

#cp-device-ori-to-print #cp-device-ori {
    width: 524px;
}

#cp-device-ori-to-print #cp-gridme,
#cp-device-ori-to-print #cp-gridme-cover {
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}

.cp-wrlst {
    float: left;
    width: 545px;
    overflow: hidden;
    position: relative;
    height: 160px;
}

.cp-device {
    position: relative;
    left: 0;
    top: 0;
}

#cp-content #cp-start .cp-row .cp-brand {
    float: left;
    height: 145px;
    line-height: 145px;
    width: 115px;
}

@media screen (min-width: 480px) and (max-width: 1023px) {
    #cp-gridme-cover .no-visible {
        visibility: visible !important;
    }
    .cp-wrlst {
        overflow: auto;
    }
    .cp-device {
        position: static;
    }
    #cp-content #cp-sel-layout {
        width: 100% !important;
        overflow: auto;
    }
    #cp-content #cp-sel-layout ul {
        left: 0 !important;
    }
    #wrap-phone {
        width: 515px !important;
        margin: 0 auto;
    }
}

@media screen and (max-width: 1024px) {
    #cp-gridme-cover .no-visible {
        visibility: visible !important;
    }
    .cp-wrlst {
        overflow: auto;
    }
    .cp-device {
        position: static;
    }
    #cp-content #cp-sel-layout {
        width: 100% !important;
        overflow: auto;
    }
    #cp-content #cp-sel-layout ul {
        left: 0 !important;
    }
}

@media screen and (max-width: 710px) {
    .cp-size-big,
    .cp-size-big #cp-content,
    #cp-customize-device,
    #cp-content,
    #cp-wrap-content,
    #cp-start,
    #cp-customize-device {
        width: 316px !important;
    }
    .cp-wrlst {
        width: 236px !important;
    }
    #cp-content #cp-head {
        height: 57px;
    }
    #cp-content #cp-head #cp-title-step li i {
        height: 54px;
        line-height: 54px;
    }
    #cp-content #cp-head #cp-link-step {
        height: 50px;
        margin: 0;
        width: 161px;
    }
    #cp-content #cp-start .cp-row .cp-brand i {
        color: #a3a3a3;
        font-size: 30px;
    }
    #cp-content #cp-start .cp-row .cp-brand {
        width: 60px;
        padding: 0 15px;
    }
    #cp-content #cp-start .cp-row .cp-device {
        display: block;
        overflow: auto;
        width: 230px;
    }
    #cp-apple-dev {
        margin-bottom: 30px;
    }
    #cp-content #cp-head #cp-title-step li span {
        left: 8px;
        position: absolute;
        top: 52px;
    }
    #cp-content #cp-start {
        padding: 60px 0 0;
    }
    #cp-content #cp-customize-device .cp-info-dev {
        left: 0;
        padding: 42px 20px 20px;
        position: relative;
        top: 0;
        width: 100%;
    }
    #cp-device-ori,
    #cp-device-ori-gen {
        right: 0;
    }
    #cp-content #cp-sel-Text {
        margin: 0 auto;
        padding: 28px 0 60px;
        position: relative;
        right: 0;
        top: 0;
        width: 217px;
    }
    #cp-content #cp-sel-Photos {
        margin-left: 16px;
        overflow: hidden;
        position: relative;
        width: 273px;
    }
    #cp-content #cp-customize-device .cp-btn-action {
        bottom: 0;
        left: 50px;
        position: absolute;
        width: 217px;
        top: auto;
        z-index: 60;
    }
    #cp-content #cp-customize-device .cp-btn-action a {
        clear: none;
        margin-left: 21px;
    }
    #cp-content #cp-sel-layout ul {
        width: 970px;
    }
    #cp-crop-image #cp-cropit-me {
        margin: 0 auto;
        position: relative;
        top: 29px;
        width: 310px;
    }
    .eg-wrapper {
        height: 310px;
        width: 310px;
    }
    .cp-preview {
        position: absolute !important;
        right: 82px;
        top: 439px;
        width: 150px !important;
    }
    .cp-nav-r {
        justify-content: center;
        margin: 0 auto 0px !important;
    }
    #cp-crop-image {
        background: none repeat scroll 0 0 rgba(246, 246, 246, 0.98);
    }
    .overlay-bg .loader-canvas {
        position: relative;
        top: 90px;
    }
}


/* ================ 4) OVERLAY/LOADER DE GERA��O DO CANVAS ==================
   Usado pelo mycase.js durante a gera��o final do PNG (.cp-loader,
   .overlay-bg .loader-canvas .progress* .progress-title). */

.no-phone #cp-mask-img {
    visibility: hidden;
}

.overlay-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .91);
    display: none;
    z-index: 9999999999;
}

.overlay-bg .loader-canvas {
    position: relative;
    left: 50%;
    top: 100px;
    width: 280px;
    height: 20px;
    margin-left: -140px;
    background: #000;
    border: 1px solid #e5e5e5;
}

.overlay-bg .loader-canvas .progress {
    width: 0%;
    height: 19px;
    background: #fff;
    overflow: hidden;
    transition: width .4s ease;
}

.overlay-bg .loader-canvas .progress-txt,
.overlay-bg .loader-canvas .progress-title {
    position: absolute;
    width: 100%;
    color: #fff;
    text-align: center;
    font-family: 'Poiret One', system-ui, sans-serif;
}

.overlay-bg .loader-canvas .progress-txt {
    top: -30px;
    right: 0;
    font-size: 16px;
    font-weight: bold;
}

.overlay-bg .loader-canvas .progress-title {
    top: 27px;
    display: block;
    height: 25px;
    line-height: 25px;
    font-size: 20px;
    font-weight: bold;
}

#layer_cart {
    top: 35%;
}


/* ====================== 5) ESTILOS GERAIS DO SITE ========================= */

#mycase .container-fluid {
    padding: 0;
}

.hidden {
    display: none !important;
}

.menu-loading {
    text-align: center;
    padding: 2rem;
    color: #555;
}

.menu-error {
    color: red;
    text-align: center;
    padding: 2rem;
}

.menu-back-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #333;
}

.menu-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.icone-tab {
    width: 40px;
}

.btn-link:hover {
    color: #242424 !important;
    text-decoration: unset;
    background-color: transparent !important;
    border-color: transparent !important;
}

.btn-link {
    font-weight: 400;
    color: #242424 !important;
    text-decoration: unset !important;
}

.faq-item.mb-2 {
    margin-left: 20px;
}

.faq-item.mb-2 p {
    margin-left: 20px;
}


/* Capinha para celular Flamengo Uniforme 2025 */

.titulo-capa {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700 !important;
    font-size: 32px !important;
    color: #242424 !important;
}

.preco-capa {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500 !important;
    font-size: 24px !important;
    color: #BE1522 !important;
}

.preco-capa-promo {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300 !important;
    font-size: 24px !important;
    text-decoration-line: line-through;
    color: #242424 !important;
}

.preco-capa-promo-produto-detalhe {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300 !important;
    font-size: 24px !important;
    text-decoration-line: line-through;
    color: #242424 !important;
}

.alinhamento-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Escolha o celular */

.p {
    font-weight: 500;
    font-size: 16px;
    color: #242424;
}

.selecoes {
    background: #F2F2F2;
    height: 40px !important;
    text-align: center;
    font-size: 16px !important;
    color: #242424;
    font-weight: 600 !important;
    border-radius: 12.6956px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg width='22' height='12' viewBox='0 0 22 12' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M21.1594 1.95155C21.0732 2.17451 20.9618 2.37702 20.7886 2.55238L11.43 11.3186C10.9364 11.7756 10.1744 11.723 9.69259 11.2801L0.375526 2.55271C-0.467054 1.68299 0.268143 0.920227 1.01587 0.325439C1.47152 -0.0369997 1.96762 -0.112102 2.49737 0.178251L10.5967 7.71604L18.5343 0.287218C19.0823 -0.135906 19.6457 -0.058792 20.1679 0.345557C20.5499 0.64161 20.9948 1.08653 21.1591 1.52642L21.1591 1.95222L21.1594 1.95155Z' fill='%23242424'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    /* aumente/diminua se quiser */
    padding-right: 40px;
}

.texto-frete-destaque {
    font-family: 'Montserrat' !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #7EB339 !important;
}

.texto-frete {
    font-family: 'Montserrat' !important;
    font-style: normal !important;
    font-weight: 300 !important;
    font-size: 18px !important;
    color: #242424 !important;
    text-align: center !important;
}

.upsell-box {
    background: #F2F2F2 !important;
    border-radius: 20px !important;
    padding: 24px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.upsell-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #242424 !important;
    /* margin-bottom: 20px !important; */
}

.upsell-item {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 9px 0px 0px 0px !important;
}

.upsell-item+.upsell-item {
    border-top: 1px solid #494949 !important;
}

.upsell-radio {
    width: 22px !important;
    height: 22px !important;
}

.upsell-img {
    width: 55px !important;
    height: auto !important;
}

.upsell-info {
    flex: 1 !important;
}

.upsell-name {
    font-size: 1rem !important;
    font-weight: 300 !important;
    color: #242424 !important;
    line-height: 1.3 !important;
}

.imagem-upsell {
    width: 75px !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.upsell-price {
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    color: #7EB339 !important;
    margin-top: 6px !important;
}


/* MOBILE AJUSTES */

@media (max-width:480px) {
    .upsell-box {
        padding: 18px !important;
    }
    .upsell-title {
        font-size: 1.2rem !important;
        margin-bottom: 16px !important;
    }
    .upsell-name {
        font-size: .95rem !important;
    }
    .upsell-price {
        font-size: 1rem !important;
    }
    .upsell-img {
        width: 45px !important;
    }
}

.img-max-w540 {
    max-width: 540px !important;
}


/* Somente no mobile (at� 575px) */

@media (max-width: 575px) {
    .alinha-centralizar-mobile {
        padding: inherit !important;
    }
}

.optTexto {
    width: 70% !important;
}


/* Container geral do bloco */

.caixa-bloco {
    width: 100%;
    max-width: 1000px;
    /* limite apenas para n�o ficar gigante em telas muito grandes */
    margin: 40px auto;
    padding: 30px;
    border: 2px solid #f2f2f2;
    border-radius: 26px;
    text-align: center;
}


/* T�tulo principal */

.titulo-bloco {
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: clamp(24px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #242424;
    margin-bottom: 20px;
}


/* Subt�tulo */

.subtitulo-bloco {
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: clamp(18px, 3vw, 36px);
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: #242424;
    margin-bottom: 30px;
}


/* Bot�o verde */

.btn-buscar {
    display: inline-block;
    width: 100%;
    max-width: 250px;
    padding: 10px;
    background: #7EB339;
    border-radius: 12px;
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: #fff;
    text-decoration: none;
}

.btn-buscar:hover {
    opacity: 0.9;
    color: #fff !important;
}

.cart-title {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.06em;
    color: #242424;
}

.cart-subtitle {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 30px;
    line-height: 39px;
    letter-spacing: -0.06em;
    color: #242424;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.text-cart {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.06em;
    color: #242424;
}

input,
textarea,
select {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

.carrinho_lateral_container {
    background: #fff;
    border: 2px solid #F2F2F2;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* Cada item */

.carrinho_lateral_item {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 10px 15px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.carrinho_lateral_item:last-child {
    border-bottom: none;
}


/* Imagem */

.carrinho_lateral_img {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
}


/* Textos */

.carrinho_lateral_titulo {
    font-family: 'Montserrat';
    font-size: 16px;
    font-weight: 500;
    color: #242424;
    margin: 0;
}

.carrinho_lateral_modelo {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #242424;
}


/* Bot�o */

.carrinho_lateral_btn {
    margin-top: 5px;
    padding: 4px 12px;
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #000;
    border-radius: 6px;
    background: none;
    cursor: pointer;
}


/* Quantidade */

.carrinho_lateral_qtd {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-family: 'Montserrat';
}

.carrinho_lateral_qtd button {
    width: 28px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #242424;
    background: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 18px;
}


/* Pre�o */

.carrinho_lateral_preco {
    font-family: 'Montserrat';
    font-size: 20px;
    font-weight: 400;
    color: #242424;
    margin: 0;
}


/* Lixeira */

.carrinho_lateral_trash {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .carrinho_lateral_container {
        padding: 10px;
    }
    .cart-title {
        font-size: 32px;
    }
    .cart-subtitle {
        font-size: 24px;
    }
}


/* Overlay exclusivo do frete */

#shipping-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 9999;
    display: none;
}


/* Spinner */

#shipping-loading-overlay::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: -21px;
    border: 4px solid #ddd;
    border-top-color: #7EB339;
    border-radius: 50%;
    animation: shippingSpin 0.8s linear infinite;
}


/* Ativo */

#shipping-loading-overlay.is-active {
    display: block;
}


/* Keyframes exclusivos */

@keyframes shippingSpin {
    to {
        transform: rotate(360deg);
    }
}