/*
 * ======================================================
 * CCT FLOATING CART STYLES
 * ======================================================
 */

* {
    box-sizing: border-box;
}

/* Floating Cart Container */
.floating-cart {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 350px; /* Smaller width */
    background: rgba(18, 30, 38, 0.98); /* Dark background with transparency */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px; /* Consistent border-radius */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(241, 135, 61, 0.3); /* Orange border */
    overflow: hidden;
    z-index: 999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transform: translateY(120%) !important;
    opacity: 0 !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
}

.floating-cart.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Cart Close Button */
.cart-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7); /* Lighter color for dark background */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Cart Header */
.cart-header {
    background: linear-gradient(135deg, rgba(241, 135, 61, 0.1), rgba(224, 122, 48, 0.1)); /* Orange tint */
    padding: 20px 25px; /* Slightly smaller padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Lighter border */
}

.cart-title {
    font-size: 18px;
    font-weight: 600;
    color: white; /* White text */
    margin-bottom: 5px;
}

.cart-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7); /* Lighter color */
}

/* Cart Content */
.cart-content {
    padding: 25px; /* Slightly smaller padding */
}

/* Selected Package Display */
.selected-package {
    background: linear-gradient(135deg, rgba(241, 135, 61, 0.08), rgba(224, 122, 48, 0.08)); /* Orange tint */
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(241, 135, 61, 0.15); /* Orange border */
}

.package-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff69; /* White text */
    margin-bottom: 6px;
}

.cart-parent-title {
    font-weight: bold !important;
    font-size: 1.2em !important;
    margin-bottom: 4px !important;
    color: #ffffff !important;
}

.package-price {
    font-size: 22px;
    font-weight: 700;
    color: #f1873d; /* Orange highlight */
    margin-bottom: 8px;
}

.package-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.package-features li {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8); /* Lighter color */
    padding: 2px 0;
    padding-left: 18px;
    position: relative;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f1873d; /* Orange checkmark */
    font-weight: bold;
}

/* Participant Input */
.participant-input {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8); /* Lighter color */
    font-size: 13px;
}

.participant-counter {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05); /* Light background for dark theme */
    border: 1px solid rgba(241, 135, 61, 0.2); /* Orange border */
    border-radius: 10px;
    padding: 4px;
}

.counter-btn {
    width: 35px !important;
    height: 35px !important;
    background: #f1873d !important; /* Orange */
    color: white !important;
    border: none !important;
    border-radius: 7px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.counter-btn:hover {
    background: #e07a30 !important; /* Darker orange on hover */
    transform: none !important;
    box-shadow: none !important;
}

.counter-btn:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.counter-input {
    flex: 1;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: white; /* White text */
    background: transparent;
    padding: 8px;
}

.counter-input:focus {
    outline: none;
}

/* Price Calculator */
.price-calculator {
    background: rgba(241, 135, 61, 0.05); /* Light orange tint */
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.calculator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.calculator-row:last-child {
    margin-bottom: 0;
}

.calculator-label {
    color: rgba(255, 255, 255, 0.7); /* Lighter color */
}

.calculator-value {
    font-weight: 600;
    color: white; /* White text */
}

.total-value {
    color: #f1873d; /* Orange highlight */
    font-size: 18px;
    font-weight: 700;
}

/* Availability Notice */
.availability-notice {
    text-align: center;
    margin-bottom: 15px;
}

.availability-text {
    font-size: 11px;
    color: #e74c3c;
    font-weight: 600;
    background: rgba(231, 76, 60, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
}

/* Modal Close Button */
.modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* Action Button */
.action-button {
    width: 100% !important;
    padding: 15px;
    background: linear-gradient(135deg, #f1873d, #e07a30); /* Orange gradient */
    color: white !important;
    border: none !important;
    border-radius: 8px !important; /* Changed from 12px to 8px */
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block; /* Added for centering */
    max-width: 280px; /* Added for centering */
    margin: 0 auto; /* Added for centering */
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(241, 135, 61, 0.4); /* Orange shadow */
    background: linear-gradient(135deg, #e07a30, #f1873d);
}

/* Body shift when cart is active (Desktop/Tablet only) */
@media (min-width: 769px) {
    body.cart-active {
        margin-right: 370px !important;
        transition: margin-right 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    body.cart-inactive {
        margin-right: 0 !important;
        transition: margin-right 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
}

/* Mobile: Block background scrolling when cart is active */
@media (max-width: 768px) {
    body.cart-active {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    body.cart-inactive {
        overflow: auto !important;
        position: static !important;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .floating-cart {
        width: calc(100% - 20px);
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .cart-content {
        padding: 20px;
    }

    .package-price {
        font-size: 20px;
    }

    .total-value {
        font-size: 16px;
    }
}