/* CONVERTZE PLAYER - style.css */

/*
  NOVA ESTRATÉGIA DE RESPONSIVIDADE:
  Define o tamanho base do 'rem' para escalar proporcionalmente com a largura do viewport.
  - Em telas grandes, 1rem = 16px.
  - Em telas menores, 1rem vai diminuir proporcionalmente até um mínimo de 8px.
  Isso garante que todos os elementos que usam 'rem' (incluindo os 'em' que herdam)
  escalem de forma consistente com o tamanho da tela.
*/
html {
    font-size: clamp(8px, 2.5vw, 16px);
}


/* --- Variáveis CSS Padrão --- */
/* Estas variáveis são os valores padrão que serão sobrescritos pelo JavaScript inline */
/* no PHP ou pelas customizações do admin */
.ytp-wrapper {
    --ytp-primary-color: #ff9500;
    --ytp-secondary-color: #ff3300;
    --ytp-progress-color: #ff9500;
    --ytp-text-color: #ffffff;
    --ytp-overlay-bg: rgba(0,0,0,0.75);
    --ytp-primary-color-rgb: 255, 149, 0; /* Fallback RGB */

    /* --- ESTILOS PARA O PLAYER DE VÍDEO (FRONTEND) --- */
    /* No mobile, a largura será 100% e a altura se ajustará pela proporção */
    /* No desktop, 640px de largura é o padrão */
    width: 640px; /* Largura base para cálculo de REMs em desktop */
    height: 360px; /* Altura base para cálculo de REMs em desktop */
    
    background: #000;
    margin: 1.25rem auto; /* Centraliza o player horizontalmente (20px / 16px) */
    border-radius: 0.75rem; /* 12px / 16px */
    position: relative;
    overflow: hidden;
    user-select: none;
    box-shadow: 0 0 0.9375rem rgba(0,0,0,0.1); /* 15px / 16px */

    /* Otimizações de performance */
    transform: translateZ(0); /* Força aceleração de hardware */
    contain: layout style;
    backface-visibility: hidden;
    pointer-events: auto; /* IMPORTANTE: Default para permitir eventos */
}

/* CONTAINER DIRETO DO IFRAME (FRONTEND) */
.ytp-iframe {
    width: 100%;
    height: 100%; /* Ocupa 100% da largura e altura fixa do ytp-wrapper */
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    transition: pointer-events 0.3s; /* Transição para pointer-events */

    /* Otimizações de performance */
    transform: translateZ(0);
    contain: layout style paint;
    pointer-events: auto; /* IMPORTANTE: Default para permitir eventos */
}

/* O PRÓPRIO IFRAME DO YOUTUBE */
.ytp-iframe iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    background: #000;
    filter: brightness(1); /* Manter brilho normal */
    pointer-events: auto; /* IMPORTANTE: Default para permitir eventos */
}

/* --- REGRAS CONDICIONAIS PARA ESCONDER CONTROLES NATIVOS --- */
/* Esta classe é adicionada pelo PHP/JS quando você seleciona 'Barra personalizada' ou 'Nenhuma' */
.ytp-wrapper.ytp-hide-native-chrome .ytp-iframe,
.ytp-wrapper.ytp-hide-native-chrome .ytp-iframe iframe {
    pointer-events: none !important; /* Bloqueia interações quando os controles nativos estão ocultos */
}


/* --- Removendo pseudo-elementos ::after que podem causar conflitos --- */
.ytp-wrapper::after, .ytp-iframe::after {
    display: none !important; /* Força a não exibição desses elementos */
}


/* --- Overlays e Elementos de Controle (Frontend) --- */

/* Estilos específicos para o Sound Overlay ("Seu vídeo já começou") - REVERTIDO PARA APARÊNCIA ORIGINAL */
.ytp-sound-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centraliza */
    width: auto; /* Deixa a largura ser definida pelo conteúdo */
    height: auto; /* Deixa a altura ser definida pelo conteúdo */
    max-width: 90%; /* Limita a largura em telas menores */
    
    background: var(--ytp-overlay-bg) !important;
    padding: 0.625rem 0.9375rem; /* 10px 15px / 16px */
    border-radius: 0.75rem; /* 12px / 16px */
    box-shadow: 0 0 0.9375rem var(--ytp-primary-color) !important;
    
    text-align: center;
    color: var(--ytp-text-color);
    z-index: 999997 !important; /* ALTERADO: Z-index para ficar abaixo do click-catcher */
    cursor: default; /* ALTERADO: Cursor padrão, pois não deve ser clicável diretamente */
    animation: fadeIn 0.8s ease-out;
    user-select: none;
    pointer-events: none; /* ALTERADO: Não captura cliques, passa para o elemento abaixo */

    display: flex; /* Para centralizar o conteúdo interno */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.ytp-sound-overlay .ytp-sound-icon {
    margin: 0.3125rem 0; /* 5px / 16px */
    animation: pulse 1.5s infinite;
    color: var(--ytp-text-color); /* ALTERADO: Usa a cor do texto e ícones */
}
.ytp-sound-overlay .ytp-sound-icon svg { /* Adicionado para escalar o SVG */
    width: 3rem; /* 48px / 16px */
    height: 3rem; /* 48px / 16px */
}
.ytp-sound-overlay .ytp-sound-message {
    font-size: 1.1rem; /* Convertido de em para rem */
    font-weight: bold;
}
.ytp-sound-overlay .ytp-sound-click {
    font-size: 1.1rem; /* ALTERADO: Mesmo tamanho que o texto de cima */
    font-weight: bold; /* Adicionado: Para que tenha o mesmo peso do texto de cima */
    color: var(--ytp-text-color); /* ALTERADO: Usa a cor do texto e ícones */
}

/* Styles for the new muted autoplay overlay - REVERTIDO PARA APARÊNCIA ORIGINAL */
.ytp-muted-autoplay-overlay {
    position: absolute;
    top: 50%; /* Changed from 0 */
    left: 50%; /* Changed from 0 */
    transform: translate(-50%, -50%); /* Changed from none */
    width: auto; /* Changed from 100% */
    height: auto; /* Changed from 100% */
    max-width: 90%; /* Limita a largura em telas menores */
    
    background: transparent; /* Remains transparent */
    padding: 1.25rem; /* Restored padding */
    border-radius: 0.75rem; /* Restored border-radius */
    box-shadow: transparent; /* Remains transparent */

    z-index: 999997 !important; /* ALTERADO: Z-index para ficar abaixo do click-catcher */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--ytp-text-color);
    cursor: default; /* ALTERADO: Cursor padrão, pois não deve ser clicável diretamente */
    transition: opacity 0.3s ease;
    opacity: 1;
    pointer-events: none; /* ALTERADO: Não captura cliques, passa para o elemento abaixo */
    user-select: none;
    animation: fadeIn 0.8s ease-out;
}

.ytp-muted-autoplay-overlay .ytp-ended-icon {
    margin: 0;
    opacity: 0.8;
    animation: pulse 1.5s infinite;
    color: var(--ytp-primary-color);
}

.ytp-muted-autoplay-overlay .ytp-ended-icon svg {
    width: 4rem; /* 64px / 16px */
    height: 4rem; /* 64px / 16px */
}

/* NOVO: Overlay invisível que captura todos os cliques na área do player */
.ytp-click-catcher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Completamente invisível */
    z-index: 999999 !important; /* ALTERADO: Z-index mais alto para garantir a captura do clique */
    display: none; /* Escondido por padrão, controlado pelo JS */
    pointer-events: auto; /* Permite que capture cliques */
    cursor: pointer; /* Adicionado: Altera o cursor para indicar que a área é clicável */
}


/* Estilos específicos para o Video Ended Overlay ("Vídeo finalizado") */
.ytp-video-ended-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: #000000 !important;
    color: var(--ytp-text-color);
    text-align: center;
    display: none; /* Controlado pelo JS */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 45;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.ytp-video-ended-overlay.visible {
    opacity: 1;
}
.ytp-video-ended-overlay .ytp-ended-icon {
    margin: 1.25rem 0; /* 20px / 16px */
    opacity: 0.8;
    animation: pulse 1.5s infinite;
    color: var(--ytp-primary-color);
}
.ytp-video-ended-overlay .ytp-ended-icon svg { /* Adicionado para escalar o SVG */
    width: 3rem; /* 48px / 16px */
    height: 3rem; /* 48px / 16px */
}
.ytp-video-ended-overlay .ytp-ended-message {
    font-size: 1.5rem; /* Convertido de em para rem */
    font-weight: bold;
}
.ytp-video-ended-overlay .ytp-ended-buttons {
    display: flex;
    gap: 0.9375rem; /* 15px / 16px */
    margin-top: 1.25rem; /* 20px / 16px */
}
.ytp-video-ended-overlay .ytp-ended-btn {
    background: var(--ytp-primary-color);
    color: var(--ytp-text-color);
    border: none;
    padding: 0.75rem 1.5rem; /* 12px 24px / 16px */
    border-radius: 0.375rem; /* 6px / 16px */
    cursor: pointer;
    font-size: 0.875rem; /* 14px / 16px */
    font-weight: 500;
    transition: all 0.3s ease;
    user-select: none;
}
.ytp-video-ended-overlay .ytp-ended-btn:hover {
    background: var(--ytp-secondary-color);
    transform: translateY(-0.125rem); /* 2px / 16px */
}


/* Estilos para os controles (Play/Pause) */
.ytp-controls {
    position: absolute;
    bottom: 1.25rem; /* 20px / 16px */
    left: 1.25rem; /* 20px / 16px */
    display: flex;
    gap: 0.625rem; /* 10px / 16px */
    z-index: 25;
    flex-wrap: wrap;
}
.ytp-controls button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}
.ytp-controls button:hover {
    background-color: transparent !important;
}


/* Estilos gerais para botões personalizados */
.ytp-btn {
    border: none;
    padding: 0.625rem 1rem; /* 10px 16px / 16px */
    border-radius: 0.3125rem; /* 5px / 16px */
    cursor: pointer;
    font-size: 1rem; /* 16px / 16px */
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, background-color 0.3s ease;
    color: var(--ytp-text-color);
    font-weight: 600;
    user-select: none;
}
.ytp-btn:hover {
    transform: scale(1.05);
    background: rgba(var(--ytp-primary-color-rgb), 0.85);
}


/* Estilos para a barra de progresso */
.ytp-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.625rem; /* 10px / 16px */
    overflow: hidden;
    z-index: 20;
    margin: 0;
    contain: layout style paint;
    transform: translateZ(0);
}
.ytp-progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--ytp-progress-color);
    transition: none !important;
    will-change: width;
    transform: translateZ(0);
    position: relative;
    top: 0;
    left: 0;
    backface-visibility: hidden;
}


/* Estilos para o analytics hover info */
.ytp-analytics-hover {
    display: none !important;
    position: absolute;
    bottom: 3.75rem; /* 60px / 16px */
    right: 0.625rem; /* 10px / 16px */
    background: var(--ytp-overlay-bg);
    color: var(--ytp-text-color);
    padding: 0.625rem; /* 10px / 16px */
    border-radius: 0.5rem; /* 8px / 16px */
    font-size: 0.875rem; /* 14px / 16px */
    z-index: 50;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 0.625rem rgba(0,0,0,0.5); /* 10px / 16px */
}

/* Estilos para o popup de replay/pausado ("Vídeo pausado") */
.ytp-replay-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: #000000;
    color: var(--ytp-text-color);
    z-index: 40;
    text-align: center;
    user-select: none;
    box-shadow: none;
    
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
    opacity: 1;
}
.ytp-replay-popup.fade-out {
    transition: opacity 0.7s ease;
    opacity: 0;
    pointer-events: none;
}
.ytp-replay-popup .ytp-replay-content {
    background: rgba(0,0,0,0.9);
    padding: 1.25rem; /* 20px / 16px */
    border-radius: 0.5rem; /* 8px / 16px */
    box-shadow: 0 0 0.9375rem rgba(0,0,0,0.5); /* 15px / 16px */
    width: auto;
    height: auto;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* 16px / 16px */
}
.ytp-replay-popup p {
    margin: 0 0 0.625rem; /* 10px / 16px */
    font-size: 1rem; /* 16px / 16px */
    font-weight: 600;
}
.ytp-replay-popup button {
    margin: 0 0.3125rem; /* 5px / 16px */
    padding: 0.625rem 1.25rem; /* 10px 20px / 16px */
    background: var(--ytp-secondary-color);
    border: none;
    border-radius: 0.3125rem; /* 5px / 16px */
    color: var(--ytp-text-color);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}
.ytp-replay-popup button:hover {
    background: var(--ytp-primary-color);
}
.ytp-replay-buttons {
    width: 100%;
    display: flex;
    gap: 0.5rem; /* 8px / 16px */
    justify-content: center;
    white-space: nowrap;
}


/* Outros botões como unlock button */
.btn-unlock-bottom-center {
    position: absolute;
    bottom: 2.5rem; /* 40px / 16px */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
}


/* Otimizações gerais para performance */
.ytp-delayed-item-base {
    will-change: opacity, transform, filter;
    backface-visibility: hidden;
}


/* Esconde ícones nativos do YouTube */
.ytp-wrapper.ytp-hide-native-chrome .ytp-chrome-bottom,
.ytp-wrapper.ytp-hide-native-chrome .ytp-chrome-top,
.ytp-wrapper.ytp-hide-native-chrome .ytp-show-cards-title,
.ytp-wrapper.ytp-hide-native-chrome .ytp-watermark,
.ytp-wrapper.ytp-hide-native-chrome .ytp-title,
.ytp-wrapper.ytp-hide-native-chrome .ytp-gradient-bottom,
.ytp-wrapper.ytp-hide-native-chrome .ytp-gradient-top,
.ytp-wrapper.ytp-hide-native-chrome .ytp-spinner,
.ytp-wrapper.ytp-hide-native-chrome .ytp-endscreen-content,
.ytp-wrapper.ytp-hide-native-chrome .ytp-watermark,
.ytp-wrapper.ytp-hide-native-chrome .ytp-caption-segment, 
.ytp-wrapper.ytp-hide-native-chrome .ytp-captions-container {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* --- ADMIN PANEL STYLES --- */

/* Basic layout for admin pages */
.wrap.lume-player-admin-wrap {
    margin-top: 1.25rem;
}
.grid-2-cols-16 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; /* 16px / 16px */
}
.w-fit {
    width: fit-content;
}
.whitespace-nowrap {
    white-space: nowrap;
}
.card {
    background-color: #fff;
    border: 0.0625rem solid #c3c4c7; /* 1px / 16px */
    box-shadow: 0 0.0625rem 0.0625rem rgba(0,0,0,.04);
    padding: 1.25rem; /* 20px / 16px */
    margin-bottom: 1.25rem; /* 20px / 16px */
    border-radius: 0.3125rem; /* 5px / 16px */
}
.card h2 {
    margin-top: 0;
    margin-bottom: 0.9375rem; /* 15px / 16px */
    padding-bottom: 0.625rem; /* 10px / 16px */
    border-bottom: 0.0625rem solid #eee; /* 1px / 16px */
}
.form-table th {
    padding-top: 0.9375rem; /* 15px / 16px */
    padding-bottom: 0.9375rem; /* 15px / 16px */
    width: 12.5rem; /* 200px / 16px */
}
.form-table td {
    padding-top: 0.9375rem; /* 15px / 16px */
    padding-bottom: 0.9375rem; /* 15px / 16px */
}
.regular-text {
    width: 100%;
    max-width: 18.75rem; /* 300px / 16px */
}
.small-text {
    width: 5rem; /* 80px / 16px */
}
.description {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.3125rem; /* 5px / 16px */
}

/* Color picker specific adjustments */
.wp-picker-container {
    display: flex;
    align-items: center;
}
.wp-picker-container .wp-color-result {
    margin-right: 0.625rem; /* 10px / 16px */
}

/* Delayed items section styles */
.lume-delayed-item-row {
    border: 0.0625rem solid #ddd; /* 1px / 16px */
    padding: 0.9375rem; /* 15px / 16px */
    margin-bottom: 0.9375rem; /* 15px / 16px */
    background-color: #f9f9f9;
    border-radius: 0.25rem; /* 4px / 16px */
}
.lume-delayed-item-row label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.3125rem; /* 5px / 16px */
}
.lume-delayed-item-row .description {
    margin-top: 0.125rem; /* 2px / 16px */
    margin-bottom: 0.625rem; /* 10px / 16px */
}
.lume-delayed-item-row .button-link-delete {
    margin-top: 0.625rem; /* 10px / 16px */
}
.lume-delayed-item-row hr {
    border: 0;
    border-top: 0.0625rem solid #eee; /* 1px / 16px */
    margin: 1.25rem 0; /* 20px / 16px */
}
.lume-delayed-item-row .grid-2-cols-16 {
    grid-template-columns: 1fr 1fr;
    gap: 1rem; /* 16px / 16px */
    margin-bottom: 0.625rem; /* 10px / 16px */
}
.lume-item-type-options {
    margin-top: 0.625rem; /* 10px / 16px */
    padding-left: 0.625rem; /* 10px / 16px */
    border-left: 0.125rem solid #ddd; /* 2px / 16px */
}
.lume-item-type-options p {
    margin-bottom: 0.625rem; /* 10px / 16px */
}
.lume-item-type-options label {
    margin-bottom: 0;
}


/* --- ADMIN PREVIEW STYLES --- */
/* CONTAINER PRINCIPAL DO PLAYER NO ADMIN PREVIEW */
#lume-player-preview-area .admin-preview-ytp-wrapper {
    position: relative;
    width: 40rem; /* 640px / 16px */
    height: 22.5rem; /* 360px / 16px */
    overflow: hidden;
    background-color: #333;
    margin: 0 auto 1.25rem auto; /* 20px / 16px */
    border-radius: 0.5rem; /* 8px / 16px */

    /* Variáveis CSS para o preview */
    --ytp-primary-color: #ff9500;
    --ytp-secondary-color: #ff3300;
    --ytp-progress-color: #ff9500;
    --ytp-text-color: #ffffff;
    --ytp-overlay-bg: rgba(0,0,0,0.75);
    --ytp-primary-color-rgb: 255, 149, 0;
}

/* Elementos dentro do preview */
#lume-player-preview-area .preview-element-overlay {
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background-color: var(--ytp-overlay-bg);
    color: var(--ytp-text-color);
    font-size: 1.2rem;
}

#lume-player-preview-area .preview-controls-example {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0.9375rem; /* 15px / 16px */
    display: flex; justify-content: space-around;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 2;
}

#lume-player-preview-area .preview-button {
    background: var(--ytp-primary-color);
    color: var(--ytp-text-color);
    border: none;
    padding: 0.5rem 0.9375rem; /* 8px 15px / 16px */
    border-radius: 0.3125rem; /* 5px / 16px */
    cursor: pointer;
}

#lume-player-preview-area .preview-button.secondary {
    background: var(--ytp-secondary-color);
}

#lume-player-preview-area .preview-progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5rem; /* 8px / 16px */
    background: rgba(255,255,255,0.3);
    z-index: 1;
}
#lume-player-preview-area .preview-progress-bar {
    height: 100%;
    width: 50%;
    background-color: var(--ytp-progress-color);
}


/* Styles for license page (basic player fallback) */
.converttize-basic-player {
    position: relative;
    background: #000;
    border-radius: 0.5rem; /* 8px / 16px */
    overflow: hidden;
    width: 100%;
    height: auto;
}
.converttize-basic-player iframe {
    width: 100%;
    height: auto;
    min-height: 19.6875rem; /* 315px / 16px */
    aspect-ratio: 16 / 9;
}
.converttize-status-indicator {
    position: absolute;
    top: 0.625rem; /* 10px / 16px */
    right: 0.625rem; /* 10px / 16px */
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 0.25rem 0.5rem; /* 4px 8px / 16px */
    border-radius: 0.25rem; /* 4px / 16px */
    font-size: 0.75rem; /* 12px / 16px */
    font-weight: bold;
    z-index: 10;
}

/* --- ANIMAÇÕES GERAIS --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%); } 
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* --- RESPONSIVIDADE GERAL --- */
/*
  O player agora é responsivo por padrão devido ao html { font-size: clamp(...) }.
  Apenas removemos o width/height fixo para telas menores e deixamos a proporção.
*/
@media (max-width: 768px) {
    .ytp-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.button.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    padding: 0 0.625rem; /* 10px / 16px */
    min-height: 1.875rem; /* 30px / 16px */
    box-sizing: border-box;
}

/* Ajustes específicos para o Dashicon dentro do botão */
.button.button-icon .dashicons {
    flex-shrink: 0;
    line-height: 1;
    margin-right: 0.3125rem; /* 5px / 16px */
    margin-top: -0.0625rem; /* -1px / 16px */
}

.dashicons.spin {
    -webkit-animation: dashicons-spin 1s infinite linear;
    animation: dashicons-spin 1s infinite linear;
}
@-webkit-keyframes dashicons-spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}
@keyframes dashicons-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* NOVO TRECHO: Estilos para o Cabeçalho de Branding do Plugin */
.converttize-branded-header {
    width: 100%;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 0.9375rem 1.25rem; /* 15px 20px / 16px */
    display: flex;
    align-items: center;
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.2); /* 2px 5px / 16px */
    box-sizing: border-box;
    z-index: 99999;
    position: relative;
    top: 0;
    left: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.converttize-branded-header a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.converttize-branded-header .converttize-branding-logo {
    max-height: 2.5rem; /* 40px / 16px */
    width: auto;
    margin-right: 0.9375rem; /* 15px / 16px */
    transition: transform 0.3s ease;
}

.converttize-branded-header .converttize-branding-logo:hover {
    transform: scale(1.05);
}

.converttize-branded-header .converttize-branding-title {
    font-size: 1.2em; /* Em já herdará do html font-size */
    font-weight: 600;
    white-space: nowrap;
}

.converttize-branded-header a:hover .converttize-branding-title {
    color: #3498db;
}

/* Responsividade para o cabeçalho de branding */
@media (max-width: 600px) {
    .converttize-branded-header {
        flex-direction: column;
        padding: 0.625rem 0.9375rem; /* 10px 15px / 16px */
    }
    .converttize-branded-header .converttize-branding-logo {
        margin-right: 0;
        margin-bottom: 0.3125rem; /* 5px / 16px */
        max-height: 2.1875rem; /* 35px / 16px */
    }
    .converttize-branded-header .converttize-branding-title {
        font-size: 1em;
    }
}
/* FIM NOVO TRECHO */