.attppf-cart-enhanced {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
}

.attppf-customization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dee2e6;
}

.attppf-header-content {
    display: flex;
    align-items: center;
}

.attppf-header-content span:first-child {
    font-size: 16px;
    margin-right: 6px;
}

.attppf-header-content strong {
    color: #495057;
}

.attppf-total-display {
    font-weight: bold;
    color: #28a745;
    font-size: 14px;
}

.attppf-selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    margin: 2px 0;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.attppf-selection-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.attppf-selection-text {
    color: #495057;
    margin-right: 8px;
}

.attppf-selection-price {
    color: #28a745;
    font-weight: bold;
    font-size: 12px;
}

.attppf-delete-selection {
    background: none;
    border: none;
    color: #dc3545;
    padding: 4px;
    margin-left: 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.attppf-delete-selection:hover {
    background-color: #f8d7da;
    color: #721c24;
}

.attppf-delete-selection .material-icons {
    font-size: 16px;
}

.attppf-delete-fallback {
    display: none;
    font-size: 14px;
    font-weight: bold;
}

.attppf-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 6px;
    z-index: 10;
}

.attppf-loading-overlay .loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.attppf-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 8px;
}

.attppf-loading-text {
    font-size: 12px;
    color: #6c757d;
}

/* Animations - only apply when user has not requested reduced motion */
@media (prefers-reduced-motion: no-preference) {
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .attppf-delete-selection:hover {
        transform: scale(1.1);
    }

    .attppf-selection-item.removing {
        animation: fadeOut 0.3s ease-out forwards;
    }

    @keyframes fadeOut {
        to {
            opacity: 0;
            transform: translateX(-10px);
            height: 0;
            padding: 0;
            margin: 0;
        }
    }
}

/* Fallback styles for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .attppf-delete-selection:hover {
        background-color: #dc3545;
        color: white;
    }

    .attppf-selection-item.removing {
        opacity: 0.5;
        transition: opacity 0.1s ease;
    }
}

.attppf-selection-item:hover {
    background-color: #f8f9fa !important;
    border-color: #007bff !important;
}

/* Ensure material icons fallback */
.material-icons {
    font-family: 'Material Icons', 'Material Icons Outlined', 'Material Icons Round', sans-serif;
}

.material-icons:not([style*="font-family"]) + .attppf-delete-fallback {
    display: inline !important;
}

.attppf-cart-legacy {
    margin-top: 8px;
    padding: 8px;
    background: #fff3cd;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
    font-size: 13px;
    line-height: 1.4;
}

.attppf-cart-legacy .legacy-warning {
    color: #856404;
}
