/* Precios Gasolinera San José — estilos del banner
   Todo el color se controla con la variable --gsj-accent (configurable). */

.gsj-banner {
    --gsj-accent: #7a1f2b;
    box-sizing: border-box;
    font-family: inherit;
    color: #2b2b2b;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    padding: 18px 20px;
    line-height: 1.35;
}

.gsj-banner * {
    box-sizing: border-box;
}

.gsj-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--gsj-accent);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gsj-accent);
}

.gsj-subtitulo {
    font-size: .82rem;
    color: #6b6b6b;
    margin: -6px 0 12px;
}

.gsj-prices {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gsj-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .08);
}

.gsj-price:last-child {
    border-bottom: 0;
}

.gsj-fuel {
    font-weight: 600;
}

.gsj-value {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--gsj-accent);
    white-space: nowrap;
}

.gsj-unit {
    font-size: .8rem;
    font-weight: 600;
    opacity: .7;
}

.gsj-meta {
    margin-top: 10px;
    font-size: .8rem;
    color: #6b6b6b;
}

.gsj-fecha {
    font-style: italic;
}

.gsj-error {
    color: #8a1f1f;
    background: #fdf3f3;
    border-color: rgba(138, 31, 31, .25);
    font-size: .9rem;
}

/* --- Layout: banner horizontal --- */
.gsj-layout-banner .gsj-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.gsj-layout-banner .gsj-price {
    border-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 4px 0;
}

/* --- Layout: tira compacta --- */
.gsj-layout-inline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding: 10px 16px;
    border-radius: 999px;
}

.gsj-layout-inline .gsj-title {
    border: 0;
    padding: 0;
    margin: 0 6px 0 0;
    font-size: .95rem;
}

.gsj-layout-inline .gsj-prices {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.gsj-layout-inline .gsj-price {
    border: 0;
    padding: 0;
    gap: 6px;
}

.gsj-layout-inline .gsj-value {
    font-size: 1.05rem;
}

.gsj-layout-inline .gsj-meta {
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .gsj-value { font-size: 1.1rem; }
}

/* ------------------------------------------------------------------ *
 *  BANNER FLOTANTE
 * ------------------------------------------------------------------ */
.gsj-float {
    position: fixed;
    z-index: 99999;
}

.gsj-float .gsj-banner {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    margin: 0;
}

/* Botón de cerrar */
.gsj-float-close {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    width: 26px;
    height: 26px;
    line-height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    color: #333;
    font-size: 20px;
    cursor: pointer;
}
.gsj-float-close:hover {
    background: rgba(0, 0, 0, .14);
}

/* Esquinas (tarjeta) */
.gsj-float-br {
    right: 20px;
    bottom: 20px;
    width: 320px;
    max-width: calc(100vw - 32px);
}
.gsj-float-bl {
    left: 20px;
    bottom: 20px;
    width: 320px;
    max-width: calc(100vw - 32px);
}

/* Barras (ancho completo) */
.gsj-float-bar-bottom,
.gsj-float-bar-top {
    left: 0;
    right: 0;
    width: 100%;
}
.gsj-float-bar-bottom { bottom: 0; }
.gsj-float-bar-top { top: 0; }

.gsj-float-bar-bottom .gsj-banner,
.gsj-float-bar-top .gsj-banner {
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding-right: 46px; /* hueco para la X */
}

@media (max-width: 600px) {
    .gsj-float-br,
    .gsj-float-bl {
        left: 12px;
        right: 12px;
        width: auto;
    }
}
