body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
    color: #333;
  }
  
  .top-header {
    background: #0264af;
    color: white;
    font-size: 14px;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
  }
  
  .header-main {
    background: white;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-bottom: none;
  }
  
  .header-main .logo {
    padding-left: 30px;
  }
  
  .header-main .logo img {
    height: 72px;
  }
  
  .menu-wrapper {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background: white;
    display: flex;
    justify-content: center;
  }
  
  .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    flex-wrap: wrap;
    border-top: 1px solid #cccccc6b;
    border-bottom: 1px solid #cccccc6b;
  }
  
  .menu a {
    text-decoration: none;
    color: #0264af;
    font-weight: 500;
    display: inline-block;
    white-space: normal;
    line-height: 1.2;
    max-width: 110px;
    word-break: break-word;
    text-align: center;
    -webkit-font-smoothing: antialiased;
  }
  
  .customizer {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    justify-content: center;
  }
  #textoExtra {
    resize: none;
    width: 100%;
    height: 90px; /* Aproximadamente 4 linhas */
    font-family: inherit;
    font-size: 14px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  .controls {
    flex: 1 1 300px;
    max-width: 300px;
    padding-right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  .controls label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
  }
  
  .controls select,
  .controls input[type="file"],
  .controls input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: 'Montserrat', sans-serif;
  }
  
  .previewBox {
    flex: 1 1 600px;
    max-width: 800px;
    height: 700px;
    margin: auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
  }
  .preview-area {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
    padding: 0px;
    border-radius: 8px;
    min-height: 600px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }
  .site-footer {
    background: #0264af;
    color: white;
    text-align: center;
    padding: 30px 15px;
    font-size: 14px;
    border-top: 1px solid #cccccc6b;
  }
  
  .site-footer a {
    color: #fff;
    text-decoration: underline;
  }
  .site-footer {
    background: #f4f4f4;
    color: #333;
    padding: 40px 20px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    border-top: 1px solid #cccccc6b;
  }
  
  .footer-column {
    flex: 1 1 200px;
    min-width: 200px;
  }
  
  .footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0264af;
    text-align: left;
  }
  
  .footer-column p,
  .footer-column a {
    margin: 8px 0;
    display: block;
    color: #333;
    text-decoration: none;
    text-align: left;
  }
  
  .footer-column a:hover {
    text-decoration: underline;
  }
  
  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .footer-logo img {
    height: 50px;
    padding-left: 20px;
  }
  
  .footer-social {
    display: flex;
    gap: 10px;
    padding-left: 20px;
    margin-top: 10px;
  }
  
  .footer-social img {
    height: 20px;
  }
  
  .payment-methods img,
  .security-seals img {
    height: 30px;
    margin: 5px;
  }
  
  .footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    background: #0264af;
    color: white;
  }
  .upload-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-top: 0px;
  }
  
  .upload-wrapper input[type="file"] {
    display: none;
  }
  
  .upload-button {
    background-color: #0264af;
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }
  
  .upload-button img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
  }
  
  .upload-button:hover {
    background-color: #014f8c;
  }
  #konva-container {
    background-image: url('fundo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  #textoPreview {
    text-align: center; /* valor padrão, será sobrescrito via JS */
    width: 100%;
    display: block;
  }
  #finalizarDesign {
    margin-top: -10px;
    align-self: flex-end;
    margin-right: 0;
    background-color: #0264af;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-right: 30px;
    
  }
  
  #finalizarDesign:hover {
    background-color: #014f8c;
  }
  
  .botao-wrapper {
    width: 100%;
    display: flex;
    justify-content:flex-end;
    margin-top: 0px;
    margin-bottom: 30px;
  }
  /* O fundo escuro que cobre toda a tela */
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }

/* A caixinha branca central */
.modal-content {
  background-color: white;
  font-family: 'Montserrat', sans-serif;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Botão X para fechar */
.close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}

/* Input bonito */
.modal-content input {
  font-family: 'Montserrat', sans-serif;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.modal-content button {
  background-color: #0264af;
  color: white;
  padding: 10px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

.modal-content button:hover {
  background-color: #014f8c;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}
/* Overlay cobrindo toda a tela */
#loadingOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* O “círculo” que gira */
.spinner {
  width: 50px; height: 50px;
  border: 5px solid #eee;
  border-top: 5px solid #004aad; /* cor da sua marca */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* keyframes de rotação */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
