/* NS26 - Tickets: ícono de carrito en el menú + mini-carrito */

.ns26-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.ns26-cart-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 0;
    color: inherit;
}

.ns26-cart-icon-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.15s ease;
}

.ns26-cart-icon-btn:hover svg {
    transform: translateY(-1px);
}

.ns26-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #d85a30;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}

.ns26-cart-count:empty,
.ns26-cart-count[data-fragment]:not([data-fragment=""])[data-count="0"] {
    display: none;
}

.ns26-mini-cart {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    max-width: 90vw;
    background: #ffffff;
    color: #1f2430;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(20, 20, 30, 0.18);
    z-index: 9999;
    overflow: hidden;
}

.ns26-mini-cart[hidden] {
    display: none;
}

.ns26-mini-cart-inner {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.ns26-mini-cart-loading,
.ns26-mini-cart-empty p {
    margin: 8px 0;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.ns26-mini-cart-items {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ns26-mini-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eceef1;
    position: relative;
}

.ns26-mini-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ns26-mini-cart-item-thumb img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

.ns26-mini-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 18px;
}

.ns26-mini-cart-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2430;
}

.ns26-mini-cart-item-meta {
    font-size: 12px;
    color: #6b7280;
}

.ns26-mini-cart-item-attendees {
    font-size: 11px;
    color: #0f6e56;
}

.ns26-mini-cart-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.ns26-mini-cart-remove:hover {
    color: #d85a30;
}

.ns26-mini-cart-totals {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid #eceef1;
    font-size: 13px;
}

.ns26-mini-cart-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.ns26-mini-cart-btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.ns26-mini-cart-btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

.ns26-mini-cart-btn-secondary {
    background: #f1f2f4;
    color: #1f2430;
}

.ns26-mini-cart-btn-primary {
    background: #1f2430;
    color: #ffffff;
}

@media (max-width: 480px) {
    .ns26-mini-cart {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
    }
}
