/* Cart item entrance animation */
.cart-item.animate__animated {
    --animate-duration: 0.35s;
}

/* Pack name clear button */
.packname-clear-btn {
    position: absolute;
    right: 36px;
    top: calc((3.5rem + 2px) / 2);
    transform: translateY(-50%);
    z-index: 5;
    display: none;
    border: none;
    background: none;
    color: #999;
    font-size: 1.2rem;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
    transition: color 0.15s;
}
.packname-clear-btn:hover {
    color: #333;
}
.packname-clear-btn.visible {
    display: block;
}

/* Add to Cart button */
.cart-add-btn {
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
    letter-spacing: 0.3px;
}
.cart-add-btn:hover {
    background-color: #444;
}
.cart-add-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.6rem;
    padding: 0px 5px;
    border-radius: 7px;
    margin-left: 3px;
    vertical-align: middle;
}

/* Shopping Cart Styles */
.cart-section {
    margin-top: 4px;
    padding: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
}

/* Header: title + badge + clear icon */
.cart-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.cart-header h6 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-header-clear {
    margin-left: auto;
    cursor: pointer;
    color: #666;
    border: none;
    background: none;
    font-size: 0.85rem;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.15s;
}
.cart-header-clear:hover {
    color: #dc3545;
}

/* Item list */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    font-size: 0.85rem;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-player {
    color: #555;
    font-size: 0.78rem;
}
.cart-item-price {
    font-weight: 600;
    margin: 0 8px;
    white-space: nowrap;
    min-width: 52px;
    text-align: right;
}
.cart-item-remove {
    cursor: pointer;
    color: #999;
    padding: 2px 6px;
    border: none;
    background: none;
    font-size: 1.1rem;
    transition: color 0.15s;
}
.cart-item-remove:hover {
    color: #dc3545;
}

/* Total */
.cart-total {
    padding: 8px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: right;
}
.cart-total-main {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}
.cart-total-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}
.cart-total-price {
    font-weight: 700;
    font-size: 1.1rem;
}
.cart-total-count {
    color: #666;
    font-size: 0.85rem;
}
.cart-total-save {
    font-size: 0.72rem;
    color: #2e7d32;
    font-weight: 600;
    background: #e8f5e9;
    padding: 2px 7px;
    border-radius: 10px;
    margin-top: 2px;
    display: inline-block;
}

/* Checkout buttons */
.cart-checkout-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.cart-btn-paypal {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 5px;
    background-color: #ffc439;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}
.cart-btn-paypal:hover {
    background-color: #f0b72f;
}
.cart-paypal-logo {
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.5px;
}
.pp-dark { color: #001C64; }
.pp-light { color: #0070BA; }
.cart-btn-crypto {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 5px;
    background-color: #1a1a2e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.15s;
}
.cart-btn-crypto:hover {
    background-color: #2a2a4e;
}
.cart-btn-crypto-label {
    white-space: nowrap;
}
.cart-btn-crypto-coins {
    display: flex;
    align-items: center;
    gap: 3px;
}
