/* Estilos del Widget Principal */
#laranet_live_chat_widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

#laranet_live_chat_widget .laranet-chat-button {
    height: 60px;
    width: 60px;
    background-color: #0d6efd;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    transition: transform .2s ease;
}

#laranet_live_chat_widget .laranet-chat-button:hover {
    transform: scale(1.1);
}

#laranet_live_chat_widget .laranet-chat-window {
    width: 370px; /* Ancho por defecto */
    max-height: 500px;
    height: 500px;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 70px;
    right: 0;
    transition: all .3s ease-in-out; /* La transición se aplica a todos los cambios, incluido el ancho */
    transform-origin: bottom right;
}

/* <<< NUEVO: Estilo para la ventana del chat expandida */
#laranet_live_chat_widget .laranet-chat-window.laranet-chat-window--expanded {
    width: 700px; /* Ancho mayor para mostrar resultados complejos */
}

#laranet_live_chat_widget .laranet-chat-window.d-none {
    opacity: 0;
    transform: scale(.5);
    pointer-events: none;
}

#laranet_live_chat_widget .laranet-chat-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    flex-shrink: 0;
}

#laranet_live_chat_widget .laranet-chat-header .btn-close {
    filter: brightness(0) invert(1);
}

#laranet_live_chat_widget .laranet-chat-body {
    flex-grow: 1;
    overflow-y: auto;
}

#laranet_live_chat_widget .laranet-chat-content {
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 10px;
}

#laranet_live_chat_widget .laranet-chat-message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
    word-wrap: break-word;
    font-size: .95rem;
}

#laranet_live_chat_widget .laranet-chat-message-operator {
    background-color: #f1f0f0;
    color: #212529;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

#laranet_live_chat_widget .laranet-chat-message-visitor {
    background-color: #e1ecf7;
    color: #212529;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

#laranet_live_chat_widget .laranet-chat-footer {
    flex-shrink: 0;
}

#laranet_live_chat_widget .chat-menu-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 0 10px;
    width: 100%;
}

#laranet_live_chat_widget .chat-menu-btn {
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    margin: 0;
    width: 100%;
    text-align: left;
}

#laranet_live_chat_widget .chat-menu-btn:hover {
    background-color: #f8f9fa;
    border-color: #c6cdd3;
}

/* Estilos de las Tarjetas de Vuelo */
.flight-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin: 0 5px 15px 5px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.flight-card-header {
    font-weight: 600;
    padding: 12px 15px;
    color: #333;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.flight-card-header .fa-plane {
    margin-right: 8px;
    color: #6c757d;
}

.flight-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flight-card-body .flight-path,
.flight-card-body .flight-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #495057;
}

/* <<< MODIFICADO: Ahora .flight-path alinea los nuevos contenedores */
.flight-card-body .flight-path {
    align-items: flex-start;
}

.flight-card-body .flight-path strong {
    font-size: 1.1rem;
    color: #212529;
}

/* <<< NUEVO: Estilos para los contenedores de hora/IATA */
.flight-card-body .flight-path-endpoint {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* <<< NUEVO: Estilo para el texto del código IATA */
.flight-card-body .flight-path-iata {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-top: 2px;
}

.flight-card-body .fa-long-arrow-right {
    font-size: 1.2rem;
    color: #adb5bd;
    margin-top: 8px; /* Ajuste para alinear con las horas */
}

.flight-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.flight-card-footer .price {
    font-weight: bold;
    font-size: 1.2rem;
    color: #0d6efd;
}

.flight-card-footer .flight-card-select-btn {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.flight-card-footer .flight-card-select-btn:hover {
    background-color: #0b5ed7;
}

.flight-leg {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.flight-leg:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.flight-leg-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0d6efd;
    text-transform: uppercase;
    margin: 0 15px 10px 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #0d6efd;
    display: inline-block;
}