
.ifp-banner-structured {
    width: 100%;
    max-width: 1280px;
    margin: 0;
    border-radius: var(--ifp-radius-lg, 12px);
    overflow: hidden;
    box-shadow: var(--ifp-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
    background: var(--ifp-color-gray-100, #F3F4F6);
    position: relative;
    transition: all var(--ifp-transition-fast, 0.15s ease-out);
}

/* Hover no container principal */
.ifp-banner-structured:hover {
    box-shadow: var(--ifp-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
    transform: translateY(-2px);
}

.ifp-banner-structured .ifp-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px; /* Gap entre as colunas */
    min-height: 220px;
    align-items: stretch; /* Para a imagem ocupar toda a altura */
}

/* Coluna da Imagem (Esquerda) */
.ifp-banner-structured .ifp-banner-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    overflow: hidden;
}

/* Wrapper da imagem para conter o overflow do scale */
.ifp-banner-structured .ifp-banner-image-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.ifp-banner-structured .ifp-banner-image img {
    width: 100%;
    height: 100%;
    max-height: 230px; /* Altura máxima definida */
    object-fit: cover;
    display: block;
    border-radius: 20px; /* Border radius nas imagens */
    transition: transform var(--ifp-transition-fast, 0.15s ease-out);
}

/* Hover effect na imagem */
.ifp-banner-structured:hover .ifp-banner-image img {
    transform: scale(1.05);
}

/* Placeholder da Imagem */
.ifp-banner-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    flex-direction: column;
    text-align: center;
    border: 2px dashed #ddd;
    height: 100%;
}

.ifp-placeholder-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ifp-spacing-sm, 8px);
    color: #999;
}

.ifp-placeholder-box .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    animation: pulse 2s ease-in-out infinite;
}

/* Animação pulse sutil para o ícone do placeholder */
@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.ifp-placeholder-box span:not(.dashicons) {
    font-size: 14px;
    font-weight: var(--ifp-font-weight-medium, 500);
}

/* Coluna do Conteúdo (Direita) */
.ifp-banner-structured .ifp-banner-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--ifp-spacing-lg, 24px);
    height: 100%;
    padding: 0; /* Remove padding - será aplicado no container pai */
}

.ifp-banner-structured .ifp-banner-title {
    font-family: var(--ifp-font-primary, 'TipoiFoodVariable', sans-serif);
    font-size: 18px; /* Tamanho padrão 18px */
    font-weight: 700; /* Peso 700 */
    line-height: 1.3;
    color: var(--ifp-color-gray-900, #111827);
    margin: 0;
    transition: all var(--ifp-transition-fast, 0.15s ease-out);
}

/* Classes de tamanho do título */
.ifp-banner-structured .ifp-banner-title--18 {
    font-size: 18px;
}

.ifp-banner-structured .ifp-banner-title--24 {
    font-size: 24px;
}

.ifp-banner-structured .ifp-banner-title--32 {
    font-size: 32px;
}

/* Hover effect no título */
.ifp-banner-structured:hover .ifp-banner-title {
    color: var(--ifp-color-primary, #ea1d2c);
}

.ifp-banner-structured .ifp-banner-description {
    font-family: var(--ifp-font-primary, 'TipoiFoodVariable', sans-serif);
    font-size: 18px; /* 18px conforme solicitado */
    font-weight: 400; /* Peso 400 */
    line-height: 1.6;
    color: var(--ifp-color-gray-700, #374151);
    margin: 0;
    transition: opacity var(--ifp-transition-fast, 0.15s ease-out);
}

/* Hover effect na descrição */
.ifp-banner-structured:hover .ifp-banner-description {
    opacity: 0.8;
}

.ifp-banner-structured .ifp-banner-cta {
    margin-top: var(--ifp-spacing-sm, 8px);
}

/* Botão do Banner - Estilo iFood */
.ifp-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--ifp-spacing-md, 16px) var(--ifp-spacing-2xl, 40px);
    background: var(--ifp-color-primary, #ea1d2c);
    color: white !important;
    font-family: var(--ifp-font-primary, 'TipoiFoodVariable', sans-serif);
    font-size: 1rem;
    font-weight: var(--ifp-font-weight-semibold, 600);
    text-decoration: none;
    border-radius: var(--ifp-radius-full, 9999px);
    border: none;
    cursor: pointer;
    transition: all var(--ifp-transition-fast, 0.15s ease-out);
    min-width: 160px;
    text-align: center;
    box-shadow: 0 2px 4px rgb(234 29 44 / 0.2);
}

.ifp-banner-button:hover {
    background: #d11625;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgb(234 29 44 / 0.3);
    color: white;
    text-decoration: none;
}

.ifp-banner-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgb(234 29 44 / 0.2);
}

/* Placeholder Text Styling */
.ifp-placeholder-text {
    opacity: 0.6;
    font-style: italic;
}

.ifp-placeholder-text:not(:empty) {
    opacity: 1;
    font-style: normal;
}


/* Tablet */
@media (max-width: 992px) {
    .ifp-banner-structured .ifp-banner-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        column-gap: 0; /* Remove gap em tablet/mobile */
        gap: 20px;
    }
    
    /* Em tablet/mobile, imagem fica no topo */
    .ifp-banner-structured .ifp-banner-image-wrapper {
        order: 1;
    }
    
    .ifp-banner-structured .ifp-banner-text {
        order: 2;
        padding: 0; /* Padding no container pai em responsivo */
    }
    
    .ifp-banner-structured .ifp-banner-image,
    .ifp-banner-image-placeholder {
        min-height: 110px;
    }
    
    .ifp-banner-structured .ifp-banner-title {
        font-size: 16px; /* Menor em tablet mas mantém proporção */
    }
    
    /* Ajuste proporcional dos tamanhos em tablet */
    .ifp-banner-structured .ifp-banner-title--18 {
        font-size: 16px;
    }
    
    .ifp-banner-structured .ifp-banner-title--24 {
        font-size: 20px;
    }
    
    .ifp-banner-structured .ifp-banner-title--32 {
        font-size: 26px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .ifp-banner-structured .ifp-banner-text {
        gap: var(--ifp-spacing-md, 16px);
    }
    
    .ifp-banner-structured .ifp-banner-title {
        font-size: 16px; /* Mantém 16px em mobile */
    }
    
    /* Ajuste proporcional dos tamanhos em mobile */
    .ifp-banner-structured .ifp-banner-title--18 {
        font-size: 16px;
    }
    
    .ifp-banner-structured .ifp-banner-title--24 {
        font-size: 18px;
    }
    
    .ifp-banner-structured .ifp-banner-title--32 {
        font-size: 22px;
    }
    
    .ifp-banner-structured .ifp-banner-description {
        font-size: 16px; /* 16px em mobile */
    }
    
    .ifp-banner-button {
        padding: var(--ifp-spacing-sm, 12px) var(--ifp-spacing-xl, 32px);
        font-size: 0.875rem; /* 14px */
        min-width: 140px;
        width: 100%; /* Largura total em mobile */
        max-width: 100%; /* Garante que não ultrapasse o container */
    }
}


.ifp-banner-custom-styles {
    /* Estilos personalizados serão inseridos aqui via PHP */
    display: block;
}


.ifp-banner-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.ifp-banner-custom {
        width: 100%;
}

.ifp-banner-custom * {
    box-sizing: border-box;
}

.ifp-banner-custom img {
    max-width: 100%;
    height: auto;
}

.ifp-banner-custom .ifp-flex {
    display: flex;
}

.ifp-banner-custom .ifp-flex-row {
    flex-direction: row;
}

.ifp-banner-custom .ifp-flex-column {
    flex-direction: column;
}

.ifp-banner-custom .ifp-items-center {
    align-items: center;
}

.ifp-banner-custom .ifp-justify-center {
    justify-content: center;
}

.ifp-banner-custom .ifp-justify-between {
    justify-content: space-between;
}

.ifp-banner-custom .ifp-flex-1 {
    flex: 1;
}

.ifp-banner-custom .ifp-grid {
    display: grid;
}

.ifp-banner-custom .ifp-grid-cols-2 {
    grid-template-columns: 1fr 1fr;
}

.ifp-banner-custom .ifp-gap-4 {
    gap: 1rem;
}

.ifp-banner-custom .ifp-gap-6 {
    gap: 1.5rem;
}

.ifp-banner-custom .ifp-gap-8 {
    gap: 2rem;
}

.ifp-banner-custom .ifp-p-4 {
    padding: 1rem;
}

.ifp-banner-custom .ifp-p-6 {
    padding: 1.5rem;
}

.ifp-banner-custom .ifp-p-8 {
    padding: 2rem;
}

@media (max-width: 768px) {
    .ifp-banner-custom .ifp-grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .ifp-banner-custom .ifp-flex-row {
        flex-direction: column;
    }
}


.ifp-expandable-content {
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
    width: 100%;
    box-sizing: border-box;
    /* Padding definido pelo JavaScript inline */
}

.ifp-expandable-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    /* Height definido pelo JavaScript inline */
}

.ifp-expandable-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--ifp-font-primary, 'TipoiFoodVariable', sans-serif);
    font-size: 14px;
    font-weight: 600;
    padding: 0 20px;
    opacity: 1;
    transition: transform 0.2s ease;
    height: 100%;
    border-radius: 0 0 20px 20px;
}

.ifp-expandable-toggle:hover {
    transform: translateY(-1px);
}

.ifp-expandable-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 5px;
    color: inherit;
}

.ifp-expandable-close:hover {
    opacity: 1;
}

.ifp-expandable-close svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ifp-toggle-icon {
    transition: transform 0.3s ease;
    width: 12px;
    height: 12px;
}

.ifp-expandable-top.expanded .ifp-toggle-icon {
    transform: rotate(180deg);
}


.ifp-banner-preview-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.ifp-banner-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.ifp-banner-preview-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.ifp-preview-toggle {
    display: flex;
    gap: 5px;
}

.ifp-preview-toggle button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.ifp-preview-toggle button.active,
.ifp-preview-toggle button:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.ifp-banner-preview-content {
    padding: 20px;
    background: #f0f0f1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ifp-preview-mobile .ifp-banner-structured {
    max-width: 375px;
}

.ifp-preview-mobile .ifp-banner-structured .ifp-banner-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
}

.ifp-preview-mobile .ifp-banner-structured .ifp-banner-image-wrapper {
    order: 1;
}

.ifp-preview-mobile .ifp-banner-structured .ifp-banner-text {
    order: 2;
    padding: 0; /* Padding aplicado no container pai */
}

.ifp-preview-mobile .ifp-banner-structured .ifp-banner-image,
.ifp-preview-mobile .ifp-banner-image-placeholder {
    min-height: 200px;
}


.ifp-banner-wrapper {
    margin: var(--ifp-spacing-2xl, 40px) 0;
}

.ifp-banner-wrapper--fullwidth {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: none;
}


@supports not (display: grid) {
    .ifp-banner-structured .ifp-banner-content {
        display: flex;
        flex-wrap: wrap;
    }
    
    .ifp-banner-structured .ifp-banner-image,
    .ifp-banner-structured .ifp-banner-text {
        flex: 1;
        min-width: 300px;
    }
}

.ifp-banner-structured {
    --fallback-primary: #ea1d2c;
    --fallback-gray-100: #F3F4F6;
    --fallback-gray-900: #111827;
}


@media print {
    .ifp-banner-structured {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .ifp-banner-button {
        background: transparent !important;
        color: #ea1d2c !important;
        border: 2px solid #ea1d2c !important;
    }
}


.ifp-expandable-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: block !important;
    z-index: 99999 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    /* Transform inicial será definido pelo JavaScript crítico inline */
    transition: transform 0.3s ease !important;
    overflow: hidden !important;
}

.ifp-expandable-top.ifp-positioned,
.ifp-expandable-top.expanded {
    }

.ifp-expandable-bar {
    height: 30px !important;
        display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ifp-expandable-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
        cursor: pointer;
    font-family: var(--ifp-font-primary, 'TipoiFoodVariable', sans-serif);
    font-size: 14px;
    font-weight: 600;
    padding: 0 20px;
    opacity: 1;     transition: transform 0.2s ease;
    height: 100%;
    border-radius: 0 0 20px 20px;
}

.ifp-expandable-toggle:hover {
    transform: translateY(-1px);
}

.ifp-toggle-icon {
    transition: transform 0.3s ease;
    width: 12px;
    height: 12px;
}








