.travelgate-booking-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 380px;
    margin: 0 auto;
    color: #16304a;
}

.travelgate-booking-widget .tg-summary-card:not(.loaded) {
    filter: blur(3px);
}

.travelgate-booking-widget .tg-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e6eef7;
}

/* =========================================================
   BLOQUE PRECIO DESDE
========================================================= */

.tg-price-card {
    padding-bottom: 10px;
}

.tg-price-from {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tg-from-label {
    color: #1f6fbf;
    font-weight: 700;
}

.tg-price {
    color: #1f6fbf;
    font-size: 22px;
    font-weight: 700;
}

.tg-regular-price {
    font-size: 12px;
    color: #7b8b9a;
    margin-top: 6px;
}

.tg-strike {
    text-decoration: line-through;
    color: #9aa7b5;
}

.tg-discount {
    margin-top: 8px;
    font-size: 13px;
    color: #0b69b3;
}

.tg-discount-badge {
    background: #0b69b3;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    margin-left: 6px;
}

.tg-note {
    font-size: 12px;
    color: #6c7b88;
    margin-top: 8px;
}

/* =========================================================
   RESUMEN / TOTAL
========================================================= */

.tg-summary-card {
    border: 2px solid #1f6fbf;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    padding: 14px;
}

.tg-summary-title {
    font-size: 14px;
    color: #0b3b66;
    font-weight: 700;
}

.tg-summary-amount {
    background: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    margin-left: 8px;
    color: #1f6fbf;
}

.tg-summary-sub {
    font-size: 12px;
    color: #5a7186;
    margin-top: 6px;
}

.tg-calculation-details {
    list-style: none;
    margin: 0;
    padding: 8px 10px;
    width: 100%;
    border: 1px solid #e2edf8;
    border-radius: 8px;
    background: #ffffff;
}

.tg-detail-item {
    padding: 6px 0;
    border-top: 1px dashed #eaf2fb;
    color: #4b6377;
    line-height: 1.35;
}

.tg-detail-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.tg-detail-item:last-child {
    padding-bottom: 0;
}

.tg-summary-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e7f0fb;
    border-radius: 8px;
    background: #fbfeff;
}

.tg-details-btn {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid #d3e6fb;
    color: #1f6fbf;
    cursor: pointer;
}

.tg-btn.small {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid #d3e6fb;
    color: #1f6fbf;
}

/* =========================================================
   CONTROLES DE PASAJEROS
========================================================= */

.tg-people-controls {
    margin-top: 12px;
}

.tg-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #eef6fb;
}

.tg-control:first-child {
    border-top: 0;
}

.tg-control label {
    font-size: 13px;
    color: #124058;
}

.tg-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-qty button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #d3e6fb;
    background: #fff;
    color: #1f6fbf;
    font-weight: 700;
    cursor: pointer;
}

.tg-qty input {
    width: 36px;
    text-align: center;
    border: 1px solid #e6f0fb;
    border-radius: 6px;
    padding: 6px;
    font-weight: 600;
}

/* =========================================================
   HOTEL ORIGINAL
========================================================= */

.tg-hotel-category {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e7f0fb;
    border-radius: 8px;
    background: #fbfeff;
}

.tg-hotel-title {
    font-weight: 700;
    color: #13455f;
    margin-bottom: 8px;
}

.tg-radio-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tg-radio-list li {
    padding: 8px 0;
    border-top: 1px solid #f0f6fb;
}

.tg-radio-list li:first-child {
    border-top: 0;
}

.tg-radio-label {
    margin-left: 8px;
    color: #124058;
}

/* =========================================================
   BOTONES
========================================================= */

.tg-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.tg-btn {
    display: inline-block;
    padding: 12px;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}

.tg-btn-primary {
    background: #0b4fa0;
    color: #fff;
}

.tg-btn-secondary {
    background: transparent;
    border: 1px solid #0b4fa0;
    color: #0b4fa0;
}

@media (min-width: 700px) {
    .travelgate-booking-widget {
        max-width: 420px;
    }
}

.tg-summary-people {
    display: inline-block;
}

.tg-summary-people:not(:first-child) {
    margin-left: 4px;
}

.tg-summary-people:not(:first-child)::before {
    content: " • ";
}

.tg-currency-notice {
    font-size: 10px;
    color: #7b8b9a;
    margin-top: 6px;
}

/* =========================================================
   ALOJAMIENTO OPCIONAL — 2 BLOQUES COMPACTOS
========================================================= */

.travelgate-booking-widget .tg-hotel-wrapper-compact {
    margin-top: 12px;
}

.travelgate-booking-widget .tg-hotel-category-compact {
    margin-top: 0;
    padding: 12px;
    border: 1px solid #e7f0fb;
    border-radius: 8px;
    background: #fbfeff;
}

.travelgate-booking-widget .tg-hotel-category-compact .tg-hotel-title {
    margin-bottom: 5px;
    font-weight: 700;
    color: #13455f;
}

.travelgate-booking-widget .tg-hotel-note-mini {
    margin-bottom: 10px;
    font-size: 11.5px;
    line-height: 1.35;
    color: #6c7b88;
}

.travelgate-booking-widget .tg-hotel-grid-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.travelgate-booking-widget .tg-hotel-grid-options li {
    padding: 0;
    border-top: 0;
}

.travelgate-booking-widget .tg-hotel-grid-options label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    height: 100%;
    padding: 8px;
    border: 1px solid #e6f0fb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.travelgate-booking-widget .tg-hotel-grid-options input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.travelgate-booking-widget .tg-hotel-grid-options .tg-radio-label {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #124058;
    line-height: 1.25;
}

.travelgate-booking-widget .tg-hotel-grid-options .tg-radio-label strong {
    font-size: 12.5px;
    font-weight: 700;
    color: #124058;
}

.travelgate-booking-widget .tg-hotel-grid-options .tg-radio-label small {
    font-size: 10.8px;
    color: #6c7b88;
    line-height: 1.25;
}

.travelgate-booking-widget .tg-hotel-details-compact {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e7f0fb;
    border-radius: 8px;
    background: #fbfeff;
}

.travelgate-booking-widget .tg-hotel-extra-title {
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #13455f;
}

.travelgate-booking-widget .tg-hotel-extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.travelgate-booking-widget .tg-hotel-extra-row {
    margin-bottom: 8px;
}

.travelgate-booking-widget .tg-hotel-extra-row:last-child {
    margin-bottom: 0;
}

.travelgate-booking-widget .tg-hotel-extra-row label {
    display: block;
    margin-bottom: 4px;
    font-size: 11.5px;
    line-height: 1.25;
    color: #124058;
}

.travelgate-booking-widget .tg-hotel-extra-qty {
    display: flex;
    align-items: center;
    gap: 5px;
}

.travelgate-booking-widget .tg-hotel-extra-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d3e6fb;
    background: #fff;
    color: #1f6fbf;
    font-weight: 700;
    cursor: pointer;
}

.travelgate-booking-widget .tg-hotel-extra-qty button:hover {
    background: #f7fbff;
}

.travelgate-booking-widget .tg-hotel-extra-qty input {
    width: 42px;
    height: 28px;
    text-align: center;
    border: 1px solid #e6f0fb;
    border-radius: 6px;
    padding: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #16304a;
    background: #fff;
}

.travelgate-booking-widget .tg-hotel-extra-row select,
.travelgate-booking-widget .tg-hotel-extra-row input[type="text"] {
    width: 100%;
    height: 34px;
    border: 1px solid #e6f0fb;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11.8px;
    color: #124058;
    background: #fff;
}

.travelgate-booking-widget .tg-hotel-extra-row input[type="text"]::placeholder {
    color: #9aa7b5;
}

@media (max-width: 380px) {
    .travelgate-booking-widget .tg-hotel-grid-options {
        grid-template-columns: 1fr;
    }

    .travelgate-booking-widget .tg-hotel-extra-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   OPCIÓN: NO AGREGAR HOTEL
========================================================= */

.travelgate-booking-widget .tg-hotel-grid-options .tg-hotel-option-none {
    grid-column: 1 / -1;
}

.travelgate-booking-widget .tg-hotel-grid-options .tg-hotel-option-none label {
    background: #ffffff;
    border-style: dashed;
}

.travelgate-booking-widget .tg-hotel-grid-options .tg-hotel-option-none .tg-radio-label strong {
    color: #0b4fa0;
}

.travelgate-booking-widget .tg-hotel-grid-options .tg-hotel-option-none .tg-radio-label small {
    color: #6c7b88;
}

/* =========================================================
   BLOQUE PRECIO DESDE — ORDEN Y ESTILO PREMIUM
========================================================= */

.travelgate-booking-widget .tg-price-card {
    padding: 18px;
}

.travelgate-booking-widget .tg-regular-price-top {
    margin-bottom: 8px;
    font-size: 12.5px;
    color: #7b8b9a;
}

.travelgate-booking-widget .tg-price-from {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.travelgate-booking-widget .tg-from-label {
    color: #1f6fbf !important;
    font-weight: 700;
}

.travelgate-booking-widget .tg-price {
    color: #1f6fbf !important;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.travelgate-booking-widget .tg-price-person {
    font-size: 11.5px;
    color: #667085;
    font-weight: 500;
}

.travelgate-booking-widget .tg-discount-badge-inline {
    margin-left: 4px;
    background: #0b69b3;
    color: #ffffff;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.travelgate-booking-widget .tg-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #dbeafe;
    font-size: 12.5px;
    line-height: 1.45;
    color: #5a7186;
}

/* =========================================================
   OCULTAR TEXTO AUTOMÁTICO ANTIGUO DEL PRECIO DESDE
========================================================= */

.travelgate-booking-widget .tg-price-from .tg-price::after,
.travelgate-booking-widget .tg-price-from .tg-price:after {
    content: "" !important;
    display: none !important;
}

/* =========================================================
   AVISO PRECIO DESDE — INFORMACIÓN CLARA PARA EL CLIENTE
========================================================= */

.travelgate-booking-widget .tg-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eef6ff;
    border: 1px solid #cfe5ff;
    color: #174a7c;
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 500;
    text-align: center;
}

.travelgate-booking-widget .tg-note::before {
    content: "ℹ️ ";
    font-size: 12px;
}

/* =========================================================
   PRECIO DESDE — MISMA LÍNEA VISUAL DEL TOTAL
========================================================= */

.travelgate-booking-widget .tg-from-label {
    color: #0b3b66 !important;
    font-weight: 800;
}

.travelgate-booking-widget .tg-price {
    color: #1f6fbf !important;
    font-size: 26px;
    font-weight: 800;
}