/**
 * Traveler Cart Overlay CSS
 */

#tco-cart-widget {
    position: relative;
    display: inline-block;
}

.tco-cart-trigger {
    cursor: pointer;
    position: relative;
    padding: 10px;
    color: #333;
    font-size: 18px;
    transition: color 0.3s ease;
}

.tco-cart-trigger:hover {
    color: #007cba;
}

.tco-cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
}

.tco-cart-count.tco-bounce {
    animation: tco-bounce 0.6s ease;
}

@keyframes tco-bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

.tco-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 320px;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
}

.tco-cart-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.tco-cart-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.tco-cart-items {
    max-height: 250px;
    overflow-y: auto;
}

.tco-cart-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.tco-cart-item:last-child {
    border-bottom: none;
}

.tco-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    padding-right: 25px;
}

.tco-item-details {
    color: #666;
    font-size: 13px;
}

.tco-remove-item {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tco-remove-item:hover {
    color: #e74c3c;
}

.tco-cart-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.tco-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.tco-btn-primary {
    background: #007cba;
    color: white;
}

.tco-btn-primary:hover {
    background: #005a87;
}

.tco-empty-cart {
    padding: 30px 15px;
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Notifications */
.tco-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tco-notification.tco-success {
    background: #27ae60;
}

.tco-notification.tco-error {
    background: #e74c3c;
}

/* Responsive */
@media (max-width: 480px) {
    .tco-cart-dropdown {
        width: 280px;
        right: -50px;
    }
}

/* Icon styles */
.tco-cart-style-icon .tco-cart-trigger {
    background: #f8f9fa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
}

.tco-cart-style-icon .tco-cart-trigger:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}