/*
 * Folha de Estilos Principal - 2DI Orçamento Flutuante
 * Version: 10.0.0
 */

/* --- Estilos dos Botões Flutuantes --- */
.d2i-floating-buttons-container {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.d2i-floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    color: #ffffff !important;
}

.d2i-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

.d2i-floating-btn i {
    font-size: 30px !important; 
    color: #ffffff !important; 
}

.d2i-btn-label {
    color: white;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.d2i-orcamento-btn {
    background-color: #E59C42;
    width: auto;
    padding: 0 20px 0 15px;
    gap: 8px; 
    justify-content: flex-start;
}

.d2i-whatsapp-btn {
    background-color: #25D366;
    width: 50px;
}

.d2i-whatsapp-btn .d2i-btn-label {
    display: none;
}

.d2i-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #16223A;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    z-index: 2;
}

/* --- Estilos do Shortcode [botao_orcamento_dinamico] --- */
.add-to-orcamento-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    color: #E59C42;
    background-color: transparent;
    border: 2px solid #E59C42;
    border-radius: 30px;
    padding: 10px 15px;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    transition: all 0.3s ease-in-out;
	text-transform: capitalize !important;
}

.add-to-orcamento-btn i {
    margin-right: 8px;
    font-size: 1.1em;
    transition: color 0.3s ease-in-out;
}

.add-to-orcamento-btn:hover {
    background-color: #E59C42;
    color: #16223A;
    border-color: #E59C42;
    transform: scale(0.95);
}

.add-to-orcamento-btn:hover i {
    color: #16223A ;
}

/* --- Ajuste de Visibilidade com JetPopup --- */
body.jet-popup-active .d2i-floating-buttons-container {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* --- Responsividade para Mobile --- */
@media (max-width: 767px) {
    .d2i-orcamento-btn .d2i-btn-label {
        display: none;
    }
    .d2i-orcamento-btn {
        width: 50px;
        padding: 0;
        justify-content: center;
    }
}

/* --- NOVOS ESTILOS: Itens no Popup de Orçamento --- */
.d2i-orcamento-item {
    display: flex !important;
    align-items: center !important;
    gap: 15px;
    padding: 15px 0 !important;
    border-bottom: 1px solid #eee !important;
    text-transform: capitalize !important;
}
.d2i-orcamento-item:last-child {
    border-bottom: none !important;
}

.d2i-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.d2i-item-details {
    flex-grow: 1;
}

.d2i-item-name {
    font-weight: bold !important;
    font-size: 16px !important;
    margin-bottom: 4px !important;
    text-transform: capitalize !important;
    color: #000 !important;
}

.d2i-item-category {
    font-size: 14px !important;
    color: #666 !important;
}

.d2i-item-controls {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.d2i-item-quantity {
    text-align: center !important;
    text-transform: capitalize !important;
}

.d2i-quant-label {
    font-size: 12px !important;
    color: #888 !important;
    display: block !important;
    margin-bottom: 0; /* ALTERADO */
    margin-top: 5px; /* ALTERADO */
}

.d2i-quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd; /* ALTERADO */
    border-radius: 20px; /* ALTERADO */
}

.d2i-qty-btn {
    background: transparent !important; /* Garante que o fundo seja transparente por padrão */
    border: none !important; /* Garante que não haja borda padrão */
    cursor: pointer !important;
    font-size: 20px !important;
    width: 30px !important;
    height: 30px !important;
    color: #555 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Garante que o conteúdo do botão esteja centralizado verticalmente */
    transition: background-color 0.2s ease, color 0.2s ease !important; /* Adiciona transição para a cor também */
	transform: translateY(-1px) !important; /* Sobe o botão em 1px */

    /* --- Correções para alinhamento e estilo de foco --- */
    margin: 0 !important; /* Remove margens padrão do navegador */
    padding: 0 !important; /* Remove paddings padrão do navegador */
    box-sizing: border-box !important; /* Garante um modelo de caixa consistente */
    outline: none !important; /* Remove o contorno de foco padrão do navegador */
    box-shadow: none !important; /* Remove qualquer sombra de foco padrão */
}

.d2i-qty-btn:hover {
    color: #000 !important;
    background-color: #f0f0f0 !important;
}

/* --- Estilo para o botão quando está focado (após o clique) --- */
.d2i-qty-btn:focus {
    outline: none !important; /* Garante que não haja contorno de foco */
    box-shadow: none !important; /* Garante que não haja sombra de foco */
    background-color: transparent !important; /* Volta ao fundo transparente */
    color: #555 !important; /* Volta à cor padrão do texto */
}

/* --- Estilo para o botão quando está ativo (sendo pressionado) --- */
.d2i-qty-btn:active {
    background-color: #e0e0e0 !important; /* Um pouco mais escuro que o hover */
    color: #000 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* --- Estilo para o valor da quantidade --- */
.d2i-qty-value {
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 0 5px !important;
    min-width: 20px !important;
    text-align: center !important;
    color: #000 !important;

    /* --- Correções para alinhamento --- */
    line-height: 30px !important; /* Define a altura da linha igual à altura do botão para melhor alinhamento */
    display: inline-block !important; /* Garante que line-height e vertical-align funcionem corretamente */
    vertical-align: middle !important; /* Medida adicional para alinhamento vertical */
    box-sizing: border-box !important; /* Garante um modelo de caixa consistente */
}

.d2i-item-remove a {
    color: #E59C428F !important;
    font-size: 22px !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
.d2i-item-remove a:hover {
    color: #E59C42 !important;
}

/* Adiciona borda arredondada apenas nos cantos externos do hover */
.d2i-quantity-wrapper .d2i-qty-btn:first-child:hover {
    border-radius: 20px 0 0 20px !important; /* Adicionado !important */
}
.d2i-quantity-wrapper .d2i-qty-btn:last-child:hover {
    border-radius: 0 20px 20px 0 !important; /* Adicionado !important */
}