/**
 * Repeater Tabs Widget - Estilos Frontend
 * Versão: 1.0.0
 */

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */
.rtw-tabs-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
    border: 1px solid #eee;
    padding: 16px;
    border-radius: 8px;
}

/* ========================================
   LAYOUT HORIZONTAL
   ======================================== */
.rtw-layout-horizontal .rtw-tabs-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rtw-layout-horizontal .rtw-tab-title {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.rtw-layout-horizontal .rtw-tab-title:hover {
    color: #333;
    background-color: #f8f9fa;
}

.rtw-layout-horizontal .rtw-tab-title.active {
    color: #007cba;
    border-bottom-color: #007cba;
    background-color: #fff;
}

/* ========================================
   LAYOUT VERTICAL
   ======================================== */
.rtw-layout-vertical {
    display: flex;
    gap: 30px;
}

.rtw-layout-vertical .rtw-tabs-nav {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    border-right: 2px solid #e0e0e0;
    border-bottom: none;
    margin-bottom: 0;
}

.rtw-layout-vertical .rtw-tab-title {
    padding: 15px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-right: 2px solid transparent;
    text-align: left;
    border-radius: 0;
}

.rtw-layout-vertical .rtw-tab-title:hover {
    color: #333;
    background-color: #f8f9fa;
}

.rtw-layout-vertical .rtw-tab-title.active {
    color: #007cba;
    border-right-color: #007cba;
    background-color: #fff;
}

.rtw-layout-vertical .rtw-tabs-content {
    flex: 1;
}

/* ========================================
   LAYOUT ACCORDION
   ======================================== */
.rtw-layout-accordion .rtw-accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.rtw-layout-accordion .rtw-accordion-title {
    padding: 15px 20px;
    cursor: pointer;
    background-color: #f8f9fa;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rtw-layout-accordion .rtw-accordion-title:hover {
    background-color: #e9ecef;
}

.rtw-layout-accordion .rtw-accordion-title.active {
    background-color: #007cba;
    color: #fff;
}

.rtw-layout-accordion .rtw-accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.rtw-layout-accordion .rtw-accordion-icon::before,
.rtw-layout-accordion .rtw-accordion-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.rtw-layout-accordion .rtw-accordion-icon::before {
    width: 2px;
    height: 12px;
    top: 4px;
    left: 9px;
}

.rtw-layout-accordion .rtw-accordion-icon::after {
    width: 12px;
    height: 2px;
    top: 9px;
    left: 4px;
}

.rtw-layout-accordion .rtw-accordion-title.active .rtw-accordion-icon::before {
    transform: rotate(90deg);
}

.rtw-layout-accordion .rtw-accordion-content {
    display: none;
    padding: 20px;
    background-color: #fff;
}

.rtw-layout-accordion .rtw-accordion-content.active {
    display: block;
}

/* ========================================
   LAYOUT PILLS
   ======================================== */
.rtw-layout-pills .rtw-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.rtw-layout-pills .rtw-tab-title {
    padding: 8px 16px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 25px;
    white-space: nowrap;
}

.rtw-layout-pills .rtw-tab-title:hover {
    color: #333;
    border-color: #007cba;
    background-color: #f8f9fa;
}

.rtw-layout-pills .rtw-tab-title.active {
    color: #fff;
    border-color: #007cba;
    background-color: #007cba;
}

/* ========================================
   CONTEÚDO DAS ABAS
   ======================================== */
.rtw-tabs-content {
    position: relative;
    min-height: 120px;
}

.rtw-tab-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s, transform 0.35s;
    pointer-events: none;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1;
}

.rtw-tab-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

/* ========================================
   ITENS DO REPEATER
   ======================================== */

/* Template Padrão */
.rtw-template-default .rtw-repeater-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rtw-template-default .rtw-repeater-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.rtw-template-default .rtw-repeater-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.rtw-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.rtw-item-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.rtw-item-image {
    margin-top: 15px;
}

.rtw-item-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.rtw-item-link {
    margin-top: 15px;
}

.rtw-item-link a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.rtw-item-link a:hover {
    background-color: #005a87;
}

/* Template Card */
.rtw-template-card .rtw-repeater-items {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.rtw-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.rtw-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.rtw-card-image {
    height: 200px;
    overflow: hidden;
}

.rtw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rtw-card:hover .rtw-card-image img {
    transform: scale(1.05);
}

.rtw-card-body {
    padding: 20px;
}

.rtw-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.rtw-card-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.rtw-card-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.rtw-card-button:hover {
    background-color: #005a87;
}

/* Template Lista */
.rtw-template-list .rtw-repeater-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rtw-list-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.rtw-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.rtw-list-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.rtw-list-content {
    flex: 1;
}

.rtw-list-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.rtw-list-text {
    color: #666;
    line-height: 1.5;
}

/* Template Grid */
.rtw-template-grid .rtw-repeater-items {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.rtw-grid-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.rtw-grid-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.rtw-grid-image {
    height: 150px;
    overflow: hidden;
}

.rtw-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rtw-grid-item:hover .rtw-grid-image img {
    transform: scale(1.1);
}

.rtw-grid-content {
    padding: 15px;
}

.rtw-grid-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.rtw-grid-text {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes rtw-fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes rtw-slideIn {
    from { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
    /* Layout Horizontal Mobile */
    .rtw-layout-horizontal .rtw-tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }
    
    .rtw-layout-horizontal .rtw-tab-title {
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
        text-align: left;
    }
    
    .rtw-layout-horizontal .rtw-tab-title.active {
        border-bottom-color: #007cba;
    }
    
    /* Layout Vertical Mobile */
    .rtw-layout-vertical {
        flex-direction: column;
        gap: 20px;
    }
    
    .rtw-layout-vertical .rtw-tabs-nav {
        min-width: auto;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
    }
    
    .rtw-layout-vertical .rtw-tab-title {
        border-right: none;
        border-bottom: 2px solid transparent;
    }
    
    .rtw-layout-vertical .rtw-tab-title.active {
        border-right-color: transparent;
        border-bottom-color: #007cba;
    }
    
    /* Layout Pills Mobile */
    .rtw-layout-pills .rtw-tabs-nav {
        justify-content: center;
    }
    
    .rtw-layout-pills .rtw-tab-title {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    /* Grid Responsivo */
    .rtw-template-card .rtw-repeater-items,
    .rtw-template-grid .rtw-repeater-items {
        grid-template-columns: 1fr;
    }
    
    /* Cards Mobile */
    .rtw-card-image {
        height: 150px;
    }
    
    .rtw-card-body {
        padding: 15px;
    }
    
    /* Lista Mobile */
    .rtw-list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .rtw-list-icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .rtw-tab-title {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .rtw-repeater-item,
    .rtw-card-body,
    .rtw-grid-content {
        padding: 15px;
    }
    
    .rtw-item-title,
    .rtw-card-title {
        font-size: 16px;
    }
    
    .rtw-layout-pills .rtw-tabs-nav {
        gap: 5px;
    }
    
    .rtw-layout-pills .rtw-tab-title {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* ========================================
   ESTADOS ESPECIAIS
   ======================================== */
.rtw-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.rtw-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.rtw-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: rtw-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes rtw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   EFEITOS DE HOVER PERSONALIZADOS
   ======================================== */
.rtw-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.rtw-hover-scale:hover {
    transform: scale(1.05);
}

.rtw-hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 124, 186, 0.3);
}

/* ========================================
   UTILITÁRIOS
   ======================================== */
.rtw-text-center {
    text-align: center;
}

.rtw-text-left {
    text-align: left;
}

.rtw-text-right {
    text-align: right;
}

.rtw-mb-0 { margin-bottom: 0; }
.rtw-mb-1 { margin-bottom: 0.25rem; }
.rtw-mb-2 { margin-bottom: 0.5rem; }
.rtw-mb-3 { margin-bottom: 1rem; }
.rtw-mb-4 { margin-bottom: 1.5rem; }
.rtw-mb-5 { margin-bottom: 3rem; }

.rtw-mt-0 { margin-top: 0; }
.rtw-mt-1 { margin-top: 0.25rem; }
.rtw-mt-2 { margin-top: 0.5rem; }
.rtw-mt-3 { margin-top: 1rem; }
.rtw-mt-4 { margin-top: 1.5rem; }
.rtw-mt-5 { margin-top: 3rem; }

.rtw-p-0 { padding: 0; }
.rtw-p-1 { padding: 0.25rem; }
.rtw-p-2 { padding: 0.5rem; }
.rtw-p-3 { padding: 1rem; }
.rtw-p-4 { padding: 1.5rem; }
.rtw-p-5 { padding: 3rem; }

/* ========================================
   TIPOS DE CONTEÚDO ESPECÍFICOS
   ======================================== */

/* Galeria de Imagens */
.rtw-gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: transparent !important;
}

/* Barra de miniaturas do PhotoSwipe */
.pswp-thumbs-bar {
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    background: rgba(0,0,0,0.6);
}
.pswp-thumb {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline: none;
    opacity: 0.7;
}
.pswp-thumb.active { opacity: 1; }
.pswp-thumb img {
    width: 64px; /* ajustável via inline style se quisermos refletir control */
    height: 48px; /* idem */
    object-fit: cover;
    border-radius: 4px;
}

/* Barra de miniaturas para GLightbox */
.rtw-glightbox-thumbs {
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    background: rgba(0,0,0,0.55);
}
.rtw-glightbox-thumb { border: 0; background: transparent; padding: 0; cursor: pointer; opacity: .75; }
.rtw-glightbox-thumb.active { opacity: 1; }
.rtw-glightbox-thumb img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }


.rtw-gallery-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    background: transparent !important;
}

.rtw-gallery-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 300px; /* Altura padrão, será sobrescrita pelos controles */
    overflow: hidden;
    position: relative;
}

.rtw-gallery-slide img {
    width: 100%;
    height: 100%;
    display: block;
    /* object-fit/object-position serão definidos pelos controles do Elementor */
    position: absolute;
    top: 0;
    left: 0;
}

.rtw-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.rtw-gallery-nav button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.rtw-gallery-nav button:hover {
    background: #F9A119;
    transform: scale(1.1);
}

.rtw-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 0;
}

.rtw-gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rtw-gallery-dot.active {
    background: #F9A119;
    transform: scale(1.2);
}

/* Lightbox Links */
.rtw-lightbox-link {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Fancybox 5 - Customizações */
.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.95) !important;
    background: rgba(0, 0, 0, 0.95) !important;
}

.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.95) !important;
}

.fancybox__slide {
    padding: 20px;
    background: transparent !important;
}

.fancybox__content {
    background: transparent !important;
}

.fancybox__image {
    background: transparent !important;
}

/* Remover qualquer fundo branco do carousel principal */
.fancybox__carousel {
    background: transparent !important;
}

.fancybox__slide .fancybox__content > * {
    background: transparent !important;
}

/* Miniaturas customizadas */
.fancybox__thumbs {
    --fancybox-thumbs-bg: rgba(0, 0, 0, 0.8);
    bottom: 20px !important;
    border-radius: 25px;
    padding: 12px 20px !important;
    max-width: 90% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.fancybox__thumbs .carousel__slide {
    margin: 0 6px !important;
    width: 70px !important;
    height: 70px !important;
    flex-shrink: 0 !important;
}

.fancybox__thumbs .carousel__slide img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 6px !important;
    border: 2px solid transparent !important;
    transition: all 0.2s ease !important;
}

.fancybox__thumbs .carousel__slide.is-nav-selected img {
    border-color: #fff !important;
    transform: scale(1.05) !important;
}

.fancybox__thumbs .carousel__slide:hover img {
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Garantir que o carousel das miniaturas seja visível */
.fancybox__thumbs .carousel__viewport {
    overflow: visible !important;
}

.fancybox__thumbs .carousel__track {
    display: flex !important;
    gap: 4px !important;
}

/* Forçar exibição de todas as miniaturas */
.fancybox__thumbs .carousel__slide {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Botões de navegação */
.fancybox__nav .carousel__button {
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    color: white !important;
}

.fancybox__nav .carousel__button:hover {
    background: rgba(0, 0, 0, 0.95) !important;
    transform: scale(1.1) !important;
}

.rtw-lightbox-link:hover {
    opacity: 0.8;
}

/* Removido ícone de lupa no hover */

.rtw-lightbox-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Iframe */
.rtw-iframe-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rtw-iframe-container iframe {
    display: block;
    border: none;
    background: #f8f9fa;
}

/* Vídeo */
.rtw-video-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rtw-video-container video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

/* Imagem Única */
.rtw-single-image {
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rtw-single-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Texto/Conteúdo */
.rtw-text-content {
    line-height: 1.6;
    color: #333;
}

.rtw-text-content p {
    margin-bottom: 1rem;
}

.rtw-text-content p:last-child {
    margin-bottom: 0;
}

.rtw-text-content h1,
.rtw-text-content h2,
.rtw-text-content h3,
.rtw-text-content h4,
.rtw-text-content h5,
.rtw-text-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.rtw-text-content h1:first-child,
.rtw-text-content h2:first-child,
.rtw-text-content h3:first-child,
.rtw-text-content h4:first-child,
.rtw-text-content h5:first-child,
.rtw-text-content h6:first-child {
    margin-top: 0;
}

/* Preview no Elementor */
.rtw-gallery-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rtw-gallery-preview .rtw-gallery-item {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    min-width: 80px;
    font-size: 12px;
    color: #666;
}

.rtw-iframe-preview {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.rtw-video-preview {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

/* Responsividade para novos tipos */
@media (max-width: 768px) {
    .rtw-gallery-nav {
        padding: 0 10px;
    }
    
    .rtw-gallery-nav button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .rtw-gallery-dots {
        gap: 6px;
    }
    
    .rtw-gallery-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .rtw-gallery-nav button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .rtw-gallery-preview {
        gap: 5px;
    }
    
    .rtw-gallery-preview .rtw-gallery-item {
        min-width: 60px;
        padding: 15px 10px;
        font-size: 10px;
    }
}

/* ========================================
   CLASSES UTILITÁRIAS
   ======================================== */

/* Abas principais */
.rtw-tabs-nav {
    display: flex;
    overflow-x: auto;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
    padding: 0 8px;
    scrollbar-width: thin;
}

.rtw-tab-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
    outline: none;
}

.rtw-tab-title.rtw-icon-above {
    flex-direction: column;
}

.rtw-tab-title.rtw-icon-before {
    flex-direction: row;
}

.rtw-tab-title.rtw-icon-after {
    flex-direction: row-reverse;
}

.rtw-tab-title.active,
.rtw-tab-title:focus {
    background: #fff;
    color: #007cba;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 2;
}

.rtw-tab-title:hover:not(.active) {
    background: #eaf6ff;
    color: #005a8c;
}

.rtw-tab-title:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.rtw-tab-title .rtw-tab-icon {
  vertical-align: middle;
  font-size: 1.1em;
  line-height: 1;
  transition: all 0.2s ease;
  display: inline-block;
}

.rtw-tab-icon.rtw-icon-svg {
  width: 1.1em;
  height: 1.1em;
}

.rtw-tab-icon.rtw-icon-svg svg {
  width: 100%;
  height: 100%;
}

/* Scrollbar custom */
.rtw-tabs-nav::-webkit-scrollbar {
    height: 6px;
}

.rtw-tabs-nav::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

/* Microinterações */
.rtw-tab-title {
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.rtw-tab-title:active {
    transform: scale(0.97);
}

/* Slider */
.rtw-gallery-slider {
    position: relative;
    background: transparent !important;
    border-radius: 0px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Temas do lightbox por slider */


.rtw-gallery-slide {
    background: transparent !important;
}

.rtw-gallery-slide img {
    width: 100%;
    /* manter altura 100% (definida acima) para respeitar object-fit */
    border-radius: 8px;
    background: transparent !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}

.rtw-gallery-slide img:hover {
    transform: scale(1.03);
}

.rtw-gallery-nav {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.rtw-gallery-prev, .rtw-gallery-next {
    pointer-events: all;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 38px; height: 38px;
    font-size: 1.3em;
    color: #F9A119;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.rtw-gallery-prev:hover, .rtw-gallery-next:hover {
    background: #F9A119;
    color: #fff;
}

.rtw-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 0 0;
    padding: 8px 0;
}

.rtw-gallery-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.rtw-gallery-dot.active {
    background: #F9A119;
    transform: scale(1.2);
}

/* Foco visível para navegação por teclado */
.rtw-gallery-prev:focus-visible, .rtw-gallery-next:focus-visible {
    outline: 2px solid #F9A119;
    outline-offset: 2px;
}

/* Responsivo */
@media (max-width: 600px) {
    .rtw-tab-title {
        min-width: 90px;
        padding: 10px 10px;
        font-size: 0.98em;
    }
    .rtw-gallery-slider {
        border-radius: 6px;
    }
    .rtw-gallery-slide img {
        border-radius: 4px;
    }
} 