/* Styles para TravelGate CartMenu widget */
.travelgate-cartmenu-widget {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
}

.tg-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background .12s ease, box-shadow .12s ease;
}

.tg-cart-btn:hover {
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(23, 23, 23, 0.04);
}

.tg-cart-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

.tg-cart-label {
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.tg-cart-count:empty {
    display: none !important;
}

.tg-cart-count {
    background: #e43;
    color: #fff;
    border-radius: 50%;
    padding: 1px;
    font-size: 10px;
    margin-left: -12px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

.travelgate-cartmenu-widget {
    position: relative
}

.tg-cartmenu-links-wrapper {
    display: flex;
    position: absolute;
    right: -6px;
    top: calc(100% - 12px);

    /* hidden by default but keep in flow for transitions */
    opacity: 0;
    transform: translateY(-6px) scale(.99);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    gap: 6px;

    padding-top: calc(12px + 4px);
    z-index: 40;
}

.tg-cartmenu-links {
    display: flex;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
    padding: 8px;
    border-radius: 10px;
    flex-direction: column;
    min-width: 160px;
}

/* Mostrar dropdown al hover o si se añade la clase .open */
.travelgate-cartmenu-widget .tg-cart-arrow:hover+.tg-cartmenu-links-wrapper,
.travelgate-cartmenu-widget .tg-cartmenu-links-wrapper.open,
.travelgate-cartmenu-widget .tg-cartmenu-links-wrapper:hover {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    display: flex;
}

.tg-cartmenu-link {
    color: inherit;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    transition: background .12s ease;
}

.tg-cartmenu-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.tg-cart-arrow {
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -12px;
    color: inherit;
    cursor: pointer;
    transition: transform .18s ease, opacity .12s ease;
    opacity: .95;
    height: 32px;
    position: relative;
}

.travelgate-cartmenu-widget:hover .tg-cart-arrow {
    transform: translateY(-1px);
    opacity: 1;
}

.tg-cart-arrow.rotated {
    transform: rotate(180deg);
}

@media (max-width:600px) {
    .travelgate-cartmenu-widget {
        gap: 8px
    }

    .tg-cart-label {
        display: none
    }

    .tg-cartmenu-links-wrapper {
        display: none
    }

    .tg-cart-arrow {
        display: none
    }
}